/* ============================================================
   Simra Faisal — portfolio
   Palette & layout inspired by the dev-portfolio aesthetic
   (navy #0a192f / violet #a78bfa)
   ============================================================ */

:root {
  --dark-navy: #020c1b;
  --navy: #0a192f;
  --light-navy: #112240;
  --lightest-navy: #233554;
  --navy-shadow: rgba(2, 12, 27, 0.7);
  --slate: #8892b0;
  --light-slate: #a8b2d1;
  --lightest-slate: #ccd6f6;
  --white: #e6f1ff;
  --green-bright: #a78bfa;
  --green-tint: rgba(167, 139, 250, 0.1);
  --font-body: "NTR", "Poppins", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--slate);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--green-bright);
  text-decoration: none;
}

::selection {
  background: var(--green-tint);
  color: var(--green-bright);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--lightest-navy);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-bright);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lightest-navy);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: bold;
  color: var(--lightest-slate);
  transition: color 0.2s ease;
}

.nav-brand:hover {
  color: var(--green-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a {
  color: var(--lightest-slate);
  font-weight: bold;
  font-size: 17px;
  transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--green-bright);
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--lightest-navy);
}

.nav-socials a {
  color: var(--lightest-slate);
  display: inline-flex;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-socials a:hover {
  color: var(--green-bright);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-bright);
  display: block;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SIDEBAR SLASH NAV
   ============================================================ */
.sidebar-nav {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 50;
}

.sidebar-nav a {
  font-size: 18px;
  font-weight: bold;
  color: var(--light-slate);
  transition: color 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--green-bright);
}

.nav-slash {
  color: var(--green-bright);
  margin-right: 2px;
}

/* ============================================================
   HERO (INTRO)
   ============================================================ */
#intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 5vw;
  gap: 4vw;
  padding-top: 90px;
}

.intro-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
}

.intro-title {
  font-family: var(--font-body);
  font-size: 78px;
  color: var(--lightest-slate);
  line-height: 1.05;
}

.intro-name {
  color: var(--green-bright);
  font-weight: bold;
}

.intro-cursor {
  color: var(--green-bright);
  font-weight: 300;
  display: inline-block;
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.intro-subtitle {
  font-family: var(--font-body);
  color: var(--light-slate);
  font-size: 34px;
  font-weight: 300;
  margin-top: 6px;
  min-height: 1.2em;
}

.intro-desc {
  color: var(--slate);
  font-size: 21px;
  max-width: 560px;
  padding-top: 24px;
  line-height: 1.6;
}

.intro-desc a {
  font-weight: bold;
}

.intro-desc a:hover {
  color: var(--lightest-slate);
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 40px;
}

.intro-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: bold;
  font-family: var(--font-body);
  padding: 12px 32px;
  cursor: pointer;
  border: 1px solid var(--green-bright);
  border-radius: 4px;
  color: var(--green-bright);
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.intro-contact:hover {
  background-color: var(--green-tint);
  transform: translateY(-3px);
}

.intro-contact.big {
  font-size: 20px;
  padding: 16px 44px;
}

.intro-secondary {
  font-size: 18px;
  font-weight: bold;
  color: var(--lightest-slate);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.intro-secondary:hover {
  color: var(--green-bright);
  transform: translateX(5px);
}

/* ASCII terminal card */
.ascii-card {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.35;
  color: var(--green-bright);
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 6px 13px 23px -5px rgba(0, 0, 0, 0.46);
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
}

.ascii-card:hover {
  transform: translateY(-6px);
  border-color: var(--green-bright);
}

/* ============================================================
   SECTIONS (common)
   ============================================================ */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 24px;
  scroll-margin-top: 80px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 44px;
  gap: 20px;
}

.section-title {
  font-size: 30px;
  font-weight: bold;
  color: var(--lightest-slate);
  white-space: nowrap;
}

.section-header::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--lightest-navy);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
}

.about-description {
  font-size: 22px;
  color: var(--slate);
  max-width: 620px;
}

.about-description p {
  margin-bottom: 20px;
}

.about-description a,
.about-description b {
  font-weight: bold;
}

.about-description a {
  border-bottom: 1px dotted var(--green-bright);
}

.about-description a:hover {
  color: var(--lightest-slate);
}

.tech-stack {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px 0 24px;
}

.tech-stack li {
  position: relative;
  padding-left: 24px;
  font-size: 19px;
  color: var(--light-slate);
}

.tech-stack li::before {
  content: "▹";
  color: var(--green-bright);
  position: absolute;
  left: 0;
}
/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.experience-item {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--lightest-navy);
}

.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.experience-role {
  font-size: 24px;
  font-weight: bold;
  color: var(--lightest-slate);
  margin-bottom: 6px;
}

.experience-place {
  font-size: 18px;
  color: var(--light-slate);
}

.experience-desc {
  max-width: 420px;
  font-size: 18px;
  text-align: right;
}

.experience-desc p:first-child {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 8px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.explore-link {
  font-size: 19px;
  font-weight: bold;
  color: var(--green-bright);
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.explore-link:hover {
  color: var(--lightest-slate);
  transform: translateX(5px);
}

.explore-link::after {
  content: "→";
  margin-left: 8px;
  font-size: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  background-color: var(--light-navy);
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-card:hover {
  transform: translateY(-7px);
  background-color: var(--lightest-navy);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.folder-icon {
  color: var(--green-bright);
}

.card-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-links a {
  color: var(--light-slate);
  display: inline-flex;
  transition: color 0.2s ease;
}

.card-links a:hover {
  color: var(--green-bright);
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--lightest-slate);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 18px;
  color: var(--slate);
  flex: 1;
}

.card-tech {
  font-size: 16px;
  color: var(--light-slate);
  padding-top: 20px;
}

/* ============================================================
   AI CHATBOT
   ============================================================ */
.chatbot-container {
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 16px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}

.chat-header {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--green-bright);
  background: var(--lightest-navy);
  padding: 14px 22px;
  border-bottom: 1px solid var(--lightest-navy);
}

.chat-box {
  height: 340px;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bot-message,
.user-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
}

.bot-message {
  background: var(--navy);
  color: var(--light-slate);
  align-self: flex-start;
  border: 1px solid var(--lightest-navy);
}

.user-message {
  background: var(--green-tint);
  color: var(--green-bright);
  align-self: flex-end;
  border: 1px solid var(--green-bright);
}

.bot-message strong {
  color: var(--green-bright);
}

.bot-message li {
  list-style: disc;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--lightest-navy);
  background: var(--light-navy);
}

.chat-prompt {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 18px;
}

.chat-input-area input {
  flex: 1;
  background: var(--navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 8px;
  color: var(--lightest-slate);
  font-family: var(--font-body);
  font-size: 18px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input-area input:focus {
  border-color: var(--green-bright);
}

.chat-input-area input::placeholder {
  color: var(--slate);
  opacity: 0.7;
}

.chat-input-area button {
  background: var(--green-tint);
  border: 1px solid var(--green-bright);
  color: var(--green-bright);
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 16px;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-input-area button:hover {
  background: var(--green-bright);
  color: var(--navy);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0 60px;
}

.contact-title {
  font-size: 48px;
  color: var(--lightest-slate);
  font-weight: bold;
  line-height: 1.2;
  max-width: 700px;
}

.contact-title .accent {
  color: var(--green-bright);
}

.contact-text {
  font-size: 21px;
  max-width: 560px;
}

.contact-socials {
  display: flex;
  gap: 30px;
  padding-top: 10px;
}

.contact-socials a {
  font-size: 19px;
  font-weight: bold;
  color: var(--light-slate);
  border-bottom: 1px dotted var(--green-bright);
  transition: color 0.2s ease;
}

.contact-socials a:hover {
  color: var(--green-bright);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--lightest-navy);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 16px;
}

.footer-links a {
  color: var(--light-slate);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--green-bright);
}

footer p {
  color: var(--slate);
  font-size: 15px;
}

/* ============================================================
   FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 1080px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .sidebar-nav {
    left: 20px;
  }

  .intro-title {
    font-size: 64px;
  }

  .intro-subtitle {
    font-size: 28px;
  }
}

@media only screen and (max-width: 800px) {
  .sidebar-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--light-navy);
    border-left: 1px solid var(--lightest-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-socials {
    border-left: none;
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--lightest-navy);
  }

  .nav-brand {
    display: block;
  }

  #intro {
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: 120px 24px 60px;
    gap: 40px;
    text-align: center;
  }

  .intro-block {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .intro-title {
    font-size: 52px;
  }

  .intro-subtitle {
    font-size: 24px;
  }

  .intro-desc {
    font-size: 18px;
  }

  .ascii-card {
    font-size: 11px;
    padding: 16px 18px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-description {
    font-size: 19px;
  }

  .experience-item {
    flex-direction: column;
    gap: 10px;
  }

  .experience-desc {
    text-align: left;
    max-width: 100%;
  }

  .contact-title {
    font-size: 34px;
  }

  .contact-text {
    font-size: 18px;
  }
}

@media only screen and (max-width: 480px) {
  section {
    padding: 70px 18px;
  }

  .intro-title {
    font-size: 40px;
  }

  .intro-subtitle {
    font-size: 20px;
  }

  .intro-desc {
    font-size: 16px;
  }

  .intro-actions {
    flex-direction: column;
    gap: 16px;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 21px;
  }

  .card-desc {
    font-size: 16px;
  }

  .chat-box {
    height: 300px;
  }

  .bot-message,
  .user-message {
    font-size: 16px;
  }

  .chat-input-area button {
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* ============================================================
   HERO — 3D particle portrait (left) + text (right)
   ============================================================ */
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  width: 100%;
  max-width: 1100px;
}

.hero-portrait {
  flex: 0 0 46%;
  min-width: 0;
}

#portraitContainer {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse at center, rgba(23, 52, 84, 0.35) 0%, transparent 72%);
}

#portraitContainer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}

#asciiFallback {
  position: absolute;
  inset: 0;
  margin: auto;
}

.hero-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-text .intro-subtitle {
  color: var(--green-bright);
  font-weight: 400;
}

.intro-socials {
  display: flex;
  gap: 24px;
  padding-top: 28px;
  font-size: 16px;
  color: var(--slate);
}

.intro-socials a {
  color: var(--slate);
  border-bottom: 1px dotted transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.intro-socials a:hover {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
}

/* ============================================================
   HERO — mobile (stack portrait above text)
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
    gap: 40px;
  }

  .hero-portrait {
    flex: 0 0 auto;
    width: min(70vw, 340px);
  }

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

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

  .intro-socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .intro-title {
    font-size: 52px;
  }

  .intro-subtitle {
    font-size: 26px;
  }

  .intro-desc {
    font-size: 18px;
  }

  .hero-portrait {
    width: min(78vw, 300px);
  }
}

/* ============================================================
   MILESTONES TIMELINE (yasinzamaan-style)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 24px 1fr;
  gap: 18px;
  padding: 22px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 137px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--lightest-navy);
}

.timeline-item:first-child::before {
  top: 34px;
}

.timeline-item:last-child::before {
  bottom: auto;
  height: 34px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  padding-top: 6px;
  text-align: right;
  white-space: nowrap;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--green-bright);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.45);
  margin-top: 8px;
  z-index: 1;
}

.timeline-card {
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 8px;
  padding: 18px 22px;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-bright);
}

.timeline-role {
  color: var(--lightest-slate);
  font-size: 19px;
  font-weight: bold;
}

.timeline-place {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 4px;
}

.timeline-desc {
  color: var(--slate);
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.55;
}

/* ============================================================
   CURRENT FOCUS (yasinzamaan-style three columns)
   ============================================================ */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.focus-card {
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 8px;
  padding: 26px 24px;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.focus-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-bright);
}

.focus-title {
  color: var(--lightest-slate);
  font-size: 21px;
  margin-bottom: 10px;
}

.focus-title .accent {
  color: var(--green-bright);
}

.focus-desc {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-item {
    grid-template-columns: 88px 24px 1fr;
    gap: 12px;
  }

  .timeline-item::before {
    left: 95px;
  }

  .timeline-year {
    font-size: 12px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECT CARDS — subtle design refresh
   ============================================================ */
.card-external {
  color: var(--light-slate);
  display: inline-flex;
  transition: color 0.2s ease, transform 0.2s ease;
}

.card-links a.card-external:hover {
  color: var(--green-bright);
  transform: translate(2px, -2px);
}

.project-card {
  border: 1px solid var(--lightest-navy);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-bright), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 16px 16px 0 0;
}

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

.projects-grid {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

@media (min-width: 901px) and (max-width: 1080px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

/* ============================================================
   Leonardo.ai-inspired effects (kept in the navy/mint palette)
   ============================================================ */

/* --- Animated aurora orbs drifting behind the content --- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora-orb-1 {
  width: 56vmax;
  height: 56vmax;
  left: -18vmax;
  top: -20vmax;
  background: radial-gradient(circle at 35% 35%, rgba(167, 139, 250, 0.40), rgba(34, 211, 238, 0.16) 48%, transparent 72%);
  animation: aurora-drift-1 30s ease-in-out infinite alternate;
}

.aurora-orb-2 {
  width: 48vmax;
  height: 48vmax;
  right: -20vmax;
  top: 22vh;
  background: radial-gradient(circle at 60% 40%, rgba(34, 211, 238, 0.30), rgba(167, 139, 250, 0.10) 52%, transparent 74%);
  animation: aurora-drift-2 38s ease-in-out infinite alternate;
}

.aurora-orb-3 {
  width: 42vmax;
  height: 42vmax;
  left: 22vw;
  bottom: -24vmax;
  background: radial-gradient(circle at 50% 50%, rgba(71, 118, 230, 0.28), rgba(167, 139, 250, 0.08) 55%, transparent 76%);
  animation: aurora-drift-3 44s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vmax, 6vmax) scale(1.18); }
}
@keyframes aurora-drift-2 {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-7vmax, -5vmax) scale(0.92); }
}
@keyframes aurora-drift-3 {
  from { transform: translate(0, 0) scale(0.95); }
  to   { transform: translate(-6vmax, -4vmax) scale(1.15); }
}

/* --- Shimmering animated gradient on the hero name --- */
.intro-name {
  background: linear-gradient(115deg, var(--green-bright) 0%, #22d3ee 28%, var(--white) 50%, #22d3ee 72%, var(--green-bright) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: name-shimmer 7s ease-in-out infinite;
}

@keyframes name-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* --- Mouse-tracking spotlight glow on cards (Leonardo-style) --- */
.project-card,
.focus-card,
.timeline-item {
  position: relative;
  overflow: hidden;
}

.project-card::before,
.focus-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 139, 250, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::before,
.focus-card:hover::before,
.timeline-item:hover::before {
  opacity: 1;
}

.project-card:hover {
  box-shadow: 0 14px 40px -12px rgba(167, 139, 250, 0.18);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .aurora-orb,
  .intro-name {
    animation: none;
  }
}

/* ============================================================
   AT A GLANCE — stats strip (borrowed structure, own design)
   ============================================================ */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1000px;
  margin: -30px auto 0;
  padding: 0 24px;
  background: var(--lightest-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.glance-item {
  background: var(--light-navy);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.glance-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--green-bright);
}

.glance-label {
  font-size: 14px;
  color: var(--light-slate);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .at-a-glance {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -14px;
  }
}

/* ============================================================
   TECH STATUS TICKER — original treatment (not from reference)
   ============================================================ */
.ticker {
  overflow: hidden;
  max-width: 1000px;
  margin: 26px auto 0;
  padding: 12px 0;
  border-top: 1px solid var(--lightest-navy);
  border-bottom: 1px solid var(--lightest-navy);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--slate);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 18px;
  transition: color 0.2s ease;
}

.ticker-sep {
  color: var(--green-bright);
  font-size: 12px;
  opacity: 0.7;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

/* ============================================================
   CURRENT FOCUS — bullet lists
   ============================================================ */
.focus-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.focus-list li {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.focus-list li::before {
  content: "▹";
  color: var(--green-bright);
  position: absolute;
  left: 0;
  font-size: 13px;
}

/* ============================================================
   GAME MODE — floating toggle + page overlay (Gazi-style)
   ============================================================ */
.game-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-bright);
  background: rgba(10, 25, 47, 0.82);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -8px rgba(167, 139, 250, 0.35);
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.game-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--green-bright);
  box-shadow: 0 10px 30px -8px rgba(167, 139, 250, 0.5);
}

.game-toggle.on {
  color: var(--cyan, #22d3ee);
  border-color: rgba(34, 211, 238, 0.5);
}

.game-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.9);
  animation: gm-pulse 2s ease-in-out infinite;
}

.game-toggle.on .game-toggle-dot {
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.9);
}

@keyframes gm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Full-viewport transparent game canvas (over the live page) */
#gameModeCanvas {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  background: transparent;
}

/* Score HUD pill while playing */
.game-mode-hud {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1150;
  display: none;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--light-slate);
  background: rgba(10, 25, 47, 0.82);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  padding: 8px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.game-mode-hud b {
  color: var(--green-bright);
  font-weight: 600;
}

.game-mode-hud .gm-hint {
  color: var(--slate);
  font-size: 12px;
}

@media (max-width: 600px) {
  .game-mode-hud {
    gap: 14px;
    font-size: 12px;
    padding: 7px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-toggle-dot {
    animation: none;
  }
}

/* ============================================================
   TECHNICAL SKILLS — resume skills grid
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.skill-card {
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 10px;
  padding: 22px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-bright);
}

.skill-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--lightest-slate);
  margin-bottom: 10px;
}

.skill-title::before {
  content: "▹ ";
  color: var(--green-bright);
}

.skill-items {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   CERTIFICATIONS — separate section with credential cards
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.cert-card {
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 8px;
  padding: 26px 24px;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-bright);
}

.cert-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cert-icon {
  color: var(--green-bright);
  font-size: 16px;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--light-slate);
  letter-spacing: 0.04em;
}

.cert-title {
  color: var(--lightest-slate);
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.cert-focus {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-focus li {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.cert-focus li::before {
  content: "▹";
  color: var(--green-bright);
  position: absolute;
  left: 0;
  font-size: 13px;
}

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