:root {
  --color-neutral-900: oklch(0.185 0 0);
  color-scheme: light dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: oklch(0.145 0 0);
  color: oklch(0.985 0 0);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  animation: fadeIn 1.2s ease-out;
  position: relative;
}

/* Smooth fade-in on page load */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Subtle grain/noise texture overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Mobile Warning Overlay */
.mobile-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.4s ease-out;
}

.mobile-warning-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mobile-warning-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.mobile-warning-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.mobile-warning-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.mobile-warning-subtext {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.mobile-warning-btn {
  background: rgba(221, 132, 72, 0.2);
  border: 1px solid rgba(221, 132, 72, 0.5);
  color: #dd8448;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-warning-btn:hover {
  background: rgba(221, 132, 72, 0.3);
  border-color: rgba(221, 132, 72, 0.8);
  transform: translateY(-2px);
}

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

/* Subtle top navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1.5rem 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideDown 0.8s ease-out 0.3s backwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  color: rgba(255, 255, 255, 1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Title Section */
.hero-title {
  position: relative;
  text-align: center;
  padding: 8rem 2rem 3rem;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero title moves up and fades when any card is hovered */
body:has(.card-container:hover) .hero-title {
  transform: translateY(-20px) scale(0.98);
  opacity: 0.4;
  filter: blur(2px);
}

.main-headline {
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem 0;
  background: linear-gradient(135deg,
    #dd8448 0%,
    #ffffff 25%,
    #4da6ff 50%,
    #ffffff 75%,
    #bd93f9 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.15em;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
  background: linear-gradient(135deg,
    rgba(221, 132, 72, 0.8) 0%,
    rgba(255, 255, 255, 0.95) 33%,
    rgba(77, 166, 255, 0.8) 66%,
    rgba(189, 147, 249, 0.8) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -0.005em;
  padding-bottom: 3rem;
  animation: gradientShift 10s ease infinite;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* Fullscreen Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body:has(.card-container[↖️]:hover) #bg-video {
  opacity: 1;
  z-index: 0;
}

/* Back-end card hover - show flipped video */
body:has(.card-container[🎨]:hover) #bg-video {
  opacity: 1;
  z-index: 0;
  transform: scaleX(-1);
}

.main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  width: 100%;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 2em;
  padding-bottom: 6rem;
  scroll-margin-top: 100px; /* Add spacing when scrolling to this section */
}

.svg-container {
  position: absolute;
}

/* Card core */
.card-container {
  padding: 2px;
  margin: 0;
  border-radius: 1.5em;
  position: relative;
  background: linear-gradient(-30deg, var(--gradient-color), transparent, var(--gradient-color)),
    linear-gradient(to bottom, var(--color-neutral-900), var(--color-neutral-900));
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  animation: fadeInScale 0.8s ease-out backwards;
}

/* Stagger card animations */
.card-container:nth-child(1) {
  animation-delay: 0.7s;
}

.card-container:nth-child(2) {
  animation-delay: 0.9s;
}

.card-container:nth-child(3) {
  animation-delay: 1.1s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Make cards clickable when hovered */
.card-container:hover {
  cursor: pointer;
}

/* Front-end card expansion on hover */
.card-container[↖️]:hover {
  transform: scale(1.3) translateX(0) translateY(-50px);
  z-index: 100;
}

/* Back-end card moves right and grays out when front-end is hovered */
body:has(.card-container[↖️]:hover) .card-container[🎨] {
  transform: translateX(150px) scale(0.85);
  filter: grayscale(0.8) brightness(0.6);
  opacity: 0.5;
  z-index: 1;
}

/* Back-end card expansion on hover */
.card-container[🎨]:hover {
  transform: scale(1.3) translateX(0) translateY(-50px);
  z-index: 100;
}

/* Front-end card moves left and grays out when back-end is hovered */
body:has(.card-container[🎨]:hover) .card-container[↖️] {
  transform: translateX(-150px) scale(0.85);
  filter: grayscale(0.8) brightness(0.6);
  opacity: 0.5;
  z-index: 1;
}

/* Architecture card expansion on hover */
.card-container[🏗️]:hover {
  transform: scale(1.3) translateX(0) translateY(-50px);
  z-index: 100;
}

/* Other cards gray out when architecture card is hovered */
/* When architecture card is hovered, gray out other cards */
body:has(.card-container[🏗️]:hover) .card-container[↖️] {
  transform: translateX(-100px) scale(0.85);
  filter: grayscale(0.8) brightness(0.6);
  opacity: 0.5;
  z-index: 1;
}

body:has(.card-container[🏗️]:hover) .card-container[🎨] {
  transform: scale(0.85);
  filter: grayscale(0.8) brightness(0.6);
  opacity: 0.5;
  z-index: 1;
}

/* Architecture card video effect */
body:has(.card-container[🏗️]:hover) #bg-video {
  opacity: 1;
  z-index: 0;
  transform: scaleY(-1);
}

/* When front-end or back-end is hovered, gray out architecture card */
body:has(.card-container[↖️]:hover) .card-container[🏗️] {
  transform: translateX(150px) scale(0.85);
  filter: grayscale(0.8) brightness(0.6);
  opacity: 0.5;
  z-index: 1;
}

body:has(.card-container[🎨]:hover) .card-container[🏗️] {
  transform: translateX(150px) scale(0.85);
  filter: grayscale(0.8) brightness(0.6);
  opacity: 0.5;
  z-index: 1;
}

.card-container[↖️] {
  --f: url(#🌀↖️);
  --electric-border-color: #dd8448;
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
}
.card-container[🎨] {
  --f: url(#🌀🎨);
  --electric-border-color: DodgerBlue;
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
}
.card-container[🏗️] {
  --f: url(#🌀🏗️);
  --electric-border-color: #bd93f9;
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
  margin-left: 20px;
}

.inner-container {
  position: relative;
}

.border-outer {
  border: 1.5px solid oklch(from var(--electric-border-color) l c h / 0.6);
  border-radius: 1.5em;
  padding-right: 0.1em;
  padding-bottom: 0.1em;
}

.main-card {
  width: 22rem;
  aspect-ratio: 7 / 10;
  border-radius: 1.5em;
  border: 1.5px solid var(--electric-border-color);
  margin-top: -3px;
  margin-left: -3px;
  filter: var(--f);
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand card height on hover and remove electric filter */
.card-container[↖️]:hover .main-card {
  aspect-ratio: 7 / 12;
  filter: none;
}

/* Back-end card expansion */
.card-container[🎨]:hover .main-card {
  aspect-ratio: 7 / 12;
  filter: none;
}

/* Architecture card expansion */
.card-container[🏗️]:hover .main-card {
  aspect-ratio: 7 / 12;
  filter: none;
}

/* When back-end card is hovered, move front-end card to the left */
.card-container[🎨]:hover ~ .card-container[↖️] {
  transform: translateX(-150px) scale(0.85);
  opacity: 0.5;
  filter: grayscale(1);
}

/* Image inside card */
.project-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5em;
  opacity: 0.9;
  transition: transform 0.8s ease, opacity 0.5s ease;
  filter: brightness(1.05) contrast(1.1) saturate(1.2);
}

.card-container:hover .project-preview {
  transform: scale(1.05);
  opacity: 1;
}

/* Glow layers */
.glow-layer-1,
.glow-layer-2 {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.glow-layer-1 {
  border: 1.5px solid oklch(from var(--electric-border-color) l c h / 0.7);
  filter: blur(0.5px);
}

.glow-layer-2 {
  border: 1.5px solid var(--electric-light-color);
  filter: blur(2px);
}

/* Overlay lighting */
.overlay-1,
.overlay-2,
.background-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 24px;
  transform: scale(1.1);
}

.overlay-1,
.overlay-2 {
  mix-blend-mode: overlay;
  filter: blur(16px);
  background: linear-gradient(-30deg, white, transparent 30%, transparent 70%, white);
}

.overlay-1 { opacity: 1; }
.overlay-2 { opacity: 0.5; }

.background-glow {
  filter: blur(32px);
  opacity: 0.3;
  z-index: -1;
  background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

/* Content layout */
.content-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5em;
}

.content-top {
  display: flex;
  flex-direction: column;
  padding: 48px 48px 16px;
  height: 100%;
}

.content-bottom {
  display: flex;
  flex-direction: column;
  padding: 16px 48px 48px;
}

/* Button */
.btn {
  margin-top: 1em;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 500;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  display: inline-block;
  text-align: left;
  cursor: pointer;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-2px);
}

/* Scrollbar glass label */
.scrollbar-glass {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  width: fit-content;
  height: fit-content;
  padding: 0.5em 1em;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.8);
}

/* iPhone UI Elements */
.iphone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  color: white;
  font-size: 0.65em;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 1.5em 1.5em 0 0;
  z-index: 1000;
}

.status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.signal-bars {
  width: 18px;
  height: 10px;
}

.wifi-icon {
  width: 15px;
  height: 10px;
}

.battery-icon {
  width: 22px;
  height: 10px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal-bars,
.wifi-icon,
.battery-icon {
  opacity: 0.95;
  flex-shrink: 0;
}

.signal-bars {
  width: 17px;
  height: 10px;
}

.wifi-icon {
  width: 15px;
  height: 10px;
}

.battery-icon {
  width: 23px;
  height: 10px;
}

.iphone-home-indicator {
  opacity: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 0 0 1.5em 1.5em;
  margin: 0;
}

.card-container[↖️]:hover .iphone-home-indicator {
  opacity: 1;
  height: 20px;
}

.iphone-home-indicator::before {
  content: '';
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

/* Default Content */
.default-content {
  opacity: 1;
  transition: opacity 0.6s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* Show pointer when hovering default content */
}

.card-container[↖️]:hover .default-content {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* Expanded Content */
.expanded-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 1.5em;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overscroll-behavior: contain; /* Prevent scroll chaining */
  position: relative;
  /* Add mask to fade content at top */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30px, black 100%);
}

.expanded-content::-webkit-scrollbar {
  display: none;
}

.card-container[↖️]:hover .expanded-content {
  opacity: 1;
  max-height: none;
  pointer-events: auto;
  padding-top: 0;
  cursor: default; /* Change cursor to indicate it's scrollable */
}

/* Back-end card expanded content */
.card-container[🎨]:hover .expanded-content {
  opacity: 1;
  max-height: none;
  pointer-events: auto;
  padding-top: 0;
  cursor: default;
}

/* Back-end card default content hide on hover */
.card-container[🎨]:hover .default-content {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* Architecture card expanded content */
.card-container[🏗️]:hover .expanded-content {
  opacity: 1;
  max-height: none;
  pointer-events: auto;
  padding-top: 0;
  cursor: default;
}

/* Architecture card default content hide on hover */
.card-container[🏗️]:hover .default-content {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* iPhone Notch/Dynamic Island Area */
.iphone-notch-area {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.notch-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Mobile Hero Section */
.mobile-hero {
  padding: 12px 24px 16px 24px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5em 1.5em 0 0;
}

.mobile-category {
  font-size: 0.65em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-bottom: 10px;
  font-weight: 600;
  color: rgba(221, 132, 72, 0.8);
}

.mobile-title {
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff, #dd8448, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(221, 132, 72, 0.3);
}

.mobile-subtitle {
  font-size: 0.8em;
  line-height: 1.5;
  opacity: 0.6;
  font-weight: 400;
}

/* Mobile Projects Section */
.mobile-projects {
  padding: 16px 20px 20px 20px;
  flex: 1;
  border-radius: 0 0 1.5em 1.5em;
  cursor: default; /* Indicate this area is for interaction/scrolling */
  user-select: text; /* Allow text selection in project cards */
}

.mobile-section-title {
  font-size: 0.75em;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-left: 4px;
}

.mobile-project-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(221, 132, 72, 0.3);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.mobile-project-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(221, 132, 72, 0.8);
  padding-left: 24px;
}

.mobile-project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(221, 132, 72, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-number {
  flex-shrink: 0;
  font-size: 1.8em;
  font-weight: 300;
  color: rgba(221, 132, 72, 0.6);
  line-height: 1;
  font-family: 'Courier New', monospace;
  min-width: 40px;
}

.project-details {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
}

.project-description {
  font-size: 0.75em;
  opacity: 0.5;
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 400;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-badge {
  font-size: 0.65em;
  padding: 4px 10px;
  background: rgba(221, 132, 72, 0.1);
  border: 1px solid rgba(221, 132, 72, 0.2);
  border-radius: 4px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

/* Text */
.title {
  font-size: 2.25em;
  font-weight: 500;
  margin-top: auto;
}

.description {
  opacity: 0.5;
  line-height: 1.4;
}

.divider {
  margin-top: auto;
  border: none;
  height: 1px;
  background-color: currentColor;
  opacity: 0.1;
  mask-image: linear-gradient(to right, transparent, black, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black, transparent);
}

/* Apple-Style Slideshow Modal */
.slideshow-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  pointer-events: none;
}

.slideshow-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slideshow-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  transition: background 0.3s ease;
}

.slideshow-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.slideshow-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slideshow-content {
  width: 100%;
  max-width: 1400px;
  height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.slide-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 4rem 7rem 4rem;
  opacity: 1;
  transition: opacity 0.6s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.slide::-webkit-scrollbar {
  width: 8px;
}

.slide::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.slide::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slide-media {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  background: transparent;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  overflow: hidden;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.slide-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

.slide-video.career-nexus-video {
  object-fit: cover;
  transform: scale(1.05);
}

.slide-placeholder {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.slide-info {
  text-align: center;
  max-width: 800px;
  padding-bottom: 2rem;
}

.slide-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-description {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0 auto;
}

/* Summary Slide Styles - Full Page Project Overview */
.slide-full-page {
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.slide-full-page::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.slide-full-page::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 25s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.project-overview-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  overflow-y: auto;
  max-height: 85vh;
  position: relative;
  z-index: 1;
}

.overview-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.overview-main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(59, 130, 246, 0.9) 50%, rgba(168, 85, 247, 0.8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s ease-in-out infinite;
  background-size: 200% 200%;
}

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

.overview-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
  font-weight: 300;
}

.overview-content {
  display: grid;
  gap: 2.5rem;
}

.overview-section {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(60px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.overview-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(59, 130, 246, 0.3),
    rgba(168, 85, 247, 0.3),
    transparent);
  animation: shimmerBorder 6s linear infinite;
  background-size: 200% 100%;
}

@keyframes shimmerBorder {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    rgba(59, 130, 246, 0.6),
    rgba(168, 85, 247, 0.6),
    transparent);
  border-radius: 2px;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.6;
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    filter: blur(2px);
  }
}

/* Timeline Styles */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  position: relative;
}

.timeline::before {
  display: none;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.timeline-marker {
  position: relative;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(168, 85, 247, 0.8));
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.3);
  margin-bottom: 0.5rem;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.15), 0 0 30px rgba(168, 85, 247, 0.4);
  }
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 1.25rem;
  display: block;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
  transform: scale(1.1);
}

.feature-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Technical Specs */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.spec-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.spec-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.spec-value {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Results Section */
.results-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.results-section .section-heading {
  text-align: center;
}

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

.results-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
  .project-overview-page {
    padding: 2rem 1.5rem;
  }

  .overview-section {
    padding: 2rem 1.75rem;
  }

  .timeline,
  .features-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .summary-divider {
    display: none;
  }
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  z-index: 10;
}

/* Only show navigation when modal is active */
.slideshow-modal.active .slideshow-nav {
  display: flex;
}

.slideshow-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-nav.prev {
  left: 2rem;
}

.slideshow-nav.next {
  right: 2rem;
}

.slideshow-indicators {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Hidden by default */
  gap: 12px;
  z-index: 10;
}

/* Only show indicators when modal is active */
.slideshow-modal.active .slideshow-indicators {
  display: flex;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background: white;
  width: 32px;
  border-radius: 4px;
}

/* Backend slideshow navigation arrows */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  z-index: 10;
}

/* Only show navigation when modal is active */
.slideshow-modal.active .slide-nav {
  display: flex;
}

.slide-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
  left: 2rem;
}

.slide-nav.next {
  right: 2rem;
}

.slide-nav svg {
  pointer-events: none;
}

/* Backend slideshow indicators */
.slide-indicators {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Hidden by default */
  gap: 12px;
  z-index: 10;
}

/* Only show indicators when modal is active */
.slideshow-modal.active .slide-indicators {
  display: flex;
}

/* Slide Tech Stack */
.slide-tech-stack {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-pill {
  padding: 0.5rem 1rem;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(0, 200, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-pill:hover {
  background: rgba(0, 200, 255, 0.2);
  border-color: rgba(0, 200, 255, 0.5);
}

.slide-tech-highlight {
  margin-top: 1.25rem;
}

.tech-highlight-badge {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(150, 100, 255, 0.15));
  border: 1px solid rgba(0, 200, 255, 0.4);
  border-radius: 25px;
  font-size: 0.8rem;
  color: rgba(0, 200, 255, 1);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

/* About Section */
.about-section {
  position: relative;
  padding: 8rem 2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 10, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  margin-top: 6rem;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 5rem;
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
}

.about-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-video-container {
  position: sticky;
  top: 6rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  background: rgba(0, 0, 0, 0.3);
}

.about-video-container:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 60px rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.about-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-story,
.about-skills {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
  transition: all 0.4s ease;
}

.about-story:hover,
.about-skills:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.story-title,
.skills-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.story-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.story-text:last-child {
  margin-bottom: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.skill-category {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.category-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.skill-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 1.25rem;
  position: relative;
  letter-spacing: -0.01em;
}

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

/* Footer */
.footer {
  position: relative;
  width: 100%;
  padding: 2rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 900;
  margin-top: 4rem;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer fades when cards are hovered */
body:has(.card-container:hover) .footer {
  opacity: 0.5;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.01em;
  justify-self: start;
}

.footer-copy p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-self: center;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.01em;
  justify-self: end;
}

.footer-tagline p {
  margin: 0;
}

/* Responsive layout */
@media (max-width: 800px) {
  .main-container {
    flex-direction: column;
    height: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-story,
  .about-skills {
    padding: 2rem;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-copy,
  .footer-social,
  .footer-tagline {
    justify-self: center;
  }
}

/* ===================================
   Services Section
   =================================== */

.services-section {
  padding: 100px 5%;
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  position: relative;
}

.services-content {
  max-width: 1400px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
}

.services-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.services-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 60px;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.3), rgba(150, 100, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 200, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 200, 255, 0.1);
}

.service-number {
  font-size: 0.75rem;
  color: rgba(0, 200, 255, 0.6);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: block;
}

.service-name {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.service-description {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.service-features li {
  color: rgba(255, 255, 255, 0.5);
  padding-left: 1rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.6), rgba(150, 100, 255, 0.6));
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.3);
}

.rates-container {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.rates-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 4rem 5rem;
  text-align: center;
  max-width: 600px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.rates-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.3), transparent, rgba(150, 100, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.rates-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0, 200, 255, 0.15);
}

.rates-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.rate-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.currency {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.price {
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(0, 200, 255, 0.8) 50%, rgba(150, 100, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -2px;
}

.period {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.rates-note {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
  padding: 100px 5%;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  position: relative;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 80px;
}

.contact-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3rem;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.3), rgba(150, 100, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.contact-form:hover::before {
  opacity: 1;
}

.contact-form:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 200, 255, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 200, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.1);
}

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

.form-submit {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.2rem 2rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.form-submit:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 200, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 200, 255, 0.2);
}

.submit-arrow {
  transition: transform 0.3s ease;
}

.form-submit:hover .submit-arrow {
  transform: translateX(5px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 1rem;
}

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

.info-label {
  font-size: 0.7rem;
  color: rgba(0, 200, 255, 0.6);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.info-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.info-link:hover {
  color: rgba(0, 200, 255, 0.8);
}

.info-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .services-title,
  .contact-title {
    font-size: 2.5rem;
  }

  .rates-card {
    padding: 2rem 2.5rem;
  }

  .price {
    font-size: 4rem;
  }
}

/* Backend Modal Styles */
.architecture-diagram {
  width: 100%;
  height: 100%;
  min-height: 500px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arch-layer {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.arch-layer:nth-child(1) { animation-delay: 0.1s; }
.arch-layer:nth-child(2) { animation-delay: 0.2s; }
.arch-layer:nth-child(3) { animation-delay: 0.3s; }
.arch-layer:nth-child(4) { animation-delay: 0.4s; }
.arch-layer:nth-child(5) { animation-delay: 0.5s; }
.arch-layer:nth-child(6) { animation-delay: 0.6s; }
.arch-layer:nth-child(7) { animation-delay: 0.7s; }
.arch-layer:nth-child(8) { animation-delay: 0.8s; }

.connection-line {
  animation: drawLine 1s ease-out forwards;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Auth Microservice Showcase */
.auth-showcase {
  width: 100%;
  padding: 32px;
  background: oklch(0.16 0 0);
  border-radius: 12px;
  display: grid;
  gap: 20px;
  min-height: 600px;
  height: auto;
}

.slide-media:has(.auth-showcase),
.slide-media:has(.architecture-diagram),
.slide-media:has(.metrics-dashboard),
.slide-media:has(.websocket-demo),
.slide-media:has(.api-docs-container),
.slide-media:has(.database-schema),
.slide-media:has(.terminal-window) {
  aspect-ratio: auto;
  height: auto;
  min-height: 500px;
}

.auth-flow-section {
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 12px;
  padding: 24px;
}

.flow-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: oklch(0.9 0 0);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 140px;
  background: oklch(0.17 0 0);
  border: 2px solid oklch(0.28 0 0);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-4px);
  border-color: #007AFF;
  box-shadow: 0 8px 16px rgba(0, 122, 255, 0.2);
}

.flow-step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
  font-size: 16px;
}

.flow-step-title {
  font-size: 14px;
  font-weight: 600;
  color: oklch(0.85 0 0);
  margin-bottom: 8px;
}

.flow-code-mini {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 11px;
  color: #34C759;
  background: oklch(0.14 0 0);
  padding: 4px 8px;
  border-radius: 4px;
}

.flow-arrow {
  color: #007AFF;
  font-size: 24px;
  font-weight: 700;
}

.auth-code-section {
  background: #252526;
  border: 1px solid #3e3e42;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-code-header {
  background: #2d2d30;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #3e3e42;
  height: 36px;
}

.code-file-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
  background: #1e1e1e;
  border-right: 1px solid #3e3e42;
  position: relative;
}

.code-file-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #007acc;
}

.code-file-icon {
  font-size: 14px;
}

.code-file-name {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  color: #cccccc;
  font-weight: 400;
  letter-spacing: 0;
}

.code-status {
  margin-left: auto;
  padding: 4px 12px;
  background: rgba(52, 199, 89, 0.15);
  color: #4ec9b0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: -apple-system, system-ui, sans-serif;
}

.auth-code-content {
  padding: 0;
  overflow-x: auto;
  max-height: 400px;
  background: #1e1e1e;
  position: relative;
}

.auth-code-content pre {
  margin: 0;
  padding: 24px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #d4d4d4;
  background: #1e1e1e;
}

.auth-code-content code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

/* VS Code Style Syntax Highlighting */
.code-comment {
  color: #6a9955;
  font-style: italic;
}

.code-keyword {
  color: #c586c0;
  font-weight: 500;
}

.code-function {
  color: #dcdcaa;
  font-weight: 500;
}

.code-string {
  color: #ce9178;
}

.code-number {
  color: #b5cea8;
}

.code-class {
  color: #4ec9b0;
}

.code-variable {
  color: #9cdcfe;
}

.code-operator {
  color: #d4d4d4;
}

.code-punctuation {
  color: #d4d4d4;
}

.code-parameter {
  color: #9cdcfe;
}

.auth-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.auth-feature-card {
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.auth-feature-card:hover {
  transform: translateY(-2px);
  border-color: oklch(0.35 0 0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.feature-name {
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.85 0 0);
  margin-bottom: 4px;
}

.feature-detail {
  font-size: 11px;
  color: oklch(0.6 0 0);
}

.auth-metrics-bar {
  display: flex;
  justify-content: space-around;
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 12px;
  padding: 20px;
}

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

.metric-number {
  font-size: 32px;
  font-weight: 700;
  color: #007AFF;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.metric-text {
  font-size: 12px;
  color: oklch(0.65 0 0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* API Documentation */
.api-docs-container {
  padding: 32px;
  background: oklch(0.16 0 0);
  border-radius: 12px;
  overflow-y: auto;
  max-height: 600px;
  min-height: 500px;
}

.api-endpoint {
  margin-bottom: 32px;
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 12px;
  overflow: hidden;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: oklch(0.17 0 0);
  border-bottom: 1px solid oklch(0.25 0 0);
}

.http-method {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.http-method.get {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.http-method.post {
  background: rgba(0, 122, 255, 0.1);
  color: #007AFF;
}

.http-method.put {
  background: rgba(255, 149, 0, 0.1);
  color: #FF9500;
}

.http-method.delete {
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
}

.endpoint-path {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 14px;
  color: oklch(0.85 0 0);
}

.endpoint-body {
  padding: 20px;
}

.code-block {
  margin-bottom: 20px;
}

.code-label {
  font-size: 12px;
  font-weight: 600;
  color: oklch(0.65 0 0);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-block pre {
  background: oklch(0.14 0 0);
  border: 1px solid oklch(0.22 0 0);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: oklch(0.8 0 0);
}

/* Performance Metrics */
.metrics-dashboard {
  padding: 40px;
  background: oklch(0.16 0 0);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  min-height: 500px;
}

.metric-card-backend {
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card-backend:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: oklch(0.35 0 0);
}

.metric-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.metric-value {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: oklch(0.95 0 0);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: oklch(0.65 0 0);
  margin-bottom: 16px;
}

.metric-bar {
  height: 4px;
  background: oklch(0.25 0 0);
  border-radius: 2px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #007AFF, #5856D6);
  border-radius: 2px;
  transition: width 1s ease;
}

.performance-chart {
  grid-column: 1 / -1;
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 16px;
  padding: 32px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: oklch(0.9 0 0);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  gap: 16px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, #007AFF, #5856D6);
  border-radius: 8px 8px 0 0;
  transition: height 1s ease;
  position: relative;
}

.chart-bar::before {
  content: attr(data-label);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: oklch(0.75 0 0);
}

.chart-label {
  font-size: 12px;
  color: oklch(0.65 0 0);
  text-align: center;
}

/* Terminal Window */
.terminal-window {
  background: oklch(0.14 0 0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  min-height: 500px;
}

.terminal-header {
  background: oklch(0.17 0 0);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid oklch(0.22 0 0);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.close {
  background: #FF5F57;
}

.terminal-btn.minimize {
  background: #FFBD2E;
}

.terminal-btn.maximize {
  background: #28CA42;
}

.terminal-title {
  font-size: 13px;
  color: oklch(0.7 0 0);
  font-weight: 500;
}

.terminal-body {
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.terminal-prompt {
  color: #34C759;
  font-weight: 600;
}

.terminal-command {
  color: oklch(0.85 0 0);
}

.terminal-indent {
  color: oklch(0.85 0 0);
  padding-left: 24px;
}

.terminal-output {
  margin-bottom: 8px;
  color: oklch(0.75 0 0);
}

.terminal-output pre {
  margin: 8px 0;
  padding: 12px;
  background: oklch(0.11 0 0);
  border-radius: 6px;
  color: oklch(0.8 0 0);
}

.log-info {
  color: #007AFF;
  font-weight: 600;
}

.log-success {
  color: #34C759;
  font-weight: 600;
}

.log-error {
  color: #FF3B30;
  font-weight: 600;
}

.terminal-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Database Schema */
.database-schema {
  padding: 40px;
  background: oklch(0.16 0 0);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  min-height: 500px;
}

.schema-table {
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 12px;
  overflow: hidden;
  min-width: 200px;
  flex: 1;
}

.table-header {
  background: oklch(0.17 0 0);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid oklch(0.25 0 0);
}

.table-icon {
  font-size: 20px;
}

.table-name {
  font-size: 16px;
  font-weight: 700;
  color: oklch(0.9 0 0);
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.table-fields {
  padding: 16px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid oklch(0.22 0 0);
  font-size: 13px;
}

.field-row:last-child {
  border-bottom: none;
}

.field-name {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  color: oklch(0.85 0 0);
  font-weight: 500;
}

.field-type {
  color: #007AFF;
  font-weight: 600;
  font-size: 11px;
}

.field-constraint {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.schema-relation {
  font-size: 32px;
  color: oklch(0.5 0 0);
  display: flex;
  align-items: center;
}

.schema-notes {
  flex: 1 0 100%;
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
}

.note-item {
  font-size: 13px;
  color: oklch(0.75 0 0);
  margin-bottom: 8px;
  line-height: 1.6;
}

.note-item strong {
  color: oklch(0.9 0 0);
}

/* WebSocket Demo */
.websocket-demo {
  padding: 32px;
  background: oklch(0.16 0 0);
  border-radius: 12px;
  display: grid;
  gap: 24px;
  min-height: 500px;
}

.ws-code-panel {
  background: oklch(0.14 0 0);
  border: 1px solid oklch(0.22 0 0);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  background: oklch(0.17 0 0);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.75 0 0);
  border-bottom: 1px solid oklch(0.22 0 0);
}

.ws-code-panel pre {
  padding: 20px;
  overflow-x: auto;
}

.ws-code-panel code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: oklch(0.8 0 0);
}

.ws-activity {
  background: oklch(0.19 0 0);
  border: 1px solid oklch(0.25 0 0);
  border-radius: 12px;
  overflow: hidden;
}

.activity-header {
  background: oklch(0.17 0 0);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid oklch(0.25 0 0);
  font-size: 14px;
  font-weight: 600;
  color: oklch(0.85 0 0);
}

.activity-dot {
  width: 8px;
  height: 8px;
  background: #34C759;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.activity-log {
  padding: 16px;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: oklch(0.17 0 0);
  font-size: 13px;
}

.activity-time {
  color: oklch(0.6 0 0);
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 12px;
}

.activity-msg {
  color: oklch(0.8 0 0);
}

/* ============================================
   AI INFERENCE + DATABASE ARCHITECTURE
   Production-grade engineering showcase
   ============================================ */

.ai-inference-container {
  width: 100%;
  min-height: 100vh;
  background: #0e0e10;
  padding: 60px 40px 80px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Two-Column Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 80px;
  align-items: start;
}

/* Column Styles */
.left-column,
.right-column {
  padding: 40px 60px;
  background: #121214;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #00ffaa;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.column-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.column-description {
  font-size: 15px;
  line-height: 1.6;
  color: #a3a3a7;
  margin: 0 0 40px 0;
  max-width: 600px;
}

/* Pipeline Flow */
.pipeline-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pipeline-step:hover {
  transform: translateY(-2px);
  border-color: #00ffaa;
  background: rgba(0, 255, 170, 0.03);
  box-shadow: 0 4px 20px rgba(0, 255, 170, 0.1);
}

.step-indicator {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1a1a1c, #252528);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  color: #00ffaa;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pipeline-step:hover .step-indicator {
  background: linear-gradient(135deg, #00ffaa, #00d4ff);
  color: #0e0e10;
  border-color: transparent;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.step-content p {
  font-size: 13px;
  color: #808080;
  margin: 0 0 4px 0;
  font-family: 'JetBrains Mono', monospace;
}

.step-meta {
  font-size: 11px;
  color: #5a5a5f;
  font-family: 'JetBrains Mono', monospace;
}

/* Flow Connectors */
.flow-connector {
  width: 2px;
  height: 16px;
  margin-left: 66px;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
}

.connector-arrow {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.08);
}

/* Pipeline Metrics */
.pipeline-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: rgba(0, 255, 170, 0.03);
  border: 1px solid rgba(0, 255, 170, 0.1);
  border-radius: 8px;
  margin-top: auto;
}

.metric-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
  color: #00ffaa;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  font-size: 18px;
  font-weight: 600;
  color: #00ffaa;
  opacity: 0.7;
}

.metric-label {
  font-size: 11px;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: absolute;
  bottom: -20px;
  left: 0;
  white-space: nowrap;
}

.metric-item {
  position: relative;
  padding-bottom: 24px;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* Database Schema Grid */
.db-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.db-card {
  background: #0e0e10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.db-card:hover {
  border-color: rgba(0, 255, 170, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
}

.table-badge {
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #00d4ff;
}

.table-badge.production {
  background: rgba(52, 199, 89, 0.1);
  border-color: rgba(52, 199, 89, 0.2);
  color: #4ec9b0;
}

.schema-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.field-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.field-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.field-type {
  font-size: 11px;
  color: #808080;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Database Tech Pills */
.db-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tech-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-pill:hover {
  background: rgba(0, 255, 170, 0.08);
  border-color: rgba(0, 255, 170, 0.3);
  transform: translateY(-1px);
}

/* Code Showcase Section */
.code-showcase-section {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 40px;
}

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

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.code-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4ec9b0;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #4ec9b0;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.file-path {
  font-size: 13px;
  color: #808080;
  font-family: 'JetBrains Mono', monospace;
}

/* Code Viewer */
.code-viewer {
  background: #1e1e1e;
  border: 1px solid #3e3e42;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.code-header {
  background: #2d2d30;
  border-bottom: 1px solid #3e3e42;
  padding: 0;
}

.code-tabs {
  display: flex;
}

.code-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border-right: 1px solid #3e3e42;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.code-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.code-tab.active {
  background: #1e1e1e;
}

.code-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #007acc;
}

.tab-icon {
  font-size: 11px;
  font-weight: 700;
  color: #7DD3FC;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.tab-name {
  font-size: 13px;
  color: #cccccc;
  font-family: 'JetBrains Mono', monospace;
}

/* Code Body */
.code-body {
  display: flex;
  background: #1e1e1e;
  max-height: 600px;
  overflow-y: auto;
}

.line-numbers {
  padding: 20px 16px;
  background: #1e1e1e;
  border-right: 1px solid #3e3e42;
  color: #858585;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
  user-select: none;
  min-width: 56px;
}

.code-content {
  flex: 1;
  padding: 20px 24px;
  margin: 0;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #d4d4d4;
  background: #1e1e1e;
  overflow-x: auto;
}

.code-line {
  display: block;
  transition: all 0.2s ease;
  padding: 0 12px;
  margin-left: -12px;
  border-left: 2px solid transparent;
}

.code-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

.code-line.highlight {
  background: rgba(0, 255, 170, 0.06);
  border-left-color: #00ffaa;
}

/* VS Code Syntax Highlighting */
.code-comment {
  color: #6a9955;
  font-style: italic;
}

.code-keyword {
  color: #c586c0;
}

.code-module {
  color: #4ec9b0;
}

.code-function {
  color: #dcdcaa;
}

.code-string {
  color: #ce9178;
}

.code-number {
  color: #b5cea8;
}

.code-param {
  color: #9cdcfe;
}

/* Scroll Reveal Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

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

/* Count-up animation class */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .left-column,
  .right-column {
    min-height: auto;
  }
}

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

  .database-schema {
    flex-direction: column;
  }

  .schema-relation {
    transform: rotate(90deg);
  }

  .ai-inference-container {
    padding: 40px 20px;
  }

  .left-column,
  .right-column {
    padding: 30px 24px;
  }

  .column-title {
    font-size: 28px;
  }

  .pipeline-metrics {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .metric-divider {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .code-body {
    max-height: 400px;
  }
}

/* Mobile Card and About Section Fixes */
@media (max-width: 768px) {
  /* When modal is open, hide EVERYTHING except the modal */
  body:has(.card-container.mobile-expanded) {
    background: #000000 !important;
  }

  body:has(.card-container.mobile-expanded) > *:not(.card-container.mobile-expanded) {
    display: none !important;
    visibility: hidden !important;
  }

  /* Disable ALL hover effects on mobile - prevent content from disappearing */
  .card-container[↖️]:hover .default-content,
  .card-container[🎨]:hover .default-content,
  .card-container[🏗️]:hover .default-content {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
  }

  .card-container[↖️]:hover .expanded-content,
  .card-container[🎨]:hover .expanded-content,
  .card-container[🏗️]:hover .expanded-content {
    opacity: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
    display: none !important;
  }

  /* Disable automatic card hover effects on mobile */
  .card-container[↖️]:hover,
  .card-container[🎨]:hover,
  .card-container[🏗️]:hover {
    transform: scale(1) translateX(0) translateY(0) !important;
    z-index: auto !important;
  }

  /* Prevent other cards from moving on mobile */
  body:has(.card-container[↖️]:hover) .card-container[🎨],
  body:has(.card-container[↖️]:hover) .card-container[🏗️],
  body:has(.card-container[🎨]:hover) .card-container[↖️],
  body:has(.card-container[🎨]:hover) .card-container[🏗️],
  body:has(.card-container[🏗️]:hover) .card-container[↖️],
  body:has(.card-container[🏗️]:hover) .card-container[🎨] {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  /* Make cards stack vertically on mobile */
  .main-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .card-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto !important;
  }

  .card-container[🏗️] {
    margin-left: auto !important;
  }

  /* Default: Show default content, hide expanded content on mobile */
  .card-container:not(.mobile-expanded) .expanded-content {
    display: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    height: 0 !important;
  }

  .card-container:not(.mobile-expanded) .default-content {
    display: flex !important;
  }

  /* When card has 'mobile-expanded' class (clicked), show expanded view */
  .card-container.mobile-expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000 !important;
    width: 90vw !important;
    max-width: 450px !important;
    height: 85vh !important;
    max-height: 750px !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 1) !important;
    border: 2px solid rgba(221, 132, 72, 0.5) !important;
    border-radius: 20px !important;
  }

  .card-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .card-container.mobile-expanded .default-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  .card-container.mobile-expanded .content-container {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    height: 100% !important;
  }

  .card-container.mobile-expanded .expanded-content {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 500px !important;
    flex: 1 !important;
    -webkit-overflow-scrolling: touch;
    padding: 60px 20px 20px 20px !important;
    pointer-events: auto !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
    background: #000000 !important;
  }

  /* Make sure the mobile content is visible */
  .card-container.mobile-expanded .mobile-hero,
  .card-container.mobile-expanded .mobile-projects,
  .card-container.mobile-expanded .mobile-project-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Remove the CSS close button - handled by JS instead */
  /* .card-container.mobile-expanded::before removed to prevent duplicate */

  /* Make mobile project cards more tappable */
  .mobile-project-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(221, 132, 72, 0.2);
    touch-action: manipulation;
    user-select: none;
  }

  .mobile-project-card:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
  }

  /* Overlay backdrop when card is expanded - fully opaque */
  body:has(.card-container.mobile-expanded)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 999;
    pointer-events: none;
  }

  /* Hide ALL page content when modal is open */
  body:has(.card-container.mobile-expanded) .hero-title,
  body:has(.card-container.mobile-expanded) .top-nav,
  body:has(.card-container.mobile-expanded) #bg-video,
  body:has(.card-container.mobile-expanded) .noise-overlay,
  body:has(.card-container.mobile-expanded) .main-container,
  body:has(.card-container.mobile-expanded) .about-section,
  body:has(.card-container.mobile-expanded) .services-section,
  body:has(.card-container.mobile-expanded) footer,
  body:has(.card-container.mobile-expanded) .svg-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Hide other cards when one is expanded */
  body:has(.card-container.mobile-expanded) .card-container:not(.mobile-expanded) {
    display: none !important;
  }

  /* Make "View Projects" button more prominent on mobile */
  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
  }

  /* About section mobile layout */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-video-container {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .about-video-container:hover {
    transform: none;
  }

  .about-content-wrapper {
    gap: 2rem;
  }

  .about-story,
  .about-skills {
    padding: 1.5rem;
  }

  .story-text {
    font-size: 1rem;
  }

  .story-highlight {
    font-size: 1.25rem;
  }
}
