*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-green: #30d158;
  --accent-purple: #bf5af2;
  --accent-orange: #ff9f0a;
  --accent-pink: #ff375f;
  --accent-teal: #64d2ff;
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max-width: 1200px;
  --gap: 16px;
}
html.light {
  color-scheme: light;
  --bg: #ffffff;
  --bg-card: #f5f5f7;
  --bg-card-hover: #ededf0;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #1d1d1f;
  --text-secondary: #494949;
  --text-tertiary: #636366;
  --accent: #0066cc;
  --accent-green: #248a3d;
  --accent-purple: #8944ab;
  --accent-orange: #b25000;
  --accent-pink: #d30038;
  --accent-teal: #0071a4;
}
html.light body::before {
  opacity: 0.015;
}
html.light nav {
  background: rgba(255, 255, 255, 0.72);
}
html.light .hero-glow {
  opacity: 0.06;
}
html.light .bento-card::before,
html.light .timeline-item::before,
html.light .project-card::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
}
html.light .tech-pill {
  background: rgba(0, 0, 0, 0.04);
}
html.light .tech-pill:hover {
  background: rgba(0, 0, 0, 0.07);
}
html.light .timeline-tag {
  background: rgba(0, 0, 0, 0.04);
}
html.light .client-logo {
  background: rgba(0, 0, 0, 0.03);
}
html.light .client-logo img {
  filter: grayscale(100%) brightness(0.8);
}
html.light .client-marquee-logo {
  background: rgba(0, 0, 0, 0.03);
}
html.light .client-marquee-item:hover .client-marquee-logo {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
html.light .client-marquee-logo img {
  filter: grayscale(100%) brightness(0.8);
}
html.light .cv-banner {
  background: linear-gradient(135deg, #e8edf5 0%, #dce4f0 50%, #cfd9eb 100%);
  border-color: rgba(0, 102, 204, 0.2);
}
html.light .cv-banner::before {
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
}
html.light .cv-banner::after {
  background: radial-gradient(circle, rgba(137, 68, 171, 0.06) 0%, transparent 70%);
}
html.light .cv-btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
html.light .cv-btn:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
html.light .contact-btn.primary:hover {
  background: #0055aa;
  border-color: #0055aa;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
nav .logo span {
  color: var(--accent);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}
nav ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
nav ul a:hover {
  color: var(--text-primary);
}
nav ul a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
nav ul a:hover::after {
  width: 100%;
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.theme-toggle:hover {
  color: var(--text-primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun {
  display: none;
}
html.light .theme-toggle .icon-moon {
  display: none;
}
html.light .theme-toggle .icon-sun {
  display: block;
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 48px;
}
.section-title span {
  color: var(--text-tertiary);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}
.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}
.hero-glow-1 {
  top: 10%;
  left: 10%;
  background: var(--accent);
}
.hero-glow-2 {
  bottom: 20%;
  right: 10%;
  background: var(--accent-purple);
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-name {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}
.hero-stat {
  text-align: center;
}
.hero-stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-number .plus {
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation:
    fadeInUp 0.8s ease forwards,
    float 3s ease-in-out infinite;
  animation-delay: 1.2s, 2s;
}
.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-tertiary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-indicator .wheel {
  width: 3px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

#about {
  padding-top: 120px;
  padding-bottom: 120px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.bento-card.span-2 {
  grid-column: span 2;
}
.bento-card.span-3 {
  grid-column: span 3;
}
.intro-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}
.intro-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 16px;
}
.intro-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.tech-grid-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tech-category-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}
.tech-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.tech-pill .tech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

#experience {
  padding-bottom: 120px;
}
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
}
.timeline-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  padding-top: 4px;
  font-weight: 500;
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.timeline-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.client-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
  transition: all 0.4s ease;
}
.timeline-item:hover .client-logo img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}
.timeline-header-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.timeline-header-text .company {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ====== CLIENTS MARQUEE ====== */
#clients {
  padding-bottom: 120px;
}
.clients-marquee-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marqueeScroll 18s linear infinite;
  padding: 0 36px;
}
.clients-marquee-wrapper:hover .clients-marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}
.client-marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 140px;
  opacity: 0.5;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  cursor: pointer;
}
.client-marquee-item:hover {
  opacity: 1;
}
.client-marquee-logo {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
}
.client-marquee-item:hover .client-marquee-logo {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.client-marquee-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}
.client-marquee-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.8);
  transition: filter 0.4s ease;
}
.client-marquee-item:hover .client-marquee-logo img {
  filter: grayscale(0%) brightness(1);
}
.client-marquee-name {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.client-marquee-item:hover .client-marquee-name {
  color: var(--text-secondary);
}

/* CV */
#cv-download {
  padding-bottom: 120px;
}
.cv-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 50%,
    #0f3460 100%
  );
  border: 1px solid rgba(41, 151, 255, 0.15);
}
.cv-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(41, 151, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cv-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(191, 90, 242, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cv-text {
  position: relative;
  z-index: 1;
}
.cv-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cv-text p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.cv-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
  text-decoration: none;
  flex-shrink: 0;
}
.cv-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}
.cv-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}
.cv-btn:hover svg {
  transform: translateY(2px);
}

#projects {
  padding-bottom: 120px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
}
.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.project-image img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.project-icon  {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.project-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.project-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}
.project-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  transition: gap 0.3s;
}
.project-link:hover {
  gap: 10px;
}
.project-link svg {
  width: 14px;
  height: 14px;
}

/* AI */
#ai-philosophy {
  padding-bottom: 120px;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.ai-manifesto {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  min-height: 220px;
}
.ai-manifesto-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(191, 90, 242, 0.15),
    rgba(100, 210, 255, 0.15)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(191, 90, 242, 0.2);
}
.ai-manifesto-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.ai-manifesto-text h3 em {
  font-style: normal;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-teal)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ai-manifesto-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.ai-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.ai-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.ai-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ai-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
}
.ai-keyword {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(191, 90, 242, 0.1);
  border: 1px solid rgba(191, 90, 242, 0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}
.ai-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

#contact {
  padding-bottom: 80px;
}
.contact-inner {
  text-align: center;
  padding: 80px 40px;
}
.contact-inner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.contact-inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
}
.contact-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.contact-btn svg {
  width: 18px;
  height: 18px;
}
.contact-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.contact-btn.primary:hover {
  background: #1a8aef;
  border-color: #1a8aef;
  box-shadow: 0 8px 24px rgba(41, 151, 255, 0.25);
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
footer p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 400;
}
footer span {
  margin: 0 8px;
  opacity: 0.3;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -8px);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 2;
  }
  .bento-card.span-3 {
    grid-column: span 2;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cv-banner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 48px 32px;
  }
  .hero-stats {
    gap: 40px;
  }
  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ai-manifesto {
    grid-column: span 2;
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 640px) {
  :root {
    --gap: 12px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2,
  .bento-card.span-3 {
    grid-column: span 1;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  nav ul.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  .hero-name {
    font-size: 3.2rem;
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .ai-manifesto {
    grid-column: span 1;
    padding: 32px;
    gap: 24px;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .client-marquee-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }
  .clients-marquee-track {
    gap: 48px;
  }
  .client-marquee-name {
    font-size: 0.75rem;
  }
  html.light nav ul {
    background: rgba(255, 255, 255, 0.95);
  }
}
