:root {
  /* Colors - Premium Dark UX/UI Portfolio */
  --bg-page: #000000;
  --bg-surface: #050505;
  --bg-card: #0A0A0C;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --secondary: #1e293b;
  --accent: #f97316;
  --tech-cyan: #00f5ff;
  --tech-purple: #9d00ff;
  --tech-orange: #ff6b00;
  --bg-dark: #020205;
  --text-main: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --primary-border: rgba(59, 130, 246, 0.3);
  
  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== BASE LAYOUT ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes blurIn {
  0% { opacity: 0; filter: blur(20px); transform: scale(0.98); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes beam-spin {
  to { transform: rotate(360deg); }
}

@keyframes lines-slide {
  0% { background-position: 0 0; }
  100% { background-position: 24px 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes liquidMove-1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(-10%, 20%) scale(1.1) rotate(10deg); }
}

@keyframes liquidMove-2 {
  0% { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(15%, -15%) scale(1); }
}

@keyframes liquidMove-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-15%, -10%) rotate(20deg); }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1.5rem)); }
}

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-blur-in {
  animation: blurIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ===== GLASS NAV ===== */
.glass-nav {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(95%, 1200px);
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 0.6rem 0.8rem 0.6rem 2.5rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  text-decoration: none;
  color: white;
  letter-spacing: -0.05em;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}





/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  max-width: 800px;
}

.headline span {
  color: var(--primary);
  font-weight: 300;
  position: relative;
}

.headline span::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  opacity: 0.3;
}

.subheadline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 520px;
  font-weight: 300;
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.cta-group {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-top: -1rem;
  margin-bottom: 5rem;
}

/* Hero Image */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 0.85;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--primary-border);
  background: #0a0a0c;
  box-shadow: 0 0 30px -10px var(--primary-glow), 0 50px 100px -20px rgba(0,0,0,0.7);
  transition: border-color 0.4s;
}

.hero-image-wrapper:hover {
  border-color: var(--primary);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: contrast(1.05);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -30%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
}

/* Tool Icons */
.tool-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  padding: 12px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-icon:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.1) !important;
}

.tool-icon svg, .tool-icon .iconify {
  width: 100%;
  height: 100%;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.tool-icon:hover svg, .tool-icon:hover .iconify {
  color: var(--primary);
}

/* ===== BEAM BUTTON ===== */
















/* ===== BACKGROUND AURA SYSTEM ===== */
.bg-aura-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.bg-aura-wrapper .aura {
  position: absolute;
  width: 75vw;
  height: 75vw;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.45;
  mix-blend-mode: plus-lighter;
}

.aura-1 {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -15%;
  right: -10%;
  animation: liquidMove-1 30s infinite alternate ease-in-out;
}

.aura-2 {
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: liquidMove-2 35s infinite alternate ease-in-out;
}

.aura-3 {
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 35%;
  left: 25%;
  width: 45vw;
  height: 45vw;
  animation: liquidMove-3 25s infinite alternate-reverse ease-in-out;
  opacity: 0.25;
}

.bg-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.02;
  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");
}

/* ===== SECTION: EXPERIENCE TIMELINE ===== */
.experience-section {
  position: relative;
  padding: 15rem 0 10rem 0; /* Reduced bottom padding */
  background: #000;
  color: white;
  overflow: hidden;
  width: 100%;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
}

.section-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 10%;
  width: 80%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  filter: blur(120px);
}

.section-bg .dots-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
}

.timeline-outer {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 10;
}

.timeline-v-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.timeline-v-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  box-shadow: 0 0 20px var(--primary-glow);
  border-radius: 2px;
  transition: height 0.1s linear;
}

.timeline-item-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item-wrapper.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item-content {
  width: 50%;
  position: relative;
  display: flex;
}

.timeline-item-wrapper:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item-wrapper:nth-child(odd) .timeline-item-content {
  justify-content: flex-end;
  padding-right: 5rem;
}

.timeline-item-wrapper:nth-child(even) {
  justify-content: flex-end;
}

.timeline-item-wrapper:nth-child(even) .timeline-item-content {
  justify-content: flex-start;
  padding-left: 5rem;
}

.timeline-v-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #000;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-card-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 450px;
  transition: all 0.4s ease;
}

.timeline-card-glass:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.company-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.company-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.company-logo svg, .company-logo span, .company-logo .iconify {
  width: 100%;
  height: 100%;
  filter: none;
  opacity: 1;
  transition: all 0.4s ease;
}

.timeline-card-glass:hover .company-logo {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--primary-glow);
}

.company-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.job-title {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.job-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.timeline-v-year {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 200;
  color: var(--text-secondary);
  white-space: nowrap;
}

.timeline-item-wrapper:nth-child(odd) .timeline-v-year {
  left: calc(100% + 4rem);
}

.timeline-item-wrapper:nth-child(even) .timeline-v-year {
  right: calc(100% + 4rem);
}

/* ===== SECTION: PROJECTS ===== */
.projects-section {
  position: relative;
  padding: 4rem 2rem 15rem; /* Reduced top padding */
  background: #000;
  overflow: hidden;
  width: 100%;
  perspective: 2000px;
}

.proj-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(157, 0, 255, 0.05) 0%, transparent 70%),
              radial-gradient(circle at 0% 100%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
}

.proj-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 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.03;
  mix-blend-mode: overlay;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
  margin-top: 6rem;
}

/* Project Card */
.project-card {
  position: relative;
  grid-column: span 6;
  aspect-ratio: 16 / 10;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease-out, box-shadow 0.5s ease, border-color 0.5s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(40px);
}

.project-card.active {
  opacity: 1;
  transform: translateY(0);
}

.project-card.featured {
  grid-column: span 12;
  aspect-ratio: 21 / 9;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(var(--accent-rgb), 0.15),
      transparent 40%
  );
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
      0 40px 80px rgba(0, 0, 0, 0.5),
      inset 0 0 20px rgba(255, 255, 255, 0.05);
}

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

.project-inner-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
}

.project-img-wrapper {
  position: absolute;
  top: 50%;
  right: -5%;
  width: 60%;
  height: 120%;
  transform: translateY(-50%) skew(-5deg) rotate(5deg);
  z-index: 1;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: -20px 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrapper {
  transform: translateY(-55%) skew(0deg) rotate(0deg) scale(1.05);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.1);
}

.project-info {
  position: relative;
  z-index: 5;
  padding: 3rem 3rem 6rem 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 50%;
  transform: translateZ(50px);
}

.project-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.project-meta .company {
  color: var(--tech-cyan);
  font-weight: 700;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.project-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  font-weight: 400;
  max-width: 400px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.project-card .view-project-hint {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: all 0.4s ease;
}

.project-card:hover .view-project-hint {
  color: var(--primary);
}

/* ===== PROJECT MODAL ===== */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4rem 2rem;
}

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

.project-modal {
  width: 100%;
  max-width: 1000px;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2.5rem;
  padding: 4rem;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-overlay.open .project-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.modal-badge {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.modal-role {
  color: var(--tech-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

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

.modal-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-section-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
}

.modal-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--tech-cyan);
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Gallery */
.modal-gallery {
  margin-top: 2rem;
}

.gallery-main {
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
  position: relative;
  background: #0a0a0c;
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 5;
}

.gallery-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-nav.prev {
  left: 1rem;
}

.gallery-nav.next {
  right: 1rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
  border-radius: 2px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.gallery-thumb {
  width: 80px;
  height: 55px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
  opacity: 0.5;
}

.gallery-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  z-index: 5;
}

/* ===== SECTION: CTA (CONTACT) ===== */
.cta-section {
  position: relative;
  padding: 15rem 0;
  background: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-section.active {
  opacity: 1;
  transform: translateY(0);
}

.cta-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 90% 80%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
  filter: blur(120px);
  z-index: -1;
}

.cta-container {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.cta-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4rem;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 
      inset 0 0 50px rgba(255, 255, 255, 0.02),
      0 40px 100px rgba(0, 0, 0, 0.5);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(0, 245, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-card .headline {
  margin-bottom: 2rem !important;
  max-width: 800px;
}

.cta-subtitle {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto 4rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.6;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cta-action-text {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  display: block;
}





.contact-links {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.contact-link:hover {
  color: var(--primary);
}

/* ===== MODAL SITE LINK ===== */
.modal-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s;
}

.modal-site-link:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-social a {
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

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

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

  .hero-image-container {
    justify-content: center;
    order: -1;
    margin-bottom: 2rem;
  }

  .cta-group {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }



  .nav-links {
    display: none;
  }

  /* Removed tool-icon display: none */

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

  .project-card, .project-card.featured {
    grid-column: span 1;
    aspect-ratio: auto;
    min-height: 500px;
  }

  .project-desc {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .project-info {
    max-width: 100%;
    padding: 3rem;
  }

  .project-img-wrapper {
    opacity: 0.3;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    transform: none;
  }
  
  .project-card:hover .project-img-wrapper {
    transform: none;
  }
  
  .project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
  }

  .project-title {
    font-size: 2.5rem;
  }

  .timeline-item-wrapper:nth-child(odd),
  .timeline-item-wrapper:nth-child(even) {
    justify-content: flex-end;
  }

  .timeline-item-wrapper:nth-child(odd) .timeline-item-content,
  .timeline-item-wrapper:nth-child(even) .timeline-item-content {
    width: 100%;
    flex-direction: column;
    padding-left: 5rem;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-v-line,
  .timeline-v-progress {
    left: 0;
    transform: none;
  }

  .timeline-v-dot {
    left: 0;
    transform: translate(-50%, -50%);
  }

  .timeline-v-year {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-bottom: 0.5rem;
  }

  .experience-section {
    padding: 8rem 0;
  }

  .cta-card {
    padding: 5rem 2rem;
    border-radius: 2rem;
  }

  .project-modal {
    padding: 2.5rem;
    border-radius: 1.5rem;
  }

  .modal-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .glass-nav {
    padding: 0.5rem 1rem 0.5rem 1.5rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .headline {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .projects-section {
    padding: 4rem 1rem 6rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card, .project-card.featured {
    grid-column: span 1;
    min-height: 380px;
    border-radius: 1.5rem;
  }

  .project-info {
    padding: 1.5rem 1.5rem 4rem 1.5rem;
    transform: none;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .project-desc {
    font-size: 0.9rem;
  }

  .project-modal-overlay {
    padding: 1rem;
  }

  .project-modal {
    padding: 3.5rem 1.5rem 1.5rem;
    margin-top: 0;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }

  .modal-metrics {
    grid-template-columns: 1fr;
  }

  .timeline-item-wrapper:nth-child(odd) .timeline-item-content,
  .timeline-item-wrapper:nth-child(even) .timeline-item-content {
    padding-left: 3.5rem;
  }

  .timeline-card-glass {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 6rem 0;
  }

  .cta-card {
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
  }



  .contact-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}

/* ============================================================
   AI PROMPTS MODAL — MORPHEYE DESIGN SYSTEM
   Cyber-tech terminal aesthetic · Ciano/Verde Neon accent
   ============================================================ */

/* Override overlay for AI modal */
#modal-ai-prompts {
  padding: 0;
  background: rgba(0, 0, 0, 0.98);
}

#modal-ai-prompts .project-modal {
  display: none;
}

.ai-modal {
  width: 100%;
  height: 400vh;
  max-width: 100%;
  background: #000000;
  position: relative;
  overflow: visible;
  border-radius: 0;
  border: none;
  padding: 0;
  transform: none;
}

#modal-ai-prompts.open .ai-modal {
  transform: none;
}

/* Subtle grid background */
.ai-modal-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,229,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* Close button override */
.ai-modal-close-btn.modal-close {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  border-radius: 0 !important;
  border: 1px solid rgba(0,229,255,0.25) !important;
  background: rgba(0,0,0,0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200 !important;
  width: 44px !important;
  height: 44px !important;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-modal-close-btn.modal-close:hover {
  background: rgba(0,229,255,0.12) !important;
  border-color: #00E5FF !important;
  color: #00E5FF !important;
  transform: none !important;
  box-shadow: 2px 2px 0px rgba(0,229,255,0.2);
}

/* Main Layout Grid */
.ai-modal-layout {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px 80px;
  align-items: center;
}

/* ---- LEFT COLUMN ---- */
.ai-modal-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-modal-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00E5FF;
  margin-bottom: 4px;
}

.ai-modal-bignum-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ai-modal-bignum {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,229,255,0.25);
  user-select: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Animated fill gradient on the number */
.ai-modal-bignum::after {
  content: attr(data-num);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.15) 0%, rgba(0,229,255,0.05) 50%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
}

.ai-modal-step-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00E5FF;
  margin-top: 12px;
}

.ai-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 200;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 6px 0 4px;
}

.ai-modal-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.72;
  max-width: 420px;
}

/* Navigation Dots */
.ai-modal-nav-dots {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.ai-modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,229,255,0.12);
  border: 1px solid rgba(0,229,255,0.25);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
}

.ai-modal-dot.active {
  background: #00E5FF;
  border-color: #80F2FF;
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(0,229,255,0.6);
}

.ai-modal-dot:hover:not(.active) {
  background: rgba(0,229,255,0.3);
  border-color: rgba(0,229,255,0.5);
}

/* ---- RIGHT COLUMN ---- */
.ai-modal-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* IMAGE COMPARISON SLIDER */
.ai-modal-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,0.25);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  aspect-ratio: 16 / 10;
  background: #050505;
}

.ai-modal-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.ai-modal-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.ai-modal-slider-before {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ai-modal-slider-after {
  z-index: 1;
}

.ai-modal-slider-label-left,
.ai-modal-slider-label-right {
  position: absolute;
  bottom: 12px;
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00E5FF;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(0,229,255,0.25);
  padding: 3px 8px;
  pointer-events: none;
}

.ai-modal-slider-label-left {
  left: 12px;
}

.ai-modal-slider-label-right {
  right: 12px;
}

/* Slider Handle */
.ai-modal-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  touch-action: none;
  user-select: none;
}

.ai-modal-slider-handle-line {
  flex: 1;
  width: 2px;
  background: #00E5FF;
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
}

.ai-modal-slider-handle-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.85);
  border: 2px solid #00E5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0,229,255,0.4), inset 0 0 8px rgba(0,229,255,0.1);
  flex-shrink: 0;
}

/* TERMINAL BLOCK */
.ai-modal-terminal {
  background: #050505;
  border: 1px solid rgba(0,229,255,0.25);
  overflow: hidden;
  position: relative;
}

.ai-modal-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
}

.ai-modal-terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,229,255,0.12);
  background: #080808;
  position: relative;
  z-index: 1;
}

.ai-modal-terminal-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 8px #00E5FF;
  animation: ai-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ai-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.ai-modal-terminal-header-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-modal-terminal-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  margin-left: auto;
}

.ai-modal-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00E5FF;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 0;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-modal-copy-btn:hover {
  background: rgba(0,229,255,0.15);
  border-color: #00E5FF;
  box-shadow: 2px 2px 0px rgba(0,229,255,0.2);
  transform: translate(-1px, -1px);
}

.ai-modal-copy-btn.copied {
  color: #00FF87;
  border-color: rgba(0,255,135,0.4);
  background: rgba(0,255,135,0.08);
}

.ai-modal-terminal-body {
  padding: 16px 18px;
  max-height: 220px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.ai-modal-terminal-body::-webkit-scrollbar {
  width: 4px;
}

.ai-modal-terminal-body::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}

.ai-modal-terminal-body::-webkit-scrollbar-thumb {
  background: rgba(0,229,255,0.2);
  border-radius: 0;
}

.ai-modal-terminal-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
}

.ai-modal-term-prompt {
  color: #00E5FF;
  margin-right: 8px;
  font-weight: 400;
}

.ai-modal-term-text {
  color: #4ADE80;
  word-break: break-word;
  font-weight: 300;
}

/* Corner Decorators (Morpheye detail) */
.ai-modal-slider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(0,229,255,0.5);
  border-left: 1px solid rgba(0,229,255,0.5);
  z-index: 10;
  pointer-events: none;
}

.ai-modal-terminal::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-bottom: 1px solid rgba(0,229,255,0.5);
  border-right: 1px solid rgba(0,229,255,0.5);
  z-index: 10;
  pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .ai-modal-layout {
    grid-template-columns: 1fr;
    padding: 90px 28px 50px;
    gap: 36px;
    align-items: start;
  }

  .ai-modal-bignum {
    font-size: 6rem;
  }

  .ai-modal-slider {
    aspect-ratio: 16 / 9;
  }

  .ai-modal-left {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .ai-modal-layout {
    padding: 76px 16px 36px;
    gap: 24px;
  }

  .ai-modal-bignum {
    font-size: 4.5rem;
  }

  .ai-modal-title {
    font-size: 1.4rem;
  }

  .ai-modal-terminal-body {
    max-height: 160px;
    padding: 12px;
  }

  .ai-modal-terminal-line {
    font-size: 0.7rem;
  }

  .ai-modal-slider-handle-circle {
    width: 30px;
    height: 30px;
  }

  .ai-modal-slider-handle-circle svg {
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   PERFORMANCE & UI/UX CASES (NEW SECTION)
   ========================================================================== */

.perf-cases-section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

.perf-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.perf-card {
  position: relative;
  background: #0A0D12;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5);
}

.perf-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 20px 40px -20px rgba(0,229,255,0.15);
}

/* Subtle dot grid pattern on cards */
.perf-card-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.perf-card:hover .perf-card-bg-grid {
  opacity: 0.8;
}

/* Gradient glow on hover */
.perf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.perf-card:hover::after {
  opacity: 1;
}

.perf-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.perf-card-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.perf-category {
  color: #00E5FF;
  font-weight: 600;
}

.perf-year {
  color: rgba(255, 255, 255, 0.4);
}

.perf-card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 3.5rem;
  line-height: 0.85;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  max-width: 90%;
}

.perf-card-desc {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 2rem;
  font-weight: 300;
}

.perf-card-action {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.perf-card:hover .perf-card-action {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .perf-grid {
    grid-template-columns: 1fr;
  }
  .perf-card-title {
    font-size: 2.5rem;
  }
  .perf-card {
    padding: 2.5rem 2rem;
    min-height: 360px;
  }
}

/* ==========================================================================
   PERFORMANCE & UI/UX MODAL
   ========================================================================== */
.perf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  overflow-y: auto;
}

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

.perf-modal-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background: #0A0D12;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0,229,255,0.05);
  overflow: hidden;
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.perf-modal-overlay.open .perf-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

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

.perf-modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.perf-modal-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 600px;
}

.perf-modal-left {
  background: #05070A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.perf-modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.perf-modal-overlay.open .perf-modal-left img {
  animation: modalImageZoom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalImageZoom {
  0% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.perf-modal-right {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perf-modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.perf-modal-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.perf-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.perf-tag {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #00E5FF;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.perf-modal-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 2px solid #00FF87;
  padding-left: 1rem;
}

.metric-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.perf-modal-summary h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.perf-modal-summary p {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .perf-modal-content {
    grid-template-columns: 1fr;
  }
  .perf-modal-left {
    height: 300px;
  }
  .perf-modal-right {
    padding: 2rem;
  }
  .perf-modal-title {
    font-size: 2.5rem;
  }
  .perf-modal-metrics {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* Performance Modal Nav Buttons */
.perf-modal-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10;
  pointer-events: none;
}

.perf-nav-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.perf-nav-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00E5FF;
  color: #00E5FF;
  transform: scale(1.1);
}

@media (max-width: 991px) {
  .perf-modal-nav {
    top: 150px;
  }
}

/* ─────────────────────────────────────────────────
   UX Research Modal — Triangulação de Métodos
───────────────────────────────────────────────── */

/* 3-column diagnosis grid */
.ux-triag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Individual column card */
.ux-triag-col {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ux-triag-col:hover {
  border-color: color-mix(in srgb, var(--col-accent, #00F2FE) 35%, transparent);
  background: rgba(255, 255, 255, 0.04);
}

/* Header row inside each column */
.ux-triag-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

/* Numbered badge */
.ux-triag-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Tool name (e.g. "Observação Quant-UX") */
.ux-triag-tool {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

/* Pillar label (e.g. O "Onde") */
.ux-triag-pillar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}

/* Body text inside each column */
.ux-triag-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 0;
}

.ux-triag-text strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.ux-triag-text em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Tool rows (Stack section) ── */
.ux-tool-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ux-tool-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-tool-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.15rem;
}

.ux-tool-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* ── Responsive: collapse 3-col to 1 on mobile ── */
@media (max-width: 700px) {
  .ux-triag-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────
   UX Slide Content Animation
───────────────────────────────────────────────── */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ux-slide-content {
  animation: fadeInSlide 0.4s ease forwards;
}

/* ─────────────────────────────────────────────────
   UX Research — Framework & Toolkit Modal
───────────────────────────────────────────────── */

/* Section wrapper */
.fwk-section {
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  overflow: hidden;
}

/* Section header row (numbered) */
.fwk-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Numbered badge */
.fwk-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Section title */
.fwk-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.01em;
}

/* Section body */
.fwk-section-body {
  padding: 1.25rem;
}

/* Pills (grid of 4 objectives) */
.fwk-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  line-height: 1.3;
}

/* Pilar cards (2x2 grid) */
.fwk-pilar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid;
  border-radius: 0.75rem;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fwk-pilar-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}

.fwk-pilar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.fwk-pilar-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* Method rows */
.fwk-method-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
}

.fwk-method-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fwk-method-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fwk-method-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.fwk-method-desc strong {
  color: rgba(255, 255, 255, 0.75);
}

.fwk-method-desc em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

/* Small badge inside method name */
.fwk-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .fwk-pilar-card {
    grid-template-columns: 1fr !important;
  }
}

/* ===== MOBILE MENU OVERLAY & TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay {
    position: fixed;
    top: 5rem;
    left: 2.5%;
    width: 95%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}





@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-logo {
        white-space: nowrap;
        font-size: 1rem;
    }
}


/* ===== PROJECT FILTERS ===== */
.filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0 3.5rem 0;
}

.filter-pill {
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-pill.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
}

.pill-badge {
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  margin-left: 0.5rem;
  transition: all 0.25s ease;
}

.filter-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.2);
}

/* For transition on project cards */
.project-card {
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.project-card.hide {
  display: none !important;
}

/* Arte & Prompts vignette */
.vignette-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.7) 100%), linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 20%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.project-card:hover .vignette-overlay::after {
  opacity: 0.3;
}

.vignette-img {
  filter: brightness(0.6) contrast(1.1);
  transition: filter 0.4s ease;
}

.project-card:hover .vignette-img {
  filter: brightness(0.9) contrast(1.2);
}
