/* ======================================
   Design System — QA Portfolio
   ====================================== */

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1e1e36;
  --text-primary: #e8e8f0;
  --text-secondary: #9a9ab0;
  --text-muted: #6a6a80;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --gradient-card: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(162, 155, 254, 0.05) 100%);
  --border-color: rgba(108, 92, 231, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --green: #00cec9;
  --pink: #fd79a8;
  --orange: #fdcb6e;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;

  /* Effects */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-sm: 8px;
}

/* ======================================
   Reset & Base
   ====================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

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

img {
  max-width: 100%;
}

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

/* ======================================
   Navigation
   ====================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-bracket {
  color: var(--accent);
}

.logo-slash {
  color: var(--accent-light);
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.1);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ======================================
   Hero Section
   ====================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(162, 155, 254, 0.06) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(30px, -30px);
  }

  66% {
    transform: translate(-20px, 20px);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease;
}

/* Hero Avatar */
.hero-avatar {
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}

.avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(108, 92, 231, 0.1);
  transition: var(--transition);
}

.avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(108, 92, 231, 0.2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-name {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
  animation: fadeInDown 0.8s ease 0.4s both;
}

.hero-role {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--green);
  min-height: 2rem;
  margin-bottom: 8px;
  animation: fadeInDown 0.8s ease 0.6s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInDown 0.8s ease 0.8s both;
}

.hero-description strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInDown 0.8s ease 1s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  color: white;
}

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

.btn-outline:hover {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  animation: fadeInDown 0.8s ease 1.2s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 1.5rem;
  color: var(--accent-light);
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ======================================
   Sections
   ====================================== */

.section {
  padding: var(--section-padding);
}

.section-dark {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 12px;
}

/* ======================================
   About Section
   ====================================== */

.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-text strong {
  color: var(--text-primary);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.highlight {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition);
}

.highlight:hover {
  border-color: var(--border-color);
  transform: translateY(-2px);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight p {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* ======================================
   Skills Section
   ====================================== */

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

.skill-category {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.skill-category-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-icon {
  font-size: 1.3rem;
}

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

.skill-tag {
  padding: 6px 14px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-light);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(108, 92, 231, 0.2);
  transform: scale(1.05);
}

/* ======================================
   Portfolio Section
   ====================================== */

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

.project-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-icon {
  font-size: 2rem;
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-link {
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.1);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.project-stat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  padding: 4px 10px;
  background: rgba(0, 206, 201, 0.1);
  border-radius: 100px;
}

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

.tag {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
}

/* ======================================
   Timeline / Experience
   ====================================== */

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

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 20px var(--accent-glow);
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.timeline-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ======================================
   Contact Section
   ====================================== */

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--text-primary);
}

.contact-card:hover {
  border-color: var(--border-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.contact-card svg {
  color: var(--accent-light);
}

.contact-card span:nth-child(2) {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-handle {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

/* ======================================
   Footer
   ====================================== */

.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======================================
   Animations
   ====================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ======================================
   Responsive
   ====================================== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

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

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

  .about-highlights {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
}