/* ============================================
   GKAI Studio Portfolio — Premium Design System
   ============================================ */

:root {
  --hitek-black: #0a0a0a;
  --hitek-dark: #1a1a1a;
  --hitek-gray: #2a2a2a;
  --hitek-red: #ed0004;
  --hitek-red-dark: #4b0001;
  --hitek-red-hover: #ff1a1a;
  --hitek-light-gray: #e5e5e5;
  --hitek-white: #ffffff;

  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent-primary: #ed0004;
  --accent-secondary: #ff1a1a;
  --accent-tertiary: #ed0004;
  --gradient-primary: linear-gradient(180deg, #ed0004 0%, #4b0001 100%);
  --gradient-primary-hover: linear-gradient(180deg, #ff1a1a 0%, #6b0002 100%);
  --gradient-text: linear-gradient(135deg, #ed0004 0%, #ff4444 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(237, 0, 4, 0.12) 0%, rgba(237, 0, 4, 0.04) 100%);
  --shadow-glow: 0 0 40px rgba(237, 0, 4, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-height: 72px;
  --section-py: clamp(2.75rem, 4.5vw, 3.75rem);
  --section-header-gap: clamp(1.25rem, 2.5vw, 1.75rem);
  --content-gap: 1.5rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e5e5e5;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --border-glass: rgba(0, 0, 0, 0.1);
  --text-primary: #0a0a0a;
  --text-secondary: #2a2a2a;
  --text-muted: #666666;
  --shadow-glow: 0 0 40px rgba(237, 0, 4, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  scrollbar-color: #2a2a2a #0a0a0a;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border: 2px solid #0a0a0a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

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

main {
  position: relative;
  z-index: 1;
}

header {
  position: relative;
  z-index: 1000;
}

.projects-grid {
  perspective: none;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding-block: var(--section-py);
  position: relative;
  scroll-margin-top: var(--nav-height);
}

main > .section + .section {
  padding-top: calc(var(--section-py) * 0.5);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--section-header-gap);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background Effects */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-orb 20s ease-in-out infinite;
}

.bg-mesh__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237, 0, 4, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.bg-mesh__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(237, 0, 4, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.bg-mesh__orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(237, 0, 4, 0.08) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

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

/* Navigation — custom classes (avoids Bootstrap .navbar-nav conflicts) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: hsla(0, 0%, 4%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
}

.site-header.scrolled {
  background: hsla(0, 0%, 4%, 0.95);
  border-bottom-color: rgba(237, 0, 4, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--text-primary);
}

.site-brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-brand__logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.5);
  border-radius: var(--radius-sm);
  transition: color var(--transition), text-shadow var(--transition);
  white-space: nowrap;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0.875rem;
  height: 1px;
  background: linear-gradient(90deg, #ed0004, transparent);
  width: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__link:hover,
.site-nav__link.active {
  color: #fff;
  background: transparent;
  text-shadow: 0 0 20px rgba(237, 0, 4, 0.4);
}

.site-nav__link:hover::after,
.site-nav__link.active::after {
  width: calc(100% - 1.75rem);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.25rem;
}

/* Buttons — custom names to avoid Bootstrap conflicts */
.btn-glow,
.btn-outline-custom,
.btn-ghost-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
}

.btn-glow {
  background: var(--gradient-primary);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(237, 0, 4, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, hsla(0, 0%, 100%, 0.15) 45%, hsla(0, 0%, 100%, 0.05) 55%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.btn-glow:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(237, 0, 4, 0.4), 0 8px 25px rgba(237, 0, 4, 0.25);
  color: #fff !important;
}

.btn-glow:hover::before {
  transform: translateX(100%);
}

.btn-glow--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline-custom:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.btn-ghost-custom {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-ghost-custom:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* Legacy btn aliases for sections still using .btn */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(237, 0, 4, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(237, 0, 4, 0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(237, 0, 4, 0.3);
  box-shadow: var(--shadow-glow);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 1.5rem) 0 clamp(2rem, 3.5vw, 2.75rem);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem 3rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(237, 0, 4, 0.1);
  border: 1px solid rgba(237, 0, 4, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  background: #ed0004;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(237, 0, 4, 0.65);
  animation: hitek-pulse-dot 1.8s ease-out infinite;
}

@keyframes hitek-pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(237, 0, 4, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(237, 0, 4, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 0, 4, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title__line {
  display: block;
}

.hero-title__highlight {
  display: block;
  margin: 0.15em 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-typing {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-tertiary);
  margin-bottom: 1.25rem;
  min-height: 1.5em;
}

.hero-typing::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.hero-social {
  display: flex;
  gap: 0.75rem;
}

.hero-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.125rem;
  transition: all var(--transition);
}

.hero-social a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual__wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.hero-visual__ring {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(237, 0, 4, 0.2);
  border-radius: 50%;
  animation: spin-slow 30s linear infinite;
}

.hero-visual__ring--2 {
  inset: -40px;
  border-color: rgba(237, 0, 4, 0.15);
  animation-direction: reverse;
  animation-duration: 40s;
}

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

.hero-visual__core {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual__ai-icon {
  font-size: clamp(4rem, 10vw, 6rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float-icon 6s ease-in-out infinite;
}

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

.hero-float {
  position: absolute;
  padding: 0.75rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float-badge 4s ease-in-out infinite;
}

.hero-float--1 { top: 8%; right: 0; animation-delay: 0s; }
.hero-float--2 { bottom: 18%; left: -5%; animation-delay: -1.5s; }
.hero-float--3 { top: 45%; right: -8%; animation-delay: -3s; }

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

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.about-image {
  position: relative;
}

.about-image__frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glow);
}

.about-image__frame.about-ai-visual {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #0a0a0a 0%, #120404 45%, #0a0a0a 100%);
  min-height: 380px;
}

.about-image__frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 1.25rem 1.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.about-image__badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-image__badge-text {
  font-size: 0.75rem;
  opacity: 0.9;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.about-content a:hover {
  color: #fff;
}

.us-callout {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 1.25rem 1.5rem;
  border-color: rgba(237, 0, 4, 0.2);
  background: rgba(237, 0, 4, 0.04);
}

.about-content > *:last-child {
  margin-bottom: 0;
}

.us-callout__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.us-callout__title i {
  color: var(--accent-primary);
}

.us-callout__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.us-callout__list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.us-callout__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  padding: 1.75rem;
}

.skill-category__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-category__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.skill-category__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.skill-category__priority {
  font-size: 0.6875rem;
  color: var(--accent-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.skill-tag {
  padding: 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.skill-bar {
  margin-bottom: 0.875rem;
}

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.skill-bar__name { font-weight: 500; }
.skill-bar__pct { color: var(--text-muted); }

.skill-bar__track {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 100px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-chart {
  margin-top: var(--section-header-gap);
  padding: 2rem;
}

.skills-chart canvas {
  max-height: 300px;
}

/* Experience Timeline */
.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-tertiary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(237, 0, 4, 0.2);
}

.timeline-item__card {
  padding: 1.75rem;
}

.timeline-item__period {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(237, 0, 4, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.timeline-item__role {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-item__company {
  font-size: 1rem;
  color: var(--accent-tertiary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-item__desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.timeline-item__achievements {
  margin-bottom: 1rem;
}

.timeline-item__achievements li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.timeline-item__achievements li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.timeline-item__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* ── Experience grid (studio track record) ── */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.experience-card {
  padding: 1.75rem;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}

.experience-card:hover {
  border-color: rgba(237, 0, 4, 0.35);
  transform: translateY(-4px);
}

.experience-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(237, 0, 4, 0.1);
  color: var(--accent-primary);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.experience-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.experience-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.experience-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-card__list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  border-bottom: 1px solid var(--border-glass);
}

.experience-card__list li:last-child {
  border-bottom: none;
}

.experience-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
}

@media (max-width: 1024px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

#projects {
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--content-gap);
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-glass);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 0, 4, 0.35);
  box-shadow: 0 20px 50px rgba(237, 0, 4, 0.12);
}

.project-card.hidden {
  display: none;
}

.project-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-tertiary);
}

.project-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.5) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card__image::after {
  opacity: 0.85;
}

.project-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(237, 0, 4, 0.9);
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(237, 0, 4, 0.35);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.2) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

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

.project-card__body {
  padding: 1.5rem;
}

.project-card__category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-tertiary);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.project-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.project-card__link:hover {
  color: var(--accent-tertiary);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.service-card__list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.75rem;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.achievement-card__icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.achievement-card__num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.achievement-card__suffix {
  font-size: 1.5rem;
}

.achievement-card__label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Testimonials */
.testimonials-section {
  overflow: hidden;
}

.testimonial-card {
  padding: 2.5rem;
  height: auto;
}

.testimonial-card__stars {
  color: #eab308;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.testimonial-card__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent-primary) !important;
  opacity: 1 !important;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-glass);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-question i {
  transition: transform var(--transition);
  color: var(--accent-primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-size: 1.125rem;
}

.contact-info__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-weight: 600;
}

.contact-info__value a:hover {
  color: var(--accent-primary);
}

.contact-info__note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.contact-social a:hover {
  color: white;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.contact-form {
  padding: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(237, 0, 4, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

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

/* Footer */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr repeat(5, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-links--plain li {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.back-to-top {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  transition: transform var(--transition);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .mobile-nav__link {
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.mobile-nav .mobile-nav__link:hover {
  color: var(--text-primary);
}

[data-theme="light"] .mobile-nav {
  background: rgba(250, 251, 252, 0.95);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav__link {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 992px) {
  .hero .container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual__wrapper {
    max-width: 280px;
  }

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

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: flex;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-float {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn-glow,
  .hero-cta .btn-outline-custom,
  .hero-cta .btn-ghost-custom {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

@media (min-width: 992px) {
  .d-lg-inline-flex { display: inline-flex !important; }
}
