@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: oklch(0.93 0.025 65);
  --surface: oklch(0.98 0.01 60);
  --accent: oklch(0.62 0.22 35);
  --accent-hover: oklch(0.55 0.22 35);
  --accent-light: oklch(0.82 0.08 55);
  --dark: oklch(0.09 0.015 25);
  --text: oklch(0.14 0.025 30);
  --text-secondary: oklch(0.40 0.03 40);
  --text-muted: oklch(0.55 0.025 45);
  --border: oklch(0.82 0.02 55);
  --card: oklch(0.97 0.015 58);
  --card-border: oklch(0.85 0.02 55);
  --nav-blur: oklch(0.09 0.015 25 / 0.85);
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
  --shadow-md: 0 4px 24px oklch(0 0 0 / 0.06);
  --shadow-lg: 0 8px 40px oklch(0 0 0 / 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --section-pad: 120px;
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: var(--accent);
  color: oklch(1 0 0);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.7;
}

/* ============= SOCIAL SIDEBAR ============ */
.social-sidebar {
  position: fixed;
  left: 40px;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-sidebar a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease);
  line-height: 1;
}

.social-sidebar a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-sidebar-line {
  width: 1px;
  height: 80px;
  background: var(--text-muted);
}

@media (max-width: 900px) {
  .social-sidebar {
    display: none;
  }
}

/* ============= NAV ============= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.35s var(--ease), padding 0.3s, transform 0.35s var(--ease);
}

nav.scrolled {
  background: var(--nav-blur);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 24px;
  border-bottom: 1px solid oklch(1 1 0 / 0.06);
}

nav.nav-hidden {
  transform: translateY(-100%);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: oklch(0.95 0.02 55);
  text-transform: uppercase;
}

.logo em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: oklch(0.7 0.02 55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: oklch(0.95 0.02 55);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.glow-item.active a {
  color: oklch(1 0 0);
}

.glow-item.active a::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: oklch(0.9 0.02 55);
  border-radius: 0;
  transition: 0.3s;
}

.menu-btn.open span:first-child {
  transform: rotate(45deg) translate(4px, 5px);
}

.menu-btn.open span:last-child {
  transform: rotate(-45deg) translate(4px, -5px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--dark);
  border-left: 1px solid oklch(1 1 0 / 0.08);
  padding: 80px 32px;
  z-index: 99;
  transition: right 0.4s var(--ease);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: oklch(0.7 0.02 55);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--accent);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-main {
  position: absolute;
  inset: 0;
  background: var(--dark);
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 35% 100%);
}

.hero-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: var(--accent);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s var(--ease);
  position: relative;
}

.btn-primary {
  background: var(--accent);
  color: oklch(1 0 0);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: #22c55e;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 500px;
}

.hero-visual-inner {
  position: relative;
  width: 340px;
  height: 420px;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border: 3px solid oklch(1 0 0 / 0.15);
}

.hero-photo img,
.hero-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-photo-frame:hover .hero-photo img,
.hero-photo-frame:hover .hero-photo video {
  transform: scale(1.05);
}

.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border: 1.5px solid oklch(1 0 0 / 0.2);
  z-index: 0;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}

.hero-photo-frame:hover .hero-photo-ring {
  border-color: var(--accent);
  transform: rotate(3deg) scale(1.02);
}

.hero-accent-bar {
  position: absolute;
  bottom: 24px;
  right: -24px;
  width: 120px;
  height: 4px;
  background: var(--accent);
  z-index: 3;
}

.hero-badge {
  position: absolute;
  font-family: var(--font-heading);
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero-badge i {
  font-size: 0.85rem;
}

.badge-1 {
  top: 20px;
  right: -12px;
  background: var(--accent);
  color: oklch(1 0 0);
}

.badge-2 {
  bottom: 60px;
  left: -12px;
  background: oklch(1 0 0 / 0.9);
  color: var(--dark);
  border: 1px solid oklch(1 1 0 / 0.1);
}

/* ============= SECTIONS ============= */
section {
  padding: var(--section-pad) 24px;
  position: relative;
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 56px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
}

/* ============= ABOUT ============= */
.about {
  background: var(--surface);
}

.about-bento {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
}

.about-bento-card {
  background: oklch(1 0 0);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.about-bento-card:hover {
  box-shadow: 0 8px 30px oklch(0 0 0 / 0.06);
  transform: translateY(-2px);
}

/* Photo card */
.about-bento-photo {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: 0;
  overflow: hidden;
  min-height: 400px;
}

.about-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-photo-inner img,
.about-photo-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about-bento-photo:hover img,
.about-bento-photo:hover video {
  transform: scale(1.05);
}

.about-video-sound {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0;
  background: oklch(0 0 0 / 0.5);
  color: oklch(1 0 0);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.about-video-sound:hover {
  background: var(--accent);
}

.about-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, oklch(0 0 0 / 0.6));
  color: oklch(1 0 0);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.about-photo-accent {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  z-index: -1;
}

/* Bio card */
.about-bento-bio {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

.about-greeting {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 8px;
}

.about-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.about-bento-bio p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 85%;
}

.about-bento-bio p:last-child {
  margin-bottom: 0;
}

/* Stats card */
.about-bento-stats {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.about-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  background: oklch(1 0 0);
  border-right: 1px solid var(--border);
}

.about-stat-item:last-child {
  border-right: none;
}

.about-stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Skills card */
.about-bento-skills {
  grid-column: 3 / 4;
  grid-row: 2 / 4;
}

.about-bento-skills h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.about-skill {
  margin-bottom: 20px;
}

.about-skill:last-child {
  margin-bottom: 0;
}

.about-skill-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.about-skill-bar {
  height: 4px;
  background: oklch(0.92 0.02 55);
  border-radius: 0;
  overflow: hidden;
}

.about-skill-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  transition: width 1.2s var(--ease);
}

/* Quote card */
.about-bento-quote {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  background: var(--accent);
  border-color: var(--accent);
  display: flex;
  align-items: center;
  gap: 20px;
}

.about-bento-quote i {
  font-size: 2rem;
  color: oklch(1 0 0 / 0.25);
  flex-shrink: 0;
}

.about-bento-quote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: oklch(1 0 0);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .about-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .about-bento-photo {
    grid-column: 1 / 2;
    grid-row: auto;
  }
  .about-bento-bio {
    grid-column: 2 / 3;
    grid-row: auto;
  }
  .about-bento-bio p {
    max-width: 100%;
  }
  .about-bento-stats {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .about-bento-skills {
    grid-column: 1 / 2;
    grid-row: auto;
  }
  .about-bento-quote {
    grid-column: 2 / 3;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .about-bento {
    grid-template-columns: 1fr;
  }
  .about-bento-photo,
  .about-bento-bio,
  .about-bento-stats,
  .about-bento-skills,
  .about-bento-quote {
    grid-column: 1 / 2;
  }
  .about-bento-stats {
    flex-direction: column;
  }
  .about-stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .about-stat-item:last-child {
    border-bottom: none;
  }
}

/* ============= SERVICES ============= */
.services-bento {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.services-card {
  position: relative;
  padding: 40px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}

.services-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.08);
}

.services-card-accent {
  background: var(--dark);
  border: 1px solid var(--dark);
  color: oklch(1 0 0);
}

.services-card-accent .services-card-cta {
  color: var(--accent);
}

.services-card-accent p {
  color: oklch(0.75 0.03 55);
}

.services-card-accent .services-card-num {
  color: oklch(1 0 0 / 0.08);
}

.services-card-accent .services-card-icon {
  color: var(--accent);
}

.services-card-outline {
  background: oklch(1 0 0);
  border: 1px solid var(--border);
}

.services-card-outline .services-card-num {
  color: oklch(0.88 0.02 55);
}

.services-card-outline .services-card-icon {
  color: var(--accent);
}

.services-card-bg {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, oklch(0.7 0.15 45 / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.services-card-content {
  position: relative;
  z-index: 1;
}

.services-card-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: 12px;
}

.services-card-icon {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.services-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: inherit;
}

.services-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.services-card-cta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease);
  cursor: default;
}

.services-card:hover .services-card-cta {
  gap: 12px;
}

.services-card-cta i {
  font-size: 0.65rem;
  transition: transform 0.3s var(--ease);
}

.services-card:hover .services-card-cta i {
  transform: translateX(4px);
}

.services-card-outline .services-card-cta {
  color: var(--accent);
}

/* Wide CTA card */
.services-card-wide {
  grid-column: 1 / 3;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0;
}

.services-card-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 44px;
}

.services-wide-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: oklch(1 0 0);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.services-wide-text p {
  color: oklch(1 0 0 / 0.75);
  font-size: 0.9rem;
  margin: 0;
}

.services-wide-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(1 0 0);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid oklch(1 0 0 / 0.3);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.services-wide-btn:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0);
  gap: 12px;
}

.services-wide-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s var(--ease);
}

.services-wide-btn:hover i {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .services-bento {
    grid-template-columns: 1fr;
  }
  .services-card-wide {
    grid-column: 1 / 2;
  }
  .services-card-content-row {
    flex-direction: column;
    text-align: center;
    padding: 32px 28px;
  }
  .services-wide-text p {
    margin-bottom: 16px;
  }
}

/* ============= TOOLKIT ============= */
.toolkit-bento {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.toolkit-card {
  padding: 28px;
  border: 1px solid var(--border);
  background: oklch(1 0 0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.toolkit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px oklch(0 0 0 / 0.07);
}

.toolkit-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toolkit-card-label i {
  color: var(--accent);
  font-size: 0.9rem;
}

.toolkit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolkit-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  background: oklch(0.965 0.01 55);
  color: var(--text-secondary);
  transition: background 0.25s, color 0.25s;
  line-height: 1;
}

.toolkit-tag:hover {
  background: var(--accent);
  color: oklch(1 0 0);
}

.toolkit-card-frontend { grid-column: 1 / 2; }
.toolkit-card-backend { grid-column: 2 / 3; }
.toolkit-card-database { grid-column: 3 / 4; }
.toolkit-card-devops { grid-column: 1 / 2; }
.toolkit-card-ai { grid-column: 2 / 3; }
.toolkit-card-security { grid-column: 3 / 4; }

@media (max-width: 900px) {
  .toolkit-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolkit-card-frontend,
  .toolkit-card-backend,
  .toolkit-card-database,
  .toolkit-card-devops,
  .toolkit-card-ai,
  .toolkit-card-security {
    grid-column: auto;
  }
}

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

/* ============= PROJECTS ============= */
.projects-showcase {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background: oklch(1 0 0);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.08);
}

.project-card-featured {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card-featured .project-card-img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 360px;
}

.project-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: oklch(0.88 0.02 55);
}

.project-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(1 0 0);
  background: var(--accent);
  padding: 6px 14px;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.09 0.015 25 / 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

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

.project-link {
  color: oklch(1 0 0);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border: 1.5px solid oklch(1 0 0 / 0.25);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
}

.project-link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.project-link i {
  font-size: 0.7rem;
  transition: transform 0.3s var(--ease);
}

.project-link:hover i {
  transform: translateX(3px);
}

.project-card-body {
  padding: 28px;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.project-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  position: relative;
}

.project-tag::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.project-year {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.project-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--dark);
}

.project-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

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

.project-stack span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  background: oklch(0.96 0.01 55);
  padding: 5px 12px;
  border: 1px solid oklch(0.88 0.02 55);
}

/* Results bar (featured card only) */
.project-results {
  display: flex;
  gap: 0;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.project-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-result strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-result span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .projects-showcase {
    grid-template-columns: 1fr;
  }
  .project-card-featured {
    grid-column: 1 / 2;
    grid-template-columns: 1fr;
  }
  .project-card-featured .project-card-img {
    min-height: 240px;
  }
}

/* ============= CONTACT ============= */
.contact {
  background: var(--surface);
}

.contact-grid {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form .btn {
  align-self: flex-start;
}

/* ============= FOOTER ============= */
.footer {
  padding: 40px 24px;
  background: var(--dark);
  border-top: 1px solid oklch(1 1 0 / 0.06);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  font-size: 0.85rem;
  color: oklch(0.5 0.02 55);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: oklch(0.55 0.02 55);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-family: var(--font-heading);
}

.footer-links a:hover {
  color: oklch(0.9 0.02 55);
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

.footer-inner p {
  font-size: 0.85rem;
  color: oklch(0.5 0.02 55);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: oklch(0.55 0.02 55);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-family: var(--font-heading);
}

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

/* ============= CURSOR GLOW ============= */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.62 0.22 35 / 0.04), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============= 3D SCENE ============= */
.scene-3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-3d canvas {
  display: block;
}

[data-tilt] {
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  position: relative;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scene-3d { display: none; }
  [data-tilt] { transform: none !important; }
  .tilt-glare { display: none !important; }
  .cursor-glow { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-bg-main {
    clip-path: polygon(0 50%, 100% 40%, 100% 100%, 0 100%);
  }

  .hero-bg-accent {
    display: none;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual-inner {
    width: 240px;
    height: 300px;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 8px 14px;
  }

  .badge-1 {
    top: 10px;
    right: 0;
  }

  .badge-2 {
    bottom: 40px;
    left: 0;
  }

  .hero-accent-bar {
    width: 80px;
    bottom: 16px;
    right: -16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-frame {
    max-width: 400px;
  }

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

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

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

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-visual-inner {
    width: 200px;
    height: 260px;
  }

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

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

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .expertise-card {
    padding: 28px;
  }

  .expertise-card-num {
    font-size: 2.2rem;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 60px;
  }

  section {
    padding: var(--section-pad) 16px;
  }

  .hero {
    padding: 0;
  }

  .hero-grid {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-visual-inner {
    width: 160px;
    height: 210px;
  }

  .badge-1, .badge-2 {
    display: none;
  }

  .project-card-body {
    padding: 16px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none; }
  [data-tilt] { transform: none !important; }
  .tilt-glare { display: none !important; }
}
