:root {
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-purple: #6f42c1;
  --color-purple-light: #ebe2f7;
  --color-purple-soft: #e0bbe4;
  --color-blue: #3b82f6;
  --color-blue-light: #e0e8f8;
  --color-blue-dark: #5f85b8;
  --color-blue-soft: #bee7f3;
  --color-green: #6cc77c;
  --color-green-light: #dcfce7;
  --color-yellow: #fbbf24;
  --color-yellow-light: #fef3c7;
  --color-orange: #f97316;
  --color-orange-light: #ffedd5;
  --color-contact-bg: #1e293b;
  --color-contact-card: rgba(30, 41, 59, 0.8);
  --gradient-btn: linear-gradient(90deg, #3b82f6, #8b5cf6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --container-max: 1100px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  overflow-x: hidden;
}

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

.section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.section--light {
  background: linear-gradient(135deg, rgba(224, 232, 248, 0.3) 0%, rgba(235, 226, 247, 0.3) 100%);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: 12px;
}

.section-title--mt {
  margin-top: 48px;
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-gray-500);
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.section-subtitle--light {
  color: var(--color-gray-400);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

.badge--blue {
  background: var(--color-blue-light);
  color: var(--color-gray-800);
}

.badge--tech-stack {
  background: #e0ecff;
  color: #2962ff;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 10px;
  border-radius: 9999px;
}

.badge--tech-stack .badge-icon--layers {
  width: 18px;
  height: 18px;
  color: #2962ff;
  flex-shrink: 0;
}

.badge--green {
  background: var(--color-green-light);
  color: var(--color-black);
  text-transform: uppercase;
}

.badge--purple {
  background: var(--color-purple-light);
  color: var(--color-gray-800);
}

.badge--yellow {
  background: var(--color-yellow-light);
  color: var(--color-gray-800);
}

.badge-icon {
  font-size: 1rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-200);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-weight: 700;
  font-size: 1.4375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-logo-initials {
  background: linear-gradient(90deg, #2088ff 0%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--color-gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-purple);
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--color-gray-100), var(--color-gray-100)) padding-box,
    linear-gradient(90deg, #2088ff 0%, #9333ea 100%) border-box;
  color: #2088ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.theme-toggle-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.theme-toggle-icon--sun {
  display: none;
}

.theme-toggle-icon--moon {
  display: flex;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  display: flex;
  color: #fbbf24;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(#282a3a, #282a3a) padding-box,
    linear-gradient(90deg, #2088ff 0%, #9333ea 100%) border-box;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, #eef1f5 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  width:  min(80vw, 500px);
  height: min(80vw, 500px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-blob--left {
  left: -20%;
  top: 10%;
  background: var(--color-purple-soft);
}

.hero-blob--right {
  right: -20%;
  bottom: 10%;
  background: var(--color-blue-soft);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes hero-avatar-pop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  70% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-avatar-wrap {
  margin-bottom: 24px;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  animation: hero-avatar-pop 0.6s ease-out 0.2s both;
}

.hero-avatar:hover {
  transform: scale(1.02);
}

.hero-name {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: 8px;
  min-height: 1.2em;
}

.hero-name-inner,
.hero-title-inner {
  display: inline;
}

.hero-typewriter-cursor {
  display: inline-block;
  color: var(--color-purple);
  font-weight: 400;
  animation: cursor-blink 0.9s step-end infinite;
  margin-left: 2px;
}

.hero-typewriter-cursor.hidden {
  display: none;
}

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

.hero-title {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--color-gray-900);
  margin-bottom: 16px;
  min-height: 1.4em;
}

.hero-bio {
  font-size: 1rem;
  color: var(--color-gray-500);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gray-900);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-gray-800);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-gray-800);
  border: 2px solid var(--color-gray-200);
}

.btn-secondary:hover {
  border-color: var(--color-gray-400);
  box-shadow: var(--shadow-sm);
}

.btn-dark {
  background: var(--color-gray-900);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-gray-800);
  border: 2px solid var(--color-gray-800);
}

.btn-outline:hover {
  background: var(--color-gray-100);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-gradient {
  background: var(--gradient-btn);
  color: var(--color-white);
  width: 100%;
  justify-content: center;
}

.btn-gradient:hover {
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-icon {
  font-size: 1rem;
}

.hero-social {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-social-icon {
  width: 22px;
  height: 22px;
}

.hero-social-link--github {
  color: var(--color-gray-900);
}

.hero-social-link--github:hover {
  color: var(--color-gray-700);
}

.hero-social-link--linkedin {
  color: #0a66c2;
}

.hero-social-link--linkedin:hover {
  color: #004182;
}

.hero-social-link--email {
  color: var(--color-purple);
}

.hero-social-link--email:hover {
  color: #5a32a3;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-icon {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-gray-400);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  background: var(--color-gray-500);
  border-radius: 2px;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 1; top: 8px; }
  50% { opacity: 0.3; top: 16px; }
}

.tech-section {
  background: var(--color-white);
}

.tech-section .badge,
.tech-section .section-title,
.tech-section .section-subtitle {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tech-section .badge--tech-stack {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.tech-section .section-title {
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
}

.tech-section .section-subtitle {
  color: #6b7280;
  font-weight: 400;
  font-size: 1rem;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.tech-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tech-card:hover,
.tech-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue);
  background: #f8fafc;
}

.tech-card--frontend:hover .tech-bar,
.tech-card--frontend:focus-within .tech-bar {
  background: linear-gradient(90deg, #93c5fd 0%, #3b82f6 100%);
}

.tech-card--backend:hover .tech-bar,
.tech-card--backend:focus-within .tech-bar {
  background: #4ade80;
}

.tech-card--mobile:hover .tech-bar,
.tech-card--mobile:focus-within .tech-bar {
  background: linear-gradient(90deg, #f0abfc 0%, #d946ef 100%);
}

.tech-card--devops:hover .tech-bar,
.tech-card--devops:focus-within .tech-bar {
  background: linear-gradient(90deg, #f87171 0%, #fb923c 100%);
}

.tech-card:focus-within {
  outline: none;
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  font-weight: 700;
  font-size: 1rem;
}

.tech-card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-card-icon-wrap--blue {
  background: #3b82f6;
  color: var(--color-white);
}

.tech-card-icon-wrap--green {
  background: #22c55e;
  color: var(--color-white);
}

.tech-card-icon-wrap--magenta {
  background: #c026d3;
  color: var(--color-white);
}

.tech-card-icon-wrap--orange {
  background: #f97316;
  color: var(--color-white);
}

.tech-card-icon {
  font-size: 1.125rem;
  font-weight: 700;
  color: inherit;
}

.tech-card-icon-svg {
  width: 22px;
  height: 22px;
  color: inherit;
}

.tech-card-title {
  color: var(--color-black);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.tech-list {
  list-style: none;
  padding: 20px;
}

.tech-item {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.tech-item:last-child {
  margin-bottom: 0;
}

.tech-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gray-800);
  white-space: nowrap;
}

.tech-bar-wrap {
  height: 8px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tech-bar {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s ease-out, background 0.3s ease;
}

.tech-card--frontend .tech-bar {
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.tech-card--backend .tech-bar {
  background: #22c55e;
}

.tech-card--mobile .tech-bar {
  background: linear-gradient(90deg, #e879f9 0%, #c026d3 100%);
}

.tech-card--devops .tech-bar {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
}

.tech-pct {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-400);
  text-align: right;
}

.tech-card[tabindex="0"] {
  cursor: pointer;
}

.tech-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-purple-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-gray-700);
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 32px;
}

.tech-extra-icon {
  font-size: 1rem;
}

.tech-toolkit-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 28px;
  max-width: 640px;
  background: linear-gradient(90deg, #e6e6fa 0%, #f5f5ff 50%, #e5e7eb 100%);
  border-radius: 9999px;
  text-align: center;
}

.tech-toolkit-pill-icon {
  width: 20px;
  height: 20px;
  color: #7c3aed;
  flex-shrink: 0;
}

.tech-toolkit-pill-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.5;
}

.projects-section {
  background: #ffffff;
}

.projects-section .badge,
.projects-section .section-title,
.projects-section .section-subtitle {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.badge--portfolio {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  background: #e6ffe6;
  color: #166534;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}

.badge--portfolio .badge-icon--briefcase {
  width: 18px;
  height: 18px;
  color: #166534;
  flex-shrink: 0;
}

.projects-section .section-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.projects-section .section-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-image-wrap {
  position: relative;
  aspect-ratio: 600 / 340;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 14px;
  background: #1f2937;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
}

.project-badge-star {
  width: 14px;
  height: 14px;
  color: #fbbf24;
  flex-shrink: 0;
}

.project-body {
  padding: 24px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 6px 12px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
}

.project-actions {
  display: flex;
  gap: 12px;
}

.btn-live-demo,
.btn-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-live-demo {
  background: #1f2937;
  color: #ffffff;
  border: none;
}

.btn-live-demo:hover {
  background: #374151;
}

.btn-code {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.btn-code:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.projects-footer {
  text-align: center;
}

.link-github {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-github-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #111827;
}

.link-github:hover {
  color: #111827;
  border-color: #d1d5db;
}

.education-section {
  background: #f8f7ff;
}

.education-section .badge,
.education-section .section-title,
.education-section .section-subtitle {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.badge--education {
  display: flex;
  width: fit-content;
  align-items: center;
  background: #e8dffc;
  color: #8b5cf6;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9375rem;
  gap: 10px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}

.badge--education .badge-icon--grad {
  width: 18px;
  height: 18px;
  color: #8b5cf6;
  flex-shrink: 0;
}

.education-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.education-section .section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.education-card {
  display: flex;
  gap: 24px;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.education-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--color-blue);
}

.education-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d1c4e9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.education-icon-svg {
  width: 28px;
  height: 28px;
  color: #673ab7;
}

.education-content {
  flex: 1;
  min-width: 0;
}

.education-degree-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.education-degree {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.education-date {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #a7c9f9;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
}

.education-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
}

.education-meta-icon {
  width: 16px;
  height: 16px;
  color: #673ab7;
  flex-shrink: 0;
}

.education-location {
  color: #666;
}

.education-gpa {
  font-size: 0.9375rem;
  color: #333;
  margin-bottom: 12px;
}

.gpa-value {
  color: #4caf50;
  font-weight: 500;
}

.education-desc {
  font-size: 0.9375rem;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
}

.education-achievements {
  list-style: none;
  margin: 0;
  padding: 0;
}

.education-achievements li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.5;
}

.education-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: #673ab7;
  border-radius: 50%;
}

.education-section .section-title--mt {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 32px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: #93c5fd;
}

.cert-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d1c4e9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.cert-icon-svg {
  width: 28px;
  height: 28px;
  color: #673ab7;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cert-issuer {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.cert-year {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}

.testimonials-section {
  background: #f8f9fb;
}

.testimonials-section .badge,
.testimonials-section .section-title,
.testimonials-section .section-subtitle {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.badge--testimonials {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  background: #fef9c3;
  color: #333;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}

.badge--testimonials .badge-icon--star {
  width: 16px;
  height: 16px;
  color: #eab308;
  flex-shrink: 0;
}

.testimonials-section .section-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.testimonials-section .section-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.testimonial-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--color-blue);
}

.testimonial-quote-mark {
  position: absolute;
  font-size: 4.5rem;
  color: rgba(196, 181, 253, 0.35);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-quote-mark--top {
  top: 12px;
  right: 20px;
}

.testimonial-quote-mark--bottom {
  bottom: 12px;
  right: 20px;
  opacity: 0.6;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  flex-shrink: 0;
}

.testimonial-avatar--blue { background: #3b82f6; }
.testimonial-avatar--purple { background: #8b5cf6; }
.testimonial-avatar--green { background: #22c55e; }
.testimonial-avatar--orange { background: #f97316; }

.testimonial-name {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px 0;
}

.testimonial-role {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.testimonial-stars {
  color: #eab308;
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
  font-style: normal;
  margin: 0;
  position: relative;
  z-index: 1;
}

.testimonials-rating {
  text-align: center;
  margin-top: 8px;
}

.testimonials-rating .badge--testimonials-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(90deg, #f8f0d8 0%, #f5e8c8 50%, #f0ddb8 100%);
  color: #363636;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  box-shadow: none;
}

.badge--testimonials-rating .badge-icon--star {
  width: 18px;
  height: 18px;
  color: #c9940a;
  flex-shrink: 0;
}

.contact-section {
  background: #1a1b28;
  padding-bottom: 0;
}

.contact-section .container {
  padding-bottom: 48px;
  text-align: center;
}

.contact-section .contact-layout {
  text-align: left;
}

.contact-section .section-title,
.contact-section .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.contact-section .section-title--light {
  color: #ffffff;
  font-weight: 700;
}

.contact-section .section-subtitle--light {
  color: #cccccc;
  font-size: 1rem;
  margin-bottom: 40px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #2088ff;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-badge:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.contact-badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: rgba(40, 42, 58, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(40, 42, 58, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.contact-card-icon--blue { background: #2088ff; }
.contact-card-icon--green { background: #2cc269; }
.contact-card-icon--purple { background: #9333ea; }

.contact-card-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: 0.9375rem;
  color: #cccccc;
  line-height: 1.5;
}

.contact-follow {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 8px;
}

.contact-social {
  display: flex;
  gap: 12px;
}

.contact-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-social-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-social-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-social-icon--stroke {
  stroke: #ffffff;
}

.contact-form {
  background: rgba(40, 42, 58, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  padding: 32px;
}

.contact-form .form-row {
  margin-bottom: 20px;
}

.contact-form .form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 8px;
}

.contact-form .form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.contact-form .form-input::placeholder {
  color: #a7a7a7;
}

.contact-form .form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
}

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

.contact-form .form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form .form-row-group .form-row {
  margin-bottom: 0;
}

.contact-form-status {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  min-height: 1.4em;
}

.contact-form-status--success {
  color: #2cc269;
}

.contact-form-status--error {
  color: #ef4444;
}

.btn-send-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 8px;
  background: linear-gradient(90deg, #2088ff 0%, #9333ea 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-send-message:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-send-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-text {
  font-size: 0.875rem;
  color: #a7a7a7;
}

[data-theme="dark"] body {
  background: #1a1b28;
  color: #e5e5e5;
}

[data-theme="dark"] .header {
  background: rgba(26, 27, 40, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-link {
  color: #b4b4b4;
}

[data-theme="dark"] .nav-link:hover {
  color: #a78bfa;
}

[data-theme="dark"] .nav-toggle span {
  background: #e5e5e5;
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #1a1b28 0%, #232438 50%, #1a1b28 100%);
}

[data-theme="dark"] .hero-blob--left {
  background: rgba(147, 51, 234, 0.25);
}

[data-theme="dark"] .hero-blob--right {
  background: rgba(32, 136, 255, 0.25);
}

[data-theme="dark"] .hero-name,
[data-theme="dark"] .hero-typewriter-cursor {
  color: #a78bfa;
}

[data-theme="dark"] .hero-title {
  color: #d4d4d4;
}

[data-theme="dark"] .hero-bio {
  color: #a3a3a3;
}

[data-theme="dark"] .hero-avatar {
  border-color: #282a3a;
}

[data-theme="dark"] .hero-social-link {
  background: #282a3a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}

[data-theme="dark"] .hero-social-link--github:hover {
  color: #a78bfa;
}

[data-theme="dark"] .hero-social-link--linkedin:hover {
  color: #60a5fa;
}

[data-theme="dark"] .hero-social-link--email:hover {
  color: #c4b5fd;
}

[data-theme="dark"] .tech-section {
  background: #1a1b28;
}

[data-theme="dark"] .tech-section .section-title,
[data-theme="dark"] .tech-section .section-subtitle {
  color: #e5e5e5;
}

[data-theme="dark"] .tech-card {
  background: #282a3a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tech-card:hover {
  border-color: rgba(32, 136, 255, 0.5);
}

[data-theme="dark"] .tech-card-title {
  color: #ffffff;
}

[data-theme="dark"] .tech-skill-name,
[data-theme="dark"] .tech-name {
  color: #e5e5e5;
}

[data-theme="dark"] .tech-pct {
  color: #ffffff;
}

[data-theme="dark"] .badge--tech-stack {
  background: rgba(32, 136, 255, 0.2);
  color: #93c5fd;
}

[data-theme="dark"] .projects-section {
  background: #1a1b28;
}

[data-theme="dark"] .projects-section .section-title,
[data-theme="dark"] .projects-section .section-subtitle {
  color: #e5e5e5;
}

[data-theme="dark"] .project-card {
  background: #282a3a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-card:hover {
  border-color: rgba(32, 136, 255, 0.4);
}

[data-theme="dark"] .project-title {
  color: #e5e5e5;
}

[data-theme="dark"] .project-body {
  color: #b4b4b4;
}

[data-theme="dark"] .project-tags span {
  background: rgba(32, 136, 255, 0.2);
  color: #93c5fd;
}

[data-theme="dark"] .btn-outline {
  color: #93c5fd;
  border-color: rgba(32, 136, 255, 0.5);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(32, 136, 255, 0.15);
  border-color: #93c5fd;
}

[data-theme="dark"] .badge--portfolio {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

[data-theme="dark"] .badge--education {
  background: rgba(147, 51, 234, 0.2);
  color: #c4b5fd;
}

[data-theme="dark"] .badge--testimonials {
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
}

[data-theme="dark"] .testimonials-rating .badge--testimonials-rating {
  background: rgba(251, 191, 36, 0.15);
  color: #fde047;
}

[data-theme="dark"] .education-section {
  background: #1e1f2e;
}

[data-theme="dark"] .education-section .section-title,
[data-theme="dark"] .education-section .section-subtitle {
  color: #e5e5e5;
}

[data-theme="dark"] .education-card {
  background: #282a3a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .education-card:hover {
  border-color: rgba(32, 136, 255, 0.4);
}

[data-theme="dark"] .education-degree,
[data-theme="dark"] .education-date {
  color: #e5e5e5;
}

[data-theme="dark"] .education-meta,
[data-theme="dark"] .education-meta .education-location,
[data-theme="dark"] .education-gpa,
[data-theme="dark"] .education-desc,
[data-theme="dark"] .education-achievements,
[data-theme="dark"] .education-achievements li {
  color: #e5e5e5;
}

[data-theme="dark"] .cert-card {
  background: #282a3a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cert-card:hover {
  border-color: rgba(147, 51, 234, 0.4);
}

[data-theme="dark"] .cert-title {
  color: #e5e5e5;
}

[data-theme="dark"] .cert-issuer,
[data-theme="dark"] .cert-year {
  color: #b4b4b4;
}

[data-theme="dark"] .testimonials-section {
  background: #1a1b28;
}

[data-theme="dark"] .testimonials-section .section-title,
[data-theme="dark"] .testimonials-section .section-subtitle {
  color: #e5e5e5;
}

[data-theme="dark"] .testimonial-card {
  background: #282a3a;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .testimonial-card:hover {
  border-color: rgba(32, 136, 255, 0.4);
}

[data-theme="dark"] .testimonial-quote,
[data-theme="dark"] .testimonial-text {
  color: #e5e5e5;
}

[data-theme="dark"] .testimonial-name {
  color: #e5e5e5;
}

[data-theme="dark"] .testimonial-role {
  color: #b4b4b4;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(90deg, #2088ff 0%, #9333ea 100%);
  color: #ffffff;
  border: none;
}

[data-theme="dark"] .btn-secondary {
  background: transparent;
  color: #a78bfa;
  border: 2px solid rgba(167, 139, 250, 0.5);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: #a78bfa;
}

@media (max-width: 900px) {
  .contact-form .form-row-group {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row:first-of-type,
  .contact-form .form-row:nth-of-type(2) {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  [data-theme="dark"] .nav-menu {
    background: #282a3a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--color-gray-200);
  }

  [data-theme="dark"] .nav-menu li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
  }

  .nav-toggle {
    display: flex;
  }

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

  .education-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.education-list .education-card.animate-in {
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.education-list .education-card.animate-in.visible {
  transform: translateY(0);
}

.education-list .education-card.animate-in:nth-child(2) {
  transition-delay: 0.1s;
}

.cert-grid .cert-card.animate-in:nth-child(2) { transition-delay: 0.1s; }
.cert-grid .cert-card.animate-in:nth-child(3) { transition-delay: 0.2s; }
