/* ============================================
   ROOT & RESET
   ============================================ */
:root {
  --bg-primary: #080b14;
  --bg-secondary: #0d1117;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(108, 99, 255, 0.4);

  --purple: #6c63ff;
  --purple-light: #9b94ff;
  --cyan: #00d4ff;
  --cyan-light: #7ef5ff;
  --green: #00e676;
  --orange: #ff6b35;

  --text-primary: #f0f0f0;
  --text-secondary: #8892a4;
  --text-muted: #4a5568;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   BACKGROUND MESH
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 230, 118, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  transition: var(--transition);
}

.nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  background: var(--bg-card) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

/* Mobile Menu */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(8, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page {
  min-height: 100vh;
  padding-top: 70px;
  position: relative;
  z-index: 1;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 3px;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: var(--transition);
}

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

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

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ============================================
   TAGS / BADGES
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: var(--purple-light);
  white-space: nowrap;
}

.tag-cyan {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.25);
  color: var(--cyan-light);
}

.tag-green {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.25);
  color: var(--green);
}

.tag-orange {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.25);
  color: var(--orange);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HOME PAGE — HERO
   ============================================ */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-title span {
  color: var(--cyan);
  font-weight: 600;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-ring {
  position: relative;
  width: 320px;
  height: 320px;
}

.profile-ring::before,
.profile-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.profile-ring::before {
  inset: -8px;
  background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--purple));
  z-index: 0;
  opacity: 0.6;
}

.profile-ring::after {
  inset: -4px;
  background: var(--bg-primary);
  z-index: 1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-secondary), #1a1f2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}

.profile-initials {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 3;
  position: relative;
}

.floating-badge {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}

.floating-badge:nth-child(1) {
  top: 10%; right: -20%;
  animation-delay: 0s;
  color: var(--purple-light);
  border-color: rgba(108, 99, 255, 0.3);
}

.floating-badge:nth-child(2) {
  bottom: 15%; left: -15%;
  animation-delay: 1s;
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.3);
}

.floating-badge:nth-child(3) {
  bottom: 30%; right: -22%;
  animation-delay: 2s;
  color: var(--green);
  border-color: rgba(0, 230, 118, 0.3);
}

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

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 20px; height: 20px;
  fill: var(--text-muted);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   HOME — SKILLS PREVIEW
   ============================================ */
.skills-preview {
  padding: 6rem 0;
}

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

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

.skill-category-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.skill-cat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.skill-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============================================
   HOME — RECENT EXPERIENCE PREVIEW
   ============================================ */
.exp-preview {
  padding: 2rem 0 6rem;
}

.exp-preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.exp-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  cursor: pointer;
}

.exp-card-mini:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.exp-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.exp-role {
  font-size: 0.85rem;
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exp-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.exp-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.about-avatar-wrap {
  position: relative;
}

.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1f2e, #0d1117);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  overflow: hidden;
}

.about-avatar-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1f2e, #0d1117);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-avatar-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,255,0.1));
}

.about-avatar-initials {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.about-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.about-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.about-info-row:last-child { border-bottom: none; }
.about-info-label { color: var(--text-muted); }
.about-info-value { color: var(--text-primary); font-weight: 500; }

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

/* Skills Section */
.skills-full {
  padding: 3rem 0 5rem;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.skill-group:hover {
  border-color: var(--border-glow);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-group-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.skill-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Education */
.education-section {
  padding: 3rem 0 5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: var(--border-glow);
}

.edu-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(0,212,255,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.edu-field {
  color: var(--purple-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-school {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================
   EXPERIENCE PAGE
   ============================================ */
.exp-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.timeline {
  position: relative;
  padding: 2rem 0 5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--purple), var(--cyan), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) .tl-content { grid-column: 3; }
.timeline-item:nth-child(even) .tl-empty { grid-column: 1; }

.tl-content {
  grid-column: 1;
}

.tl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.5);
  flex-shrink: 0;
  margin-top: 1.75rem;
  z-index: 2;
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 0 1rem;
  transition: var(--transition);
}

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

.tl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tl-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tl-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tl-role {
  color: var(--purple-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tl-about {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
  padding: 0.75rem;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border-left: 2px solid var(--purple);
}

.tl-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tl-highlights li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.tl-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
}

.tl-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

/* Mobile Timeline */
@media (max-width: 768px) {
  .timeline::before { left: 20px; }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto;
  }

  .tl-center {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
  }

  .tl-content,
  .timeline-item:nth-child(even) .tl-content {
    grid-column: 2;
    grid-row: 1;
  }

  .tl-empty { display: none; }

  .timeline-item:nth-child(even) .tl-empty { display: none; }

  .tl-dot { margin-top: 1.5rem; }
  .tl-card { margin: 0 0 0 0.5rem; }
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.projects-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(108, 99, 255, 0.12);
  border-color: var(--purple);
  color: var(--purple-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  padding-bottom: 5rem;
}

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

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

.project-header {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 3.5rem;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

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

.project-link {
  font-size: 0.85rem;
  color: var(--purple-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--cyan);
  gap: 0.5rem;
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-detail-hero {
  padding: 5rem 0 3rem;
}

.project-detail-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.project-detail-icon {
  width: 80px; height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.project-detail-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.project-detail-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.project-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding-bottom: 5rem;
}

.project-detail-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--purple-light);
}

.project-detail-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.project-detail-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.project-detail-content ul li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.project-detail-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--purple);
}

.project-sidebar .card {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sidebar-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  .project-detail-body { grid-template-columns: 1fr; }
  .project-detail-header { flex-direction: column; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 5rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.975rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.contact-method:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.contact-method-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-wrap p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

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

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

.footer-links a:hover {
  color: var(--purple-light);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up:nth-child(1) { transition-delay: 0.1s; }
.fade-up:nth-child(2) { transition-delay: 0.2s; }
.fade-up:nth-child(3) { transition-delay: 0.3s; }
.fade-up:nth-child(4) { transition-delay: 0.4s; }
.fade-up:nth-child(5) { transition-delay: 0.5s; }
.fade-up:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-avatar-box { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 3rem 1.25rem; }
  .hero-stats { gap: 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-categories { grid-template-columns: 1fr; }
}

/* ============================================
   TYPING CURSOR
   ============================================ */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--cyan);
}

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

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}
