header {
  background-color: #333;
  color: black;
  padding: 0.4rem;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  margin-right: 0.2rem;
  /* Less margin for tighter spacing */
}

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

@font-face {
  font-family: 'Nimbus Roman No9 L';
  src: url('../fonts/NimbusRomNo9L-Reg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  cursor: none !important;
}

a {
  cursor: none !important;
}

html {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #000 !important;
  cursor: none !important;
}

body {
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-family: sans-serif !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  cursor: none !important;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  display: block !important;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  background-clip: content-box;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

.nav-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cinematic Grain Overlay */
.grain-overlay {
  display: none !important;
  /* Performance optimization: Removed grain effect to save GPU resources */
  /*
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: soft-light;
  animation: grain 8s steps(10) infinite;
  */
}

@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -10%);
  }

  20% {
    transform: translate(-15%, 5%);
  }

  30% {
    transform: translate(7%, -25%);
  }

  40% {
    transform: translate(-5%, 25%);
  }

  50% {
    transform: translate(-15%, 10%);
  }

  60% {
    transform: translate(15%, 0%);
  }

  70% {
    transform: translate(0%, 15%);
  }

  80% {
    transform: translate(3%, 35%);
  }

  90% {
    transform: translate(-10%, 10%);
  }
}

main {
  flex: 1;
  width: 100%;
}

.lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin: auto;
  width: 90vw;
  pointer-events: none;
  /* KEY FIX: Prevent blocking clicks */
}

.line {
  position: fixed;
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  /* KEY FIX: Prevent blocking clicks */
}

.line::after {
  content: '';
  display: block;
  position: absolute;
  height: 45vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
  animation: drop 3s infinite;
  animation-fill-mode: forwards;
}

.line:nth-child(1) {
  margin-left: -35%;
}

/* left line */
.line:nth-child(1)::after {
  animation-delay: 0s;
  /* !!!! IMPORTANT */
}

.line:nth-child(2) {
  margin-left: -25%;
}

.line:nth-child(2)::after {
  animation-delay: 0.2s;
}

.line:nth-child(3) {
  margin-left: -15%;
}

.line:nth-child(3)::after {
  animation-delay: 0.5s;
}

@keyframes drop {
  0% {
    top: -50%;
  }

  /* ? MAYBE I ADJUST THIS */
  100% {
    top: 110%;
  }
}



.nav-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: transparent;
  position: relative;
}

nav {
  width: 50% !important;
  margin-right: 5rem !important;
  display: flex !important;
  text-align: right !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  gap: 3rem !important;
  position: fixed !important;
  top: 40px !important;
  right: 0 !important;
  z-index: 1000 !important;
  /* Ensure visibility on light backgrounds (like the white project card) */
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Visibility for Hamburger Menu lines */
.hamburger-menu .bar {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

/* Visibility for Language Icon */
.lang-icon {
  filter: invert(1) brightness(0.7) drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}


.nav-status {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  margin-left: 1rem;
}

.nav-status-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: pulse-white 2s infinite;
}

.nav-status-text {
  text-transform: uppercase;
  font-size: 0.9rem;
  /* Match previous size mostly */
  font-family: 'Nimbus Roman No9 L', serif;
  /* Optional: Match contact font? Contact uses Nimbus Roman */
  /* If contact uses Nimbus Roman, maybe this should too.
     Base html nav uses whatever default or hover-this span uses.
     Line 312 styles span with Monument Extended.
     In contact.html, status-text uses Nimbus Roman.
     Let's stick to the existing font unless requested, but uppercase is key.
  */
}

.nav-status:hover {
  opacity: 0.8;
}

nav span {
  white-space: nowrap;
}

.hover-this {
  transition: all 0.3s ease;
}

span {
  /* MAYBE ADD SPAN LOW FONT */
  display: inline-block;
  font-family: "Monument Extended";
  font-weight: 300;
  color: #fff;
  font-size: 36px;
  text-transform: uppercase;
  pointer-events: none;
  transition: transform 0.1s linear;
}

.cursor {
  pointer-events: none;
  position: fixed;
  padding: 0.3rem;
  background-color: #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: transform 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.cursor.active {
  transform: translate(-50%, -50%) scale(8);
}

.cursor.active-icon {
  transform: translate(-50%, -50%) scale(4);
}

@media(min-width: 900px) {
  nav {
    /* ? YOU CAN ADJUST THE NAVBAR */
    display: flex;
    justify-content: space-around;
  }
}

@media(max-width: 900px) {
  nav {
    width: 95%;
    margin-right: 2.5%;
    gap: 1.5rem;
    justify-content: center;
    top: 40px;
    align-items: flex-start;
  }

  nav span {
    font-size: 18px;
  }

  .hover-this {
    padding: 10px 0;
  }
}

/* Language Selector */
.lang-selector {
  position: relative;
  margin-left: 1rem;
  margin-top: 8px;
  /* Slightly lowered for alignment */
}

.lang-toggle {
  background: transparent;
  border: none;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  transition: all 0.3s ease;
}

.lang-icon {
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(0.7);
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.lang-toggle:hover .lang-icon {
  filter: invert(1) brightness(1) grayscale(0);
  opacity: 1;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  font-family: "Monument Extended", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: none !important;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

@media (max-width: 900px) {
  .lang-selector {
    margin-left: 0;
  }

  .lang-icon {
    width: 20px;
    height: 20px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 0.6rem;
  }
}

/* Nav Status Indicator */
.nav-contact {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Ensure width is only based on the Contact link */
}

.nav-status {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  opacity: .85;
  transition: all 0.3s ease;
  pointer-events: auto !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  /* Prevent wrapping */
  z-index: 10;
  /* Ensure visibility */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-status:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.nav-status-text {
  font-size: 13px;
  /* Visibility fix */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  font-family: "Monument Extended", sans-serif;
  font-weight: 300;
}

.nav-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  animation: navBlink 1.6s ease-in-out infinite;
}

/* Tooltip Styling */
.nav-status-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 10px;
  font-family: sans-serif;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-top: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.nav-status:hover .nav-status-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-status-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.15) transparent;
}

@keyframes navBlink {

  0%,
  100% {
    opacity: .25;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-status-dot {
    animation: none;
    opacity: .7;
  }
}


/* Elegant Header Glow */
.header-glow {
  position: relative;
}

.header-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-10%, -50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

.align {
  position: absolute;
  top: 280px;
  left: 10%;
  color: #fff;
  margin: 0;
  padding: 10px;
  font-family: "Monument Extended";
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
  z-index: 10;
}

@media (min-width: 1401px) {
  .align {
    top: 280px;
    left: 20rem;
  }
}

/* Hero Description */
.hero-description {
  color: #fff;
  font-size: 1.25rem;
  font-family: Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  max-width: 700px;
  margin-top: 4rem;
  margin-left: 2rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

@media (min-width: 1401px) {
  .hero-description {
    margin-top: 7rem;
    margin-left: 15rem;
  }
}



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

:root {
  --background: #060608;
  --color: #FAFAFA;
}



.hero-intro {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: -0.5rem;
  display: block;
}

/* Hide reCAPTCHA Badge */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-attribution {
  font-size: 0.75rem;
  color: #fff;
  opacity: 0.4;
  margin-top: 1rem;
  text-align: center;
  line-height: 1.4;
}

.recaptcha-attribution a {
  color: #fff;
  text-decoration: underline;
}

.container {
  color: var(--color);
  font-size: 3.4rem;
  /* ! WILL CHANGE */
  display: flex;
  line-height: 1.2;
  flex-direction: column;
  margin-top: 0rem;
  flex: 0 0 450px;
  width: 450px;
  pointer-events: auto;
  /* Ensure clicks register */
}

.left {
  text-align: left;
  width: 100%;
  font-size: 3rem;
  font-family: 'Nimbus Roman No9 L', serif;
  font-weight: 300;
  text-transform: uppercase;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cycling-text {
  display: inline-block;
  min-height: 1.2em;
}

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

.stack span {
  font-weight: bold;
  grid-row-start: 1;
  grid-column-start: 1;
  font-size: 6rem;
  /* ! WILL CHANGE */
  --stack-height: calc(100% / var(--stacks) - 1px);
  --inverse-index: calc(calc(var(--stacks) - 1) - var(--index));
  --clip-top: calc(var(--stack-height) * var(--index));
  --clip-bottom: calc(var(--stack-height) * var(--inverse-index));
  clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
  animation: stack 340ms cubic-bezier(.46, .29, 0, 1.24) 1 backwards calc(var(--index) * 120ms), glitch 2s ease infinite 2s alternate-reverse;
}

.stack span:nth-child(odd) {
  --glitch-translate: 8px;
}

.stack span:nth-child(even) {
  --glitch-translate: -8px;
}

/* ? WILL CHANGE */

@keyframes stack {
  0% {
    opacity: 0;
    transform: translateX(-50%);
    text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
  }

  ;

  60% {
    opacity: 0.5;
    transform: translateX(50%);
  }

  80% {
    transform: none;
    opacity: 1;
    text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
  }

  100% {
    text-shadow: none;
  }
}

@keyframes glitch {
  0% {
    text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
    transform: translate(var(--glitch-translate));
  }

  2% {
    text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
  }

  4%,
  100% {
    text-shadow: none;
    transform: none;
  }
}



/* Credibility Metrics */
.credibility-metrics {
  position: absolute;
  bottom: 8rem;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 100;
  padding: 1rem;
}

/* Reset global span styles for metrics */
.credibility-metrics span {
  font-size: inherit;
  font-family: inherit;
  text-transform: none;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.glass-cell,
.glass-separator {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

/* Staggered Reveal */
.credibility-metrics:hover .glass-cell,
.credibility-metrics:hover .glass-separator {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.credibility-metrics:hover .glass-cell:nth-child(1) {
  transition-delay: 0s;
}

.credibility-metrics:hover .glass-separator:nth-child(2) {
  transition-delay: 0.05s;
}

.credibility-metrics:hover .glass-cell:nth-child(3) {
  transition-delay: 0.1s;
}

.credibility-metrics:hover .glass-separator:nth-child(4) {
  transition-delay: 0.15s;
}

.credibility-metrics:hover .glass-cell:nth-child(5) {
  transition-delay: 0.2s;
}

.credibility-metrics:hover .glass-separator:nth-child(6) {
  transition-delay: 0.25s;
}

.credibility-metrics:hover .glass-cell:nth-child(7) {
  transition-delay: 0.3s;
}


.glass-cell {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  border-radius: 6px;
  color: #ccc;
  font-size: 1.1rem;
  font-family: sans-serif;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-cell:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px) !important;
  /* Override reveal transform */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.glass-separator {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.metrics-link {
  margin-left: 2rem;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  font-family: 'Nimbus Roman No9 L',
    serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.metrics-link:hover {
  opacity: 1;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* CTA Buttons */
.home-cta {
  position: absolute;
  bottom: 3rem;
  left: 20rem;
  display: flex;
  gap: 1rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.cta-btn:hover {
  background: #ccc;
  border-color: #ccc;
}

.cta-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #444;
  margin-top: 0.5rem;
}

.cta-btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Responsive Home Page */
@media (max-width: 1400px) {
  .home-cta {
    bottom: 2rem;
    left: 10rem;
  }

  .align {
    left: 5%;
    bottom: 12rem;
    gap: 2rem;
  }

  .hero-description {
    margin-left: 1rem;
    max-width: 500px;
  }
}

@media (max-width: 1100px) {
  .credibility-metrics {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    margin: 4rem auto 2rem auto;
    justify-content: center;
    flex-wrap: wrap;
    width: 90%;
    gap: 0.8rem;
  }

  .glass-cell {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .home-cta {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 2rem auto;
    justify-content: center;
  }

  .align {
    position: relative;
    bottom: auto;
    left: auto;
    padding: 8rem 2rem 2rem 2rem;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-description {
    margin-top: 2rem;
    text-align: center;
  }

  .container {
    text-align: center;
  }

  .left {
    text-align: center;
  }

  .nav-wrapper {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  nav {
    width: 98%;
    margin-right: 1%;
    gap: 0.8rem;
    justify-content: center;
  }

  nav span {
    font-size: 14px;
  }

  .stack span {
    font-size: 3rem;
  }

  .left {
    font-size: 1.5rem;
  }

  .home-cards {
    padding: 0 1rem;
  }

  .project-card-mini {
    padding: 1.2rem 1.5rem;
  }

  .project-card-mini h3 {
    font-size: 1.1rem;
  }

  .project-card-mini p {
    font-size: 0.95rem;
  }

  .cta-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 0.5rem;
  }

  nav span {
    font-size: 12px;
  }

  .stack span {
    font-size: 2.5rem;
  }

  .left {
    font-size: 1.2rem;
  }

  .align {
    padding: 6rem 1rem 1rem 1rem;
  }
}

/* --- Redesigned Contact Page (Elegant Adaptation) --- */
.contact-v2-wrapper {
  background-color: transparent;
  min-height: 100vh;
  padding: 100px 5% 50px 5%;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 5;
}

.contact-v2-container {
  max-width: 1320px;
  margin: 180px 0 60px 10%;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
  width: 80%;
  z-index: 2;
}

.contact-v2-container {
  max-width: 1320px;
  margin: 180px 0 60px 10%;
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
  align-items: flex-start;
  position: relative;
  width: 80%;
  z-index: 2;
}

.contact-left {
  flex: 1;
  min-width: 300px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-left h1 {
  font-family: 'Nimbus Roman No9 L', serif;
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 1.25;
  margin-bottom: -1rem;
  text-transform: uppercase;
}

.contact-left p {
  font-size: 1.1rem;
  color: #888;
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Status Card */
.status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.status-text {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.status-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.status-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.status-item.right {
  text-align: right;
  flex-direction: row-reverse;
}

.status-item i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-top: 13px;
}

.status-info {
  display: flex;
  flex-direction: column;
}

.status-value {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 2rem;
  color: #fff;
  line-height: 1.2;
}

.status-label {
  font-family: "Monument Extended", sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  margin-top: 5px;
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-icon-wrapper {
  font-size: 1.5rem;
  color: #fff;
  width: 40px;
  display: flex;
  justify-content: center;
}

.social-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-name {
  font-family: "Monument Extended", sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
}

.social-desc {
  font-family: sans-serif;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.social-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.social-card:hover .social-arrow {
  transform: translateX(3px) rotate(-45deg);
  color: #fff;
}

/* Email Card Specifics */
.email-card {
  position: relative;
  overflow: visible;
  /* Allow dropdown to show */
}

.social-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 2;
}

.social-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.social-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.1);
}

.social-action-btn.copy-btn.copied {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.tooltip-text {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #fff;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-action-btn:hover .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Email Dropdown */
.email-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  /* Indicate clickability */
}

.email-dropdown:hover {
  background: rgba(20, 20, 20, 0.98);
}

.email-card:hover .email-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.email-text {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  pointer-events: none;
  /* Let the parent handle clicks */
  transition: color 0.3s ease;
}

.email-dropdown:hover .email-text {
  color: #fff;
}

.email-card:hover {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}


/* Increased gap to separate dashboard and form */
.contact-v2-container {
  width: 100%;
  max-width: none;
  margin: 180px 0 60px 0;
  padding-left: 10%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  justify-content: space-between;
}

/* Ensure right side aligns to end */
.contact-right {
  flex: 1;
  min-width: 350px;
  display: flex;
  justify-content: flex-end;
  /* Align form to the right */
  padding-right: 15.5rem;
  /* Shift left from edge */
}

.form-box-v2 {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 580px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-box-v2:hover {
  border-color: #444;
  background: rgba(255, 255, 255, 0.05);
}

.form-box-v2 h2 {
  font-family: 'Nimbus Roman No9 L', serif;
  font-weight: 300;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: uppercase;
}

.form-box-v2 p {
  color: #888;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1rem;
}

.form-input-v2 {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: sans-serif;
}

.form-input-v2:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.form-input-v2::placeholder {
  color: #555;
}

textarea.form-input-v2 {
  min-height: 120px;
  resize: none;
  overflow: hidden;
}

.submit-btn-v2 {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 1.2rem;
  font-size: 0.9rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-family: 'Nimbus Roman No9 L', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn-v2:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .contact-v2-wrapper {
    padding-top: 150px;
  }
}

@media (max-width: 768px) {
  .contact-v2-container {
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
  }

  .contact-left h1 {
    font-size: 2.5rem;
  }

  .contact-left p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .social-icons-v2 {
    justify-content: center;
    margin-bottom: 3rem;
    gap: 2.5rem;
    /* Increased gap for touch */
  }

  .social-icons-v2 i {
    font-size: 32px;
    /* Scaled up for mobile */
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-box-v2 {
    padding: 2rem;
  }
}

/* --- Interactive Projects Showcase --- */
.projects-hero {
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 8rem;
  position: relative;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  padding: 4rem;
  border: 1px solid #111;
  border-radius: 20px;
  overflow: hidden;
}

/* --- Custom FST Design Implementation --- */

.hero-visual {
  flex: 1;
  min-height: 500px;
  background: #000;
  /* Deep black background */
  border: 1px solid #222;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* Space between word and diagram */
  padding: 3rem 2rem;
}

/* Morphological Legend */
.morph-legend {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 140px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-10px);
  animation: legendFadeIn 0.5s ease forwards 0.3s;
}

@keyframes legendFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.morph-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  opacity: 0;
  animation: legendItemFadeIn 0.3s ease forwards;
}

.morph-legend-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes legendItemFadeIn {
  to {
    opacity: 1;
  }
}

.legend-abbr {
  font-family: 'Nimbus Roman No9 L', 'Times New Roman', serif;
  font-size: 0.75rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 50px;
}

.legend-full {
  font-family: 'Nimbus Roman No9 L', 'Times New Roman', serif;
  font-size: 0.7rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.5);
  text-transform: capitalize;
}

@media (max-width: 900px) {
  .morph-legend {
    display: none;
    /* Hide on mobile to avoid clutter */
  }
}

/* 1. Top Section: Segmentation Display */
.tokenizer-mask {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 150px;
}

.segmentation-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  /* Slight gap between brackets */
}

.segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: segAppear 0.5s ease forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.seg-text {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 3rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  /* Crisp text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  transform: translateZ(0);
}

.seg-bracket-container {
  width: 100%;
  height: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 8px;
  /* Space before tag */
}

.seg-bracket {
  width: 90%;
  height: 8px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  opacity: 0.6;
}

.seg-tag {
  font-family: 'Nimbus Roman No9 L', 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: bold;
  color: #888;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Variation for Root vs Suffix */
.segment.root .seg-text {
  color: #fff;
}

.segment.root .seg-bracket {
  border-color: #fff;
}

.segment.root .seg-tag {
  color: #fff;
  font-weight: bold;
}

.segment.suffix .seg-text {
  color: #ddd;
}

.segment.suffix .seg-bracket {
  border-color: #888;
}

.segment.suffix .seg-tag {
  color: #888;
}


/* 2. Bottom Section: FST Diagram */
.fst-visualization {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
  padding-top: 3rem;
}

.fst-title {
  font-family: 'Nimbus Roman No9 L', 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0rem;
}

.fst-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* SVG Styles */
.fst-node {
  fill: none;
  stroke: #444;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.fst-node.active {
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.fst-edge {
  fill: none;
  stroke: #333;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.fst-edge.active {
  stroke: #fff;
  stroke-width: 2;
}

.fst-label {
  fill: #666;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  opacity: 0;
  /* Hidden by default, maybe reveal? */
}

@keyframes segAppear {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.projects-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  /* Above background lines */
}

@media (max-width: 900px) {
  .projects-hero {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .hero-visual {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
  }

  .projects-grid-v2 {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .tokenizer-mask {
    flex-wrap: wrap;
  }

  .seg-text {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  .projects-grid-v2 {
    grid-template-columns: 1fr;
  }

  .project-card-v2 {
    /* Ensure cards fit on small screens */
    min-height: auto;
  }
}

.modern-project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.card-img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: blur(4px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.modern-project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #444;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modern-project-card:hover .card-img-wrapper img {
  transform: scale(1.1);
  filter: blur(0);
  opacity: 1;
}

.img-revealed {
  filter: grayscale(0) contrast(1) !important;
  opacity: 0.9 !important;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Specific fix for İpekGPT Card */
#ipekgpt-card .card-img-wrapper {
  background: #ffffff;
}

#ipekgpt-card .card-img-wrapper img {
  object-fit: contain;
  opacity: 0.6;
  filter: blur(4px);
}

#ipekgpt-card:hover .card-img-wrapper img {
  opacity: 1;
  filter: blur(0);
}

.card-content-v2 {
  padding: 2rem;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tag {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.card-title-v2 {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 300;
}

.card-desc-v2 {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* --- Project Details Expansion --- */
.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: sans-serif;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.features-label {
  display: block;
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: #999;
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Architecture Diagrams --- */
.arch-diagram {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  position: relative;
}

.arch-label {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.arch-svg {
  width: 100%;
  height: auto;
  max-height: 120px;
}

.arch-node rect,
.arch-node circle,
.arch-node polygon {
  transition: all 0.3s ease;
}

.arch-diagram:hover .arch-node rect,
.arch-diagram:hover .arch-node circle {
  stroke: rgba(255, 255, 255, 0.8);
  fill: rgba(255, 255, 255, 0.1);
}

.data-flow {
  stroke-dasharray: 4, 4;
  animation: dashFlow 1s linear infinite;
}

.data-flow-fast {
  stroke-dasharray: 3, 3;
  animation: dashFlow 0.5s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -8;
  }
}

/* --- Methodology Section (Deprecated/Removed, Keeping for Safety or future use if re-enabled) --- */
.methodology-section {
  margin-top: 8rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.method-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.4s ease;
}

.method-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.method-number {
  font-family: "Monument Extended", sans-serif;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  display: block;
}

.method-card h3 {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.method-card p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Scrolllytelling & Reveal Animations --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition: all 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-left.active,
.reveal-right.active {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.9);
}

.reveal-scale.active {
  transform: scale(1);
}

/* Staggered delays for home page */
.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

.reveal-delay-4 {
  transition-delay: 0.6s;
}

/* --- Skills Marquee / Chips --- */
.skills-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  margin: 4rem 0;
}

.skills-marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll-marquee 30s linear infinite;
}

.skill-chip {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0 1rem;
  background: #111;
  border: 1px solid #222;
  border-radius: 50px;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skill-chip:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Staggered Delay for Experience */
.experience-item {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid #333;
  padding-bottom: 4rem;
  margin-bottom: 0;
}

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

.experience-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.experience-content {
  margin-top: -8px;
  /* Pulled up to align with node */
}

/* --- Site Footer --- */
footer {
  width: 100%;
  padding: 3rem 0;
  text-align: center;
  margin-top: auto;
  opacity: 0.3;
  /* Subtle, professional look */
  transition: opacity 0.3s ease;
}

footer:hover {
  opacity: 0.6;
}

footer p {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #fff;
  font-weight: 300;

  margin: 0;
}

/* Social Bookmarks */
.social-bookmarks {
  position: fixed;
  bottom: 16%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.bookmark-tab {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  text-decoration: none;
  border-right: 4px solid rgba(255, 255, 255, 0.4);
  /* Whitish Accent */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Monument Extended", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* Reveal icon (~54px) by default with hardware acceleration */
  transform: translate3d(calc(-100% + 54px), 0, 0);
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease, border-color 0.3s ease;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
}

.bookmark-tab:hover {
  transform: translate3d(0, 0, 0);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}

.bookmark-text {
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  font-weight: 500;
  white-space: nowrap;
}

.bookmark-tab:hover .bookmark-text {
  opacity: 1;
  transform: translateX(0);
}

.bookmark-tab i {
  font-size: 1.2rem;
  color: #fff;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .social-bookmarks {
    display: none;
    /* Hide on mobile to avoid overlay issues */
  }
}

/* Cycling Quotes */
.quotes-cycling-container {
  position: fixed;
  top: 72%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
  text-align: right;
  max-width: 400px;
}

.cycling-quote-text {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.4;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

@media (max-width: 1400px) {
  .cycling-quote-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 1100px) {
  .quotes-cycling-container {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin: 4rem auto 2rem auto;
    text-align: center;
    max-width: 90%;
  }

  .cycling-quote-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
  }
}

/* --- Premium Scroll Hint --- */
.scroll-hint {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  /* Subtle background to prevent text overlap */
  padding: 1rem 2rem;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 80%);
  border-radius: 20px;
}

.scroll-hint:hover {
  opacity: 1;
}

.scroll-hint span {
  font-family: "Monument Extended", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: #fff;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.8;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  animation: lightning 4s infinite ease-in-out;
}

@keyframes lightning {

  0%,
  90%,
  100% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    opacity: 0.8;
  }

  92% {
    text-shadow: 0 0 25px rgba(255, 255, 255, 1);
    opacity: 1;
  }

  93% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    opacity: 0.8;
  }

  94% {
    text-shadow: 0 0 35px rgba(255, 255, 255, 1);
    opacity: 1;
  }
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollLine 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (max-width: 900px) {
  .scroll-hint {
    bottom: 1.5rem;
  }

  .scroll-hint::after {
    height: 30px;
  }
}

/* --- Personal Info Grid (About Page) --- */
.personal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Monument Extended", sans-serif;
}

.info-value {
  font-size: 1.2rem;
  color: #fff;
  font-family: 'Nimbus Roman No9 L', serif;
  font-weight: 300;
}

/* --- Direct Contact Section (Contact Page) --- */
.direct-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.contact-info-item i {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  width: 24px;
  text-align: center;
}

.contact-info-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.contact-info-item a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* --- GitHub Stars Badge (Projects Page) --- */
.project-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.github-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255, 215, 0, 0.9);
  font-family: sans-serif;
  font-weight: 500;
}

.github-stars i {
  font-size: 0.75rem;
  color: rgba(255, 215, 0, 0.8);
}

/* Elegant Hero Description Highlight */
.hero-description b {
  font-family: 'Nimbus Roman No9 L', serif;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

/* Production Badge */
.production-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
}

/* Nav Status Visibility Fix (Glassmorphic Pill) */
.nav-status {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
}

@keyframes lightning {

  0%,
  90%,
  100% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    opacity: 0.8;
  }

  92% {
    text-shadow: 0 0 25px rgba(255, 255, 255, 1);
    opacity: 1;
  }

  93% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    opacity: 0.8;
  }

  94% {
    text-shadow: 0 0 35px rgba(255, 255, 255, 1);
    opacity: 1;
  }
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollLine 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (max-width: 900px) {
  .scroll-hint {
    bottom: 1.5rem;
  }

  .scroll-hint::after {
    height: 30px;
  }
}

/* --- Personal Info Grid (About Page) --- */
.personal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Monument Extended", sans-serif;
}

.info-value {
  font-size: 1.2rem;
  color: #fff;
  font-family: 'Nimbus Roman No9 L', serif;
  font-weight: 300;
}

/* --- Direct Contact Section (Contact Page) --- */
.direct-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.contact-info-item i {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  width: 24px;
  text-align: center;
}

.contact-info-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.contact-info-item a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* --- GitHub Stars Badge (Projects Page) --- */
.project-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.github-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255, 215, 0, 0.9);
  font-family: sans-serif;
  font-weight: 500;
}

.github-stars i {
  font-size: 0.75rem;
  color: rgba(255, 215, 0, 0.8);
}

/* Elegant Hero Description Highlight */
.hero-description b {
  font-family: 'Nimbus Roman No9 L', serif;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

/* Production Badge */
.production-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
}

/* Nav Status Visibility Fix (Glassmorphic Pill) */
.nav-status {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-status:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

/* Project Title Row Alignment */
.project-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.project-title-row h3 {
  margin-bottom: 0;
  margin-right: 12px;
}

/* Vertical Adjustment (Little bit up) */
.production-badge,
.github-stars {
  transform: translateY(-2px);
  margin-left: 0 !important;
  /* Reset margin as we use flex gap/margin-right now */
}

/* Force Tokenizer Tags to be White */
.seg-tag {
  color: #fff !important;
  opacity: 1 !important;
  font-family: sans-serif !important;
}

/* Update GitHub Stars Badge to match Production Badge */
.github-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
  border-radius: 4px;
  /* Changed from 20px to match pill/badge shape if needed, or keeping pill? User said 'same as ipekgpt' which is sqaurish/rounded 4px */
  padding: 3px 8px;
  /* Match production badge padding */
  font-size: 0.65rem;
  /* Match production badge font size */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(-2px);
  font-family: sans-serif;
  /* Keep sans-serif or inherit? Production badge uses default font or inherited. Let's stick to system font or sans-serif */
}

.github-stars i {
  font-size: 0.7rem;
  color: #fbbf24;
}

/* Philosophy Section */
.philosophy-quote {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  line-height: 1.6;
  margin: 0 auto;
}

/* Tablet/Mobile Adjustments */
@media (max-width: 768px) {
  .philosophy-quote {
    font-size: 1.4rem;
    padding: 0 1rem;
  }
}

.xp-description {
  color: #ccc;
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  max-width: 600px;
}

/* Button Outline for CTA */
.btn-outline {
  display: inline-block;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  margin-top: 1rem;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Header Adjustments */
.about-header-left h1 {
  font-size: 3.5rem;
  /* Reduced from default big size */
  display: inline-block;
  /* Fixes empty space hover */
  margin-bottom: 0.5rem;
}

/* Harmonize Summary Header */
.about-header-left h2 {
  font-size: 1.8rem;
  /* Match Experience header size */
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 300;
  font-family: 'Nimbus Roman No9 L', serif;
  /* Ensure serif consistency */
}

/* --- Projects Page Overhaul (New Sections) --- */

/* 1. Case Study Tabs */
.case-study-wrapper {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.cs-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.cs-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  color: #888;
  cursor: none !important;
  pointer-events: auto !important;
  font-family: "Monument Extended", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.cs-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.cs-tab-btn.active {
  color: #fff;
  border-bottom-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.cs-content {
  padding: 2rem;
  display: none;
  animation: fadeIn 0.4s ease;
}

.cs-content.active {
  display: block;
}

.cs-content h4 {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.cs-content p,
.cs-content ul {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cs-content ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.cs-content li {
  margin-bottom: 0.5rem;
}

/* 2. Proof Metrics Ribbon */
.metrics-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.glass-badge {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-badge:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.gb-title {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.gb-value {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  font-weight: bold;
  font-family: 'Nimbus Roman No9 L', serif;
}

/* 3. Project Timeline */
.timeline-section {
  margin: 4rem 0;
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: calc(2rem + 8px);
  /* Aligned with dot center */
  left: 16.25%;
  /* Start exactly at 1st node center */
  width: 67.5%;
  /* Span exactly to 4th node center (83.75 - 16.25) */
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  /* Faint background track */
  transform: translateY(-50%);
  z-index: 1;
}

.line-fill {
  position: absolute;
  top: 0;
  left: 0;
  /* Start at parent start */
  height: 100%;
  width: 66.66%;
  /* Exactly 2/3rds of the track (Node 1 to Node 3) */
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.timeline-stops {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  padding: 0 5%;
}

.t-stop {
  flex: 1;
  /* Ensure equal width for precise alignment */
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.4;
  /* Dimmed by default */
  transition: opacity 0.3s ease;
  cursor: none !important;
}

.t-stop:hover,
.t-stop.active {
  opacity: 1;
}

.t-dot {
  width: 12px;
  height: 12px;
  background: #000;
  border: 2px solid #666;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.t-stop.active .t-dot {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transform: scale(1.2);
}

.t-info h5 {
  color: #fff;
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.t-info span {
  font-size: 0.75rem;
  color: #888;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  font-weight: normal;
}

/* 4. Category Headers */
.category-block {
  margin-bottom: 6rem;
}

.category-header {
  margin-bottom: 3rem;
  border-left: 2px solid #fff;
  padding-left: 1.5rem;
}

.category-header h3 {
  font-family: "Monument Extended", sans-serif;
  font-size: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.category-header p {
  color: #888;
  font-size: 0.9rem;
  font-family: 'Nimbus Roman No9 L', serif;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* 5. Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none !important;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  cursor: none !important;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  pointer-events: auto !important;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-body h2 {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section h4 {
  color: #888;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.modal-section p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* 6. Architecture Gallery */
.arch-gallery {
  margin: 6rem 0;
}

.arch-gallery h3 {
  font-family: "Monument Extended", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.arch-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease;
}

.arch-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.arch-item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.arch-item:hover img {
  opacity: 1;
}

.arch-caption {
  padding: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  font-style: italic;
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* 7. Stack Principles */
.stack-principles {
  margin: 6rem 0;
  text-align: center;
}

.sp-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.sp-item {
  font-family: 'Nimbus Roman No9 L', serif;
  font-size: 1.2rem;
  color: #fff;
  font-style: italic;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.sp-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* 8. Now / Next */
.now-next-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
}

.nn-col h3 {
  font-family: "Monument Extended", sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.nn-col p {
  color: #888;
  line-height: 1.6;
}

/* 9. Open Source Stats */
.os-stats {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 2rem;
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Utility */
.mb-2 {
  margin-bottom: 2rem;
}

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

@media (max-width: 900px) {
  .metrics-ribbon {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-line {
    display: none;
  }

  .timeline-stops {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .t-stop {
    flex-direction: row;
    text-align: left;
  }

  .arch-grid,
  .now-next-wrapper {
    grid-template-columns: 1fr;
  }

  .sp-list {
    flex-direction: column;
  }
}

/* Force hide default cursor for custom cursor implementation */
a,
button,
.btn-outline,
.modern-project-card,
.spotlight-section {
  cursor: none !important;
}

/* Aggressive cursor hide for user request */
* {
  cursor: none !important;
}

/* --- Button Styles (Restored) --- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-transform: uppercase;
  font-family: "Monument Extended", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  cursor: none !important;
  /* Enforce custom cursor */
}

.btn-outline:hover {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline span {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  pointer-events: none;
  /* Let parent handle clicks usually, or ensure clicks pass through */
}

/* Live Demo Button Specifics */
.live-demo-btn {
  border-color: rgba(255, 255, 255, 0.4);
}

.heartbeat-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ff3b3b;
  /* Red for live/recording */
  border-radius: 50%;
  margin-right: 2px;
  box-shadow: 0 0 8px #ff3b3b;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.btn-outline:hover .heartbeat-dot {
  background-color: #ff0000;
  box-shadow: 0 0 10px #ff0000;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Optimization: Pause animations when page is hidden */
body.paused * {
  animation-play-state: paused !important;
  transition: none !important;
}