/* ============================================
   KOUSHIK KOLEY â€” Premium Portfolio Stylesheet
   Theme: Portfolite-inspired dark design system
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0d0d0d;
  --bg-tertiary: #0a0a0a;
  --bg-card: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #d6d6d6;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);
  --border-medium: rgba(255, 255, 255, 0.12);
  --accent: #0099ff;
  --accent-hover: #33adff;
  --accent-glow: rgba(0, 153, 255, 0.35);
  --accent-subtle: rgba(0, 153, 255, 0.06);
  --accent-border: rgba(0, 153, 255, 0.2);
  --gold: #ffd700;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  --nav-height: 72px;
  --container-max: 1200px;
  --section-padding: 120px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --transition-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: none;
}
ul,
ol {
  list-style: none;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Custom Cursor (Desktop Only) --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--transition-smooth),
    height 0.3s var(--transition-smooth),
    background 0.3s,
    opacity 0.3s;
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 153, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s var(--transition-smooth),
    height 0.3s var(--transition-smooth),
    border-color 0.3s,
    opacity 0.3s;
}

.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s;
}

.cursor-dot.link-hover {
  width: 0;
  height: 0;
  opacity: 0;
}
.cursor-outline.link-hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}
.cursor-label.visible {
  opacity: 1;
}

@media (pointer: coarse), (max-width: 768px) {
  .cursor-dot,
  .cursor-outline,
  .cursor-label {
    display: none !important;
  }
  body,
  button,
  a {
    cursor: auto;
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition:
    background 0.5s,
    backdrop-filter 0.5s;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}

/* --- Portfolite-style Button with White Glow --- */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  transition:
    transform 0.35s var(--transition-spring),
    border-color 0.3s;
  cursor: none;
  z-index: 1;
}

.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(163, 163, 163, 0.41) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(10px);
  -webkit-filter: blur(10px);
  border-radius: 999px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn-glow:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glow:hover::before {
  opacity: 1;
}

/* Primary accent button (blue tint glow) */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  transition:
    transform 0.35s var(--transition-spring),
    border-color 0.3s,
    color 0.3s,
    background 0.3s;
  cursor: none;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 50% at 50% 50%,
    var(--accent-glow) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(12px);
  -webkit-filter: blur(12px);
  border-radius: 999px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover::after {
  opacity: 0.12;
}

/* Secondary/outline button */
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  transition:
    transform 0.35s var(--transition-spring),
    border-color 0.3s,
    color 0.3s;
  cursor: none;
  z-index: 1;
}

.btn-secondary:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* Nav CTA */
.nav-cta {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  color: var(--text-primary);
  transition:
    transform 0.3s var(--transition-spring),
    border-color 0.3s,
    box-shadow 0.4s;
  z-index: 1;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(163, 163, 163, 0.3) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(10px);
  -webkit-filter: blur(10px);
  border-radius: 999px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.nav-cta:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-cta:hover::before {
  opacity: 1;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform 0.4s var(--transition-smooth),
    opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s var(--transition-smooth),
    visibility 0.5s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-link {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dim);
  transition:
    color 0.3s,
    transform 0.4s var(--ease-out);
  transform: translateY(30px);
  opacity: 0;
}

.mobile-menu.open .mobile-menu-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-link:nth-child(1) {
  transition-delay: 0.05s;
}
.mobile-menu-link:nth-child(2) {
  transition-delay: 0.1s;
}
.mobile-menu-link:nth-child(3) {
  transition-delay: 0.15s;
}
.mobile-menu-link:nth-child(4) {
  transition-delay: 0.2s;
}
.mobile-menu-link:nth-child(5) {
  transition-delay: 0.25s;
}
.mobile-menu-link:nth-child(6) {
  transition-delay: 0.3s;
}
.mobile-menu-link:nth-child(7) {
  transition-delay: 0.35s;
}

.mobile-menu-link:hover {
  color: var(--text-primary);
  transform: translateX(8px);
}

.mobile-menu-footer {
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s 0.4s,
    transform 0.5s 0.4s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-footer a {
  color: var(--accent);
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  z-index: 900;
  transition:
    transform 0.3s var(--transition-spring),
    border-color 0.3s,
    box-shadow 0.4s;
  z-index: 1;
}

.floating-cta::before {
  content: "";
  position: absolute;
  inset: -6px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(0, 153, 255, 0.3) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(14px);
  -webkit-filter: blur(14px);
  border-radius: 999px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.floating-cta:hover {
  transform: scale(1.06);
  border-color: var(--accent-border);
}

.floating-cta:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 12px 22px;
    font-size: 12px;
  }
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

/* --- Page Entrance (Portfolite-style appear) --- */
.page-enter {
  animation: pageAppear 0.8s var(--ease-out) forwards;
}

@keyframes pageAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}
.reveal-delay-5 {
  transition-delay: 0.4s;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 50% 50% at 65% 50%,
    black 10%,
    transparent 65%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 50% 50% at 65% 50%,
    black 10%,
    transparent 65%
  );
  opacity: 0.6;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Portfolite-style gradient overlay from bottom */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-name .accent {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #66c2ff 50%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- 3D Hero Scene --- */
.hero-3d-scene {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1000px;
}

.hero-3d-scene .ring {
  position: absolute;
  border: 1px solid rgba(0, 153, 255, 0.15);
  border-radius: 50%;
  animation: floatRotate 20s linear infinite;
}

.hero-3d-scene .ring:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(60deg);
  animation-duration: 20s;
}

.hero-3d-scene .ring:nth-child(2) {
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
  border-color: rgba(0, 153, 255, 0.1);
  animation-duration: 25s;
  animation-direction: reverse;
}

.hero-3d-scene .ring:nth-child(3) {
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(60deg) rotateY(30deg);
  border-color: rgba(0, 153, 255, 0.08);
  animation-duration: 15s;
}

@keyframes floatRotate {
  from {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg);
  }
}

.hero-3d-scene .sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 153, 255, 0.2),
    rgba(0, 153, 255, 0.02) 70%
  );
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.1);
}

.hero-3d-scene .sphere-1 {
  width: 80px;
  height: 80px;
  top: 25%;
  left: 55%;
  animation: floatSphere 6s ease-in-out infinite;
}

.hero-3d-scene .sphere-2 {
  width: 50px;
  height: 50px;
  top: 60%;
  left: 35%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(102, 194, 255, 0.15),
    rgba(102, 194, 255, 0.01) 70%
  );
  animation: floatSphere 8s ease-in-out infinite reverse;
}

.hero-3d-scene .sphere-3 {
  width: 30px;
  height: 30px;
  top: 40%;
  left: 70%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.01) 70%
  );
  animation: floatSphere 5s ease-in-out infinite 1s;
}

@keyframes floatSphere {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-3d-scene .geo-shape {
  position: absolute;
  border: 1px solid rgba(0, 153, 255, 0.1);
  animation: floatGeo 7s ease-in-out infinite;
}

.hero-3d-scene .cube {
  width: 40px;
  height: 40px;
  top: 20%;
  left: 30%;
  transform: rotate(45deg);
  border-radius: 4px;
  animation-delay: 0.5s;
}

.hero-3d-scene .triangle {
  width: 0;
  height: 0;
  border: none;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43px solid rgba(0, 153, 255, 0.06);
  top: 65%;
  left: 65%;
  animation: floatGeo 9s ease-in-out infinite 2s;
}

.hero-3d-scene .diamond {
  width: 30px;
  height: 30px;
  top: 45%;
  left: 20%;
  transform: rotate(45deg);
  border-radius: 3px;
  animation: floatGeo 6s ease-in-out infinite 1.5s;
}

@keyframes floatGeo {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: rotate(55deg) translateY(-15px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-3d-scene {
    height: 300px;
    order: -1;
  }
}

/* --- Intro Section --- */
.intro-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.intro-stat-card {
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease-out);
}

.intro-stat-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .intro-section .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .intro-stats {
    grid-template-columns: 1fr;
  }
}

/* --- Achievement Stats --- */
.achievements-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.achievement-item {
  text-align: center;
  padding: 48px 24px;
}

.achievement-number {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.achievement-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .achievement-item {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Expertise --- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.expertise-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  transition:
    border-color 0.4s,
    transform 0.4s var(--ease-out),
    box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.expertise-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.expertise-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--accent);
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.expertise-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  transition:
    border-color 0.4s,
    transform 0.4s var(--ease-out),
    box-shadow 0.4s;
}

.service-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card .service-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-deliverables {
  margin-bottom: 24px;
}

.service-deliverables li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.service-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.service-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.service-cta-link:hover {
  gap: 12px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--border-color),
    transparent
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 60px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -44px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-company {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Work Grid --- */
.work-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.work-filter-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-dim);
  transition: all 0.3s;
  cursor: none;
}

.work-filter-btn:hover,
.work-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.work-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s,
    border-color 0.4s;
  transform-style: preserve-3d;
  perspective: 800px;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-color: var(--border-medium);
}

.work-card-image {
  position: relative;
  height: 240px;
  background: #0a0a0a;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6);
  transition:
    transform 0.6s var(--ease-out),
    filter 0.6s;
}

.work-card:hover .work-card-image img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-overlay span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 10px 22px;
  border: 1px solid rgba(214, 214, 214, 0.4);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}

.work-card:hover .work-card-overlay span {
  transform: translateY(0);
}

.work-card-info {
  padding: 24px;
}

.work-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-card-info h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: transform 0.3s;
}

.work-card:hover .work-card-info h3 {
  transform: translateX(4px);
}

.work-card-info p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.4s;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.blog-card-image {
  height: 200px;
  background: #0a0a0a;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
  transition:
    transform 0.6s var(--ease-out),
    filter 0.6s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.blog-card-content {
  padding: 28px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.blog-card:hover h3 {
  color: var(--accent);
}

.blog-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.3s;
}

.blog-read-more:hover {
  gap: 12px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Blog Article --- */
.article-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
}

.article-hero-image {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg-secondary);
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

.section-title {
    max-width: 1280px !important;
}
.article-content {
  max-width: 1280px !important;
  /*max-width: 760px;*/
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-content li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--accent-subtle);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-content blockquote p {
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0;
}

.article-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .article-hero-image {
    height: 240px;
  }
  .article-content h2 {
    font-size: 22px;
  }
  .article-content h3 {
    font-size: 18px;
  }
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 14px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  position: relative;
  align-self: flex-start;
  padding: 14px 40px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: none;
  overflow: hidden;
  transition:
    transform 0.35s var(--transition-spring),
    border-color 0.3s,
    color 0.3s,
    background 0.3s;
  z-index: 1;
}

.form-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 50% at 50% 50%,
    var(--accent-glow) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(12px);
  -webkit-filter: blur(12px);
  border-radius: 999px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.form-submit:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  color: #fff;
}

.form-submit:hover::before {
  opacity: 1;
}

/* --- CTA Banner --- */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.cta-section .section-title {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-subtitle {
  max-width: 500px;
  margin: 0 auto 40px;
}

/* --- Framework --- */
.framework-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.framework-step {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  position: relative;
  counter-increment: step;
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease-out);
}

.framework-step:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.framework-step::before {
  content: "0" counter(step);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  right: 24px;
}

.framework-step h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.framework-step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-dim);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 404 --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(100px, 20vw, 200px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, #66c2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  animation: errorPulse 3s ease-in-out infinite;
}

@keyframes errorPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-page p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Legal --- */
.legal-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.legal-page .legal-date {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin: 16px 0;
}

.legal-page li {
  list-style: disc;
  margin-bottom: 8px;
}
.legal-page ol li {
  list-style: decimal;
}

/* --- About --- */
.about-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 10px !important;
  /*padding-bottom: 80px;*/
}

.about-hero .section-title {
  max-width: 700px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.skill-tag {
  padding: 8px 18px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}

.skill-tag:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.about-philosophy {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 0;
}

.about-philosophy .container {
  max-width: 760px;
}

.about-philosophy p {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.9;
  font-style: italic;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --- E-commerce --- */
.ecommerce-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ecommerce-stat {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease-out);
}

.ecommerce-stat:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.ecommerce-stat .stat-number {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 12px;
}

.ecommerce-stat p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ecommerce-stats {
    grid-template-columns: 1fr;
  }
}

/* --- Project Detail --- */
.project-detail {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
}

.project-detail-hero {
  width: 100%;
  height: 420px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg-secondary);
}

.project-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-item .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.project-meta-item .value {
  font-size: 15px;
  color: var(--text-primary);
}

.project-detail-content {
  max-width: 760px;
}

.project-detail-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.project-detail-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--accent);
}

/* --- Hero Gradient Orb (added for MPA — was referenced but undefined in the SPA) --- */
.hero-gradient-orb {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(0, 153, 255, 0.12) 35%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  -webkit-filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero-gradient-orb {
    width: 400px;
    height: 400px;
    right: -20%;
    opacity: 0.5;
  }
}

/* --- Contact Page Mobile-Responsive Fixes (NEW for MPA) --- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-info {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    gap: 32px;
  }
  .contact-info h2 {
    font-size: clamp(28px, 7vw, 36px);
  }
  .contact-info p {
    font-size: 15px;
  }
  .contact-email {
    font-size: 14px;
    word-break: break-all;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-form {
    gap: 20px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom-on-focus */
  }
  .form-group select {
    padding-right: 40px;
  }
  .form-submit {
    align-self: stretch;
    width: 100%;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .contact-info h2 {
    font-size: clamp(24px, 8vw, 32px);
  }
  .contact-email {
    margin-bottom: 24px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .page-enter {
    animation: none;
    opacity: 1;
  }
}

/* ============================================
   CV PAGE — Password gate, hero, sections,
   sticky download FAB, animations
   ============================================ */

/* --- Password Gate --- */
.cv-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  transition: opacity 0.5s ease;
}

.cv-gate.hidden {
  opacity: 0;
  pointer-events: none;
}

.cv-gate-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 153, 255, 0.15);
}

.cv-gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--accent-subtle), transparent 70%);
  pointer-events: none;
}

.cv-gate-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  animation: cvLockPulse 2s ease-in-out infinite;
}

.cv-gate-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

@keyframes cvLockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0, 153, 255, 0); }
}

.cv-gate-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  position: relative;
}

.cv-gate-card > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  position: relative;
}

.cv-gate-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.cv-gate-card input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  text-align: center;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cv-gate-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.cv-gate-card button {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s var(--transition-spring);
}

.cv-gate-card button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cv-gate-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.cv-gate-error.visible {
  opacity: 1;
}

.cv-gate-hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
  position: relative;
}

/* --- CV Hero --- */
.cv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  overflow: hidden;
}

.cv-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cv-hero-bg::before,
.cv-hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0.35;
}

.cv-hero-bg::before {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 10%;
  left: 5%;
  animation: cvBlob1 14s ease-in-out infinite;
}

.cv-hero-bg::after {
  width: 400px;
  height: 400px;
  background: #0066cc;
  bottom: 5%;
  right: 5%;
  animation: cvBlob2 18s ease-in-out infinite;
}

@keyframes cvBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 60px) scale(1.2); }
}

@keyframes cvBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -50px) scale(0.85); }
}

.cv-hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.cv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.cv-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: cvPulseDot 1.5s ease-in-out infinite;
}

@keyframes cvPulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.cv-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.cv-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.cv-hero-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cv-hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.cv-hero-contact a,
.cv-hero-contact span {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cv-hero-contact a:hover {
  color: var(--accent);
}

/* Hero entrance animations — only play after unlock */
main.cv-visible .cv-hero-badge {
  animation: cvFadeUp 0.8s var(--ease-out) 0.1s both;
}
main.cv-visible .cv-hero-name {
  animation: cvFadeUp 0.9s var(--ease-out) 0.25s both;
}
main.cv-visible .cv-hero-title {
  animation: cvFadeUp 0.8s var(--ease-out) 0.4s both;
}
main.cv-visible .cv-hero-tagline {
  animation: cvFadeUp 0.8s var(--ease-out) 0.55s both;
}
main.cv-visible .cv-hero-contact {
  animation: cvFadeUp 0.8s var(--ease-out) 0.7s both;
}

@keyframes cvFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- CV Section spacing --- */
.cv-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* --- CV Summary --- */
.cv-summary {
  max-width: 820px;
  margin: 0 auto;
}

.cv-summary p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
}

.cv-summary p:last-child {
  margin-bottom: 0;
}

/* --- CV Skills Grid --- */
.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cv-skill-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s var(--transition-smooth);
}

.cv-skill-category:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.cv-skill-category h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.cv-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-skill-tag {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s var(--transition-smooth);
}

.cv-skill-tag:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- CV Experience Timeline --- */
.cv-timeline .timeline-item {
  padding-left: 32px;
  padding-bottom: 36px;
  position: relative;
}

.cv-exp-bullets {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-exp-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cv-exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- CV Achievements Grid --- */
.cv-achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cv-achievement-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--transition-smooth), box-shadow 0.3s;
}

.cv-achievement-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 153, 255, 0.12);
}

.cv-achievement-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  font-size: 26px;
}

.cv-achievement-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cv-achievement-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CV Tech Grid --- */
.cv-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cv-tech-category {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: border-color 0.3s;
}

.cv-tech-category:hover {
  border-color: var(--accent-border);
}

.cv-tech-category h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.cv-tech-category ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-tech-category li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cv-tech-category li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Sticky Download FAB --- */
.cv-download-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  background: linear-gradient(180deg, #0099ff 0%, #0066cc 100%);
  border: 1px solid rgba(0, 153, 255, 0.5);
  border-right: none;
  border-radius: 14px 0 0 14px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
  box-shadow: -4px 0 24px rgba(0, 153, 255, 0.5);
  transition: padding 0.35s var(--transition-smooth),
              box-shadow 0.35s ease,
              background 0.35s ease;
  animation: cvFabPulse 2.5s ease-in-out infinite;
}

@keyframes cvFabPulse {
  0%, 100% { box-shadow: -4px 0 24px rgba(0, 153, 255, 0.45); }
  50% { box-shadow: -6px 0 40px rgba(0, 153, 255, 0.75); }
}

.cv-download-fab:hover {
  padding-right: 20px;
  background: linear-gradient(180deg, #33adff 0%, #0099ff 100%);
  animation: none;
  box-shadow: -8px 0 48px rgba(0, 153, 255, 0.85);
}

.cv-download-fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cv-download-fab.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* --- CV Page Responsive --- */
@media (max-width: 900px) {
  .cv-skills-grid,
  .cv-tech-grid {
    grid-template-columns: 1fr;
  }
  .cv-achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cv-hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 40px) 0 60px;
  }
  .cv-hero-tagline {
    font-size: 15px;
  }
  .cv-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .cv-skill-category,
  .cv-tech-category {
    padding: 22px 20px;
  }
  .cv-download-fab {
    padding: 16px 11px;
    font-size: 10px;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 480px) {
  .cv-achievements-grid {
    grid-template-columns: 1fr;
  }
  .cv-gate-card {
    padding: 36px 24px;
  }
  .cv-hero-name {
    font-size: clamp(40px, 12vw, 64px);
  }
}

/* --- Reduced motion override for CV animations --- */
@media (prefers-reduced-motion: reduce) {
  .cv-hero-bg::before,
  .cv-hero-bg::after,
  .cv-gate-icon,
  .cv-hero-badge::before,
  .cv-download-fab {
    animation: none !important;
  }
  main.cv-visible .cv-hero-badge,
  main.cv-visible .cv-hero-name,
  main.cv-visible .cv-hero-title,
  main.cv-visible .cv-hero-tagline,
  main.cv-visible .cv-hero-contact {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
