:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-dark: #070a12;
  --bg-surface: #0e1424;
  --bg-surface-elevated: #151d33;
  --bg-glass: rgba(15, 23, 42, 0.72);
  --bg-glass-hover: rgba(24, 35, 61, 0.85);

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-amber: #fbbf24;
  --accent-emerald: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-gold: #fcd34d;

  --border-light: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(56, 189, 248, 0.35);
  --border-gold-glow: rgba(245, 158, 11, 0.4);

  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 35px -5px rgba(56, 189, 248, 0.3);
  --glow-gold: 0 0 35px -5px rgba(245, 158, 11, 0.3);
  --glow-blue: 0 0 50px -10px rgba(59, 130, 246, 0.35);

  --header-height: 80px;
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #fffbeb 0%, var(--accent-amber) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-cyan {
  color: var(--accent-cyan);
}

.highlight-gold {
  color: var(--accent-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(7, 10, 18, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pill-badge-gold {
  background: rgba(7, 10, 18, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--accent-amber);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: all var(--transition-normal);
  background: rgba(7, 10, 18, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(14, 20, 36, 0.94);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  box-shadow: var(--glow-cyan);
}

.logo-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-role {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-bar {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.mobile-cta-item {
  display: none;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-container {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 10, 18, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.hero-typewriter .cursor {
  animation: blink 1s infinite;
  color: var(--accent-gold);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-bio {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 640px;
}

.hero-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.highlight-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.highlight-stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 4px;
}

.highlight-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-portrait-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-glow-backdrop {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.25) 0%, rgba(245,158,11,0.15) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.portrait-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), var(--glow-cyan);
  transition: transform var(--transition-normal);
}

.portrait-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.portrait-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7);
  backdrop-filter: blur(16px);
}

.chip-1 {
  bottom: 24px;
  left: -30px;
}

.chip-2 {
  top: 40px;
  right: -25px;
}

.chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.chip-icon-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  flex-shrink: 0;
}

.chip-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.chip-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.marquee-section {
  padding: 50px 0;
  background: linear-gradient(180deg, rgba(7,10,18,0) 0%, rgba(14,20,36,0.6) 50%, rgba(7,10,18,0) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

.section-header-sm {
  text-align: center;
  margin-bottom: 30px;
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

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

.org-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.org-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.org-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.org-card-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.org-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.org-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.section-padding {
  padding: 90px 0;
  position: relative;
}

.section-title-group {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.5rem;
  margin-top: 10px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-glass:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card-glow-border:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--glow-cyan);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.skill-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.skill-card-icon.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.2));
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

.skill-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

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

.tech-tag {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.tech-tag.primary {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.tech-tag.gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-indigo) 50%, var(--accent-gold) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-node {
  position: absolute;
  left: 11px;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px var(--accent-gold);
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--glow-cyan);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.timeline-date {
  font-size: 0.82rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.timeline-role {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.timeline-body {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.timeline-bullets {
  margin-left: 18px;
  margin-bottom: 20px;
}

.timeline-bullets li {
  list-style-type: disc;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.timeline-bullets li::marker {
  color: var(--accent-cyan);
}

.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-chip {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-card), var(--glow-cyan);
  transform: translateY(-6px);
}

.project-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}

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

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

.project-overlay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(7, 10, 18, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 99px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  letter-spacing: 0.03em !important;
}

.project-overlay-badge.pill-badge-gold {
  border-color: var(--accent-gold) !important;
  color: var(--accent-amber) !important;
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--accent-cyan);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.project-action-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  position: relative;
  padding: 36px;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--accent-cyan);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.info-item-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.04);
}

.info-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-text p, .info-text a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.info-text a:hover {
  color: var(--accent-cyan);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(7, 10, 18, 0.9);
}

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

.faq-accordion {
  margin-top: 60px;
}

.faq-card {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.faq-header:hover {
  color: var(--accent-cyan);
}

.faq-toggle-icon {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.faq-card.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-card.open .faq-body {
  max-height: 200px;
  padding-top: 14px;
}

.site-footer {
  background: #04060c;
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px 0;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-subtitle {
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.footer-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact-link:hover {
  color: var(--accent-cyan);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-heading {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

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

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

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.back-to-top {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-portrait-wrapper {
    order: -1;
  }
  .portrait-img {
    height: 360px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-cta {
    display: none !important;
  }
  .mobile-cta-item {
    display: block !important;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .nav-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(9, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    display: none;
  }
  .nav-bar.active {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    background: none;
    border: none;
    align-items: stretch;
  }
  .nav-link {
    text-align: center;
    padding: 12px;
  }
  .mobile-toggle {
    display: flex;
  }
  .chip-1 {
    left: 0;
    bottom: -15px;
  }
  .chip-2 {
    right: 0;
    top: -15px;
  }
  .footer-links-group {
    grid-template-columns: 1fr;
  }
}
