/* ==========================================
   PORTFOLIO DESIGN SYSTEM
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #080810;
  --bg-secondary: #0f0f1a;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --accent: #7c6ff7;
  --accent-2: #a78bfa;
  --accent-glow: rgba(124, 111, 247, 0.25);
  --text-primary: #f0f0f8;
  --text-secondary: #a0a0c0;
  --text-muted: #5a5a80;
  --border: rgba(124, 111, 247, 0.15);
  --border-hover: rgba(124, 111, 247, 0.45);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 32px rgba(124, 111, 247, 0.2);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

ul { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

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

.page {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

section {
  padding: 100px 0;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 16, 0.95);
  box-shadow: var(--shadow);
}

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

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: var(--transition);
}

.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 60%; }
.nav-link.active { color: var(--accent-2); }
.nav-link.active::after { width: 60%; }

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

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

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu — hidden at desktop, shown via media query */
.mobile-menu {
  display: none;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 111, 247, 0.4);
}

.btn-primary:hover {
  background: #8d82f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 111, 247, 0.5);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* ==========================================
   HOME PAGE
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -150px;
  right: -150px;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #a78bfa;
  bottom: -100px;
  left: -100px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(124, 111, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 111, 247, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Two-column hero layout */
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-content {
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(124, 111, 247, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title .role {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ==========================================
   HERO PHOTO COLUMN
   ========================================== */
.hero-photo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.7s ease 0.35s both;
}

.hero-photo-frame {
  position: relative;
  width: 340px;
  flex-shrink: 0;
}

/* Ambient glow behind the photo */
.hero-photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(124, 111, 247, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}

/* Spinning decorative ring */
.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  border: 1.5px dashed rgba(124, 111, 247, 0.35);
  animation: spinSlow 20s linear infinite;
  pointer-events: none;
}

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

/* The actual photo */
.hero-photo-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 20px;
  border: 1.5px solid rgba(124, 111, 247, 0.3);
  box-shadow:
    0 0 0 4px rgba(124, 111, 247, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(124, 111, 247, 0.15);
}


/* About mini section */
.about-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.skill-chip {
  padding: 6px 14px;
  background: rgba(124, 111, 247, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(124, 111, 247, 0.15);
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.floating-card {
  position: relative;
  background: rgba(22, 22, 38, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 280px;
}

.floating-card:hover { 
  border-color: var(--accent); 
  transform: translateY(-5px) scale(1.02);
  background: rgba(22, 22, 38, 0.98);
  z-index: 10 !important;
}

.fc-main {
  align-self: center;
  z-index: 5;
  text-align: center;
  box-shadow: var(--shadow-accent);
  margin: -10px 0; /* Tight but controlled spacing */
}

.fc-languages {
  align-self: flex-end;
  animation: fcFloat1 4s ease-in-out infinite;
  z-index: 2;
}

.fc-tools {
  align-self: flex-start;
  animation: fcFloat2 5s ease-in-out infinite;
  z-index: 2;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card-stack { align-items: center; gap: 20px; }
  .fc-main, .fc-languages, .fc-tools { align-self: center; max-width: 320px; animation: none; transform: none; margin: 0; }
}

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

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

.fc-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.fc-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.fc-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fc-item {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================
   EXPERIENCE PAGE
   ========================================== */
.experience-section {
  padding-top: 120px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) .timeline-card-wrapper {
  grid-column: 3;
  grid-row: 1;
}

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

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

.timeline-card-wrapper {
  grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-card-wrapper {
  grid-column: 1;
  text-align: right;
}

.timeline-spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-empty {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Company Logo Card */
.tl-logo-card {
  width: 100%;
  max-width: 260px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.tl-logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--logo-color) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.tl-logo-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--logo-color) 50%, transparent);
  box-shadow: 0 0 32px color-mix(in srgb, var(--logo-color) 20%, transparent);
}

.tl-logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.tl-logo-abbr {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: color-mix(in srgb, var(--logo-color) 90%, white);
  line-height: 1;
}

.tl-logo-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.tl-logo-bar {
  width: 40px;
  height: 3px;
  background: var(--logo-color);
  border-radius: 2px;
  margin-top: 4px;
  opacity: 0.8;
}


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

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

.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

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

.timeline-item:nth-child(odd) .timeline-card {
  text-align: right;
}

.tc-period {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.tc-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.tc-company {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.tc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.timeline-item:nth-child(odd) .tc-tags {
  justify-content: flex-end;
}

.tc-tag {
  padding: 4px 10px;
  background: rgba(124, 111, 247, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
}

/* Education area */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

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

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.edu-icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 111, 247, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.edu-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.88rem;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.edu-year {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================
   PROJECTS PAGE
   ========================================== */
.projects-section {
  padding-top: 120px;
}

.projects-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 111, 247, 0.35);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(124, 111, 247, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-accent);
}

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

.pc-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 111, 247, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.pc-links {
  display: flex;
  gap: 10px;
}

.pc-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

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

.pc-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 10px;
  background: rgba(124, 111, 247, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.pc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.pc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-tech {
  padding: 4px 12px;
  background: rgba(124, 111, 247, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.project-card:hover .pc-tech {
  color: var(--accent-2);
  border-color: rgba(124, 111, 247, 0.3);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-section {
  padding-top: 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

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

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.ci-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.ci-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(124, 111, 247, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ci-text { flex: 1; }
.ci-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.ci-value { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; margin-top: 1px; }

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

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

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: rgba(124, 111, 247, 0.04);
  box-shadow: 0 0 0 4px rgba(124, 111, 247, 0.1);
}

.form-input.error, .form-textarea.error {
  border-color: #f87171;
}

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 6px;
}

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

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

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
}

.form-success.show { display: block; }
.success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.success-title { font-size: 1.2rem; font-weight: 700; color: #22c55e; margin-bottom: 8px; }
.success-text { font-size: 0.9rem; color: var(--text-secondary); }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-copy span { color: var(--accent-2); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

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

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* Affiliations */
.affiliations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.aff-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.aff-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.aff-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.aff-role {
  font-size: 0.85rem;
  color: var(--accent-2);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 48px;
    padding: 100px 0 60px;
    text-align: center;
  }
  .hero-photo-col {
    grid-row: 1;
    order: -1;
  }
  .hero-content {
    grid-row: 2;
  }
  .hero-eyebrow,
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-photo-frame {
    width: 220px;
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  
  .timeline::before { left: 28px; }
  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .timeline-item:nth-child(odd) .timeline-card-wrapper,
  .timeline-item:nth-child(even) .timeline-card-wrapper {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .tc-tags,
  .timeline-item:nth-child(even) .tc-tags {
    justify-content: flex-start;
  }
  .timeline-spacer { grid-column: 1; justify-content: center; }
  .timeline-empty { display: none; }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card { text-align: left; }
  .timeline-item:nth-child(even) .timeline-card-wrapper { grid-row: 1; }
  .timeline-item:nth-child(even) .timeline-spacer { grid-column: 1; grid-row: 1; }
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .hero-stats { gap: 24px; }
  .hero-actions { gap: 12px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  
  .mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 998;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-menu.open { transform: translateX(0); }
  
  .mobile-menu .nav-link {
    font-size: 1.6rem;
    font-weight: 700;
    padding: 14px 48px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    border-radius: var(--radius);
    transition: var(--transition);
    width: 260px;
    text-align: center;
  }

  .mobile-menu .nav-link:hover,
  .mobile-menu .nav-link.active {
    background: rgba(124, 111, 247, 0.1);
    color: var(--accent-2);
  }
  
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 28px 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.6rem; letter-spacing: -2px; }
  .section-title { font-size: 1.8rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* ==========================================
   PAGE TRANSITIONS
   ========================================== */
#app {
  animation: fadeIn 0.3s ease;
}

.page-content {
  animation: fadeInUp 0.4s ease both;
}
