/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dim: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.15);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(37, 99, 235, 0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.25s ease;
  --max-width: 1060px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

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

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

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

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  transition: var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

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

.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 ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #f0f4ff 0%, var(--bg-primary) 50%, #f8faff 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

.circuit-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 40%;
  opacity: 0.06;
  pointer-events: none;
}

.circuit-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawCircuit 4s ease forwards;
}

.cp2 {
  animation-delay: 0.5s;
}

.circuit-node {
  fill: var(--accent);
  opacity: 0;
  animation: nodeAppear 0.5s ease forwards;
}

.circuit-node:nth-child(3) { animation-delay: 1.5s; }
.circuit-node:nth-child(4) { animation-delay: 2s; }
.circuit-node:nth-child(5) { animation-delay: 2.5s; }
.circuit-node:nth-child(6) { animation-delay: 1.8s; }
.circuit-node:nth-child(7) { animation-delay: 2.3s; }

@keyframes drawCircuit {
  to { stroke-dashoffset: 0; }
}

@keyframes nodeAppear {
  to { opacity: 1; }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-typed-wrapper {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  min-height: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.7s forwards;
}

.hero-typed-prefix {
  color: var(--text-secondary);
}

#typedText {
  color: var(--accent);
  font-weight: 600;
}

.typed-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

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

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.9s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.1s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.6s ease 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50% { opacity: 0.6; transform: scaleY(1.15); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5.5rem 0;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-number {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.4rem;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-size: 0.95rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
}

.about-image-placeholder {
  width: 260px;
  height: 260px;
  background: #f0f4ff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  border-radius: 12px;
}

.about-image-border {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 260px;
  height: 260px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  opacity: 0.15;
  z-index: 0;
  transition: var(--transition);
}

.about-image-wrapper:hover .about-image-border {
  top: 7px;
  left: 7px;
  opacity: 0.25;
}

.about-text p {
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  transition: var(--transition);
  cursor: default;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.skills-tools {
  margin-top: 2.5rem;
  text-align: center;
}

.skills-tools h3 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.tools-ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tools-track {
  display: flex;
  gap: 0.75rem;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.tool-tag {
  padding: 0.35rem 0.9rem;
  background: var(--accent-dim);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  perspective: 1000px;
  height: 460px;
  cursor: pointer;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.project-card.flipped .project-card-inner {
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.project-card-back {
  transform: rotateY(180deg);
  padding: 1.75rem;
  overflow-y: auto;
  border-color: var(--border-hover);
}

.project-card-back h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.project-card-back h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.project-details p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.project-details ul {
  padding-left: 0.75rem;
  margin-bottom: 0.4rem;
}

.project-details li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 0.75rem;
}

.project-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.project-image-placeholder {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f4ff;
  position: relative;
}

.project-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Per-project image positioning */
#project-soil .project-image-placeholder img {
  object-position: center 30%;
}

#project-llm .project-image-placeholder img {
  object-position: center 55%;
}

#project-chatgpt .project-image-placeholder img {
  object-position: center 50%;
}

/* Expand button */
.expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
  padding: 0;
}

.expand-btn svg {
  width: 16px;
  height: 16px;
}

.project-image-placeholder:hover .expand-btn {
  opacity: 1;
}

.expand-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.project-info {
  padding: 1.25rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  margin-bottom: 0.6rem;
}

.project-info h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.project-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2.75rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.timeline-marker {
  position: absolute;
  left: -2.75rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: var(--transition);
}

.section-alt .timeline-marker {
  background: var(--bg-secondary);
}

.timeline-item:hover .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.2rem;
  color: var(--text-primary);
}

.timeline-content h4 {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.timeline-content ul {
  padding-left: 0.75rem;
}

.timeline-content li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.6;
  position: relative;
  padding-left: 0.75rem;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.highlight-item .timeline-content {
  border-left: 3px solid var(--accent);
}

/* ===== CAREER GOALS ===== */
.goals-intro {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.goals-intro p {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  font-size: 0.93rem;
  line-height: 1.8;
}

.goals-roadmap {
  position: relative;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.roadmap-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}

.step-icon svg {
  width: 26px;
  height: 26px;
}

.roadmap-step:hover .step-icon {
  background: var(--accent);
  color: #fff;
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.roadmap-step:hover .step-content {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.step-timeline {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== RESUME ===== */
.resume-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.resume-preview {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.resume-embed {
  width: 100%;
  height: 800px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.resume-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

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

.contact-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: var(--transition);
  min-width: 140px;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-card span {
  font-weight: 500;
  font-size: 0.88rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

.footer-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 4.5rem 2rem 2rem;
    gap: 1.25rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    right: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about-image-wrapper {
    margin-bottom: 0.5rem;
  }

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

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

  .project-card {
    height: 480px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .roadmap-step {
    grid-template-columns: 1fr;
  }

  .step-icon {
    width: 44px;
    height: 44px;
  }

  .step-icon svg {
    width: 22px;
    height: 22px;
  }

  .resume-embed {
    height: 500px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
  }

  .resume-embed {
    height: 400px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.project-card-back::-webkit-scrollbar {
  width: 4px;
}

.project-card-back::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.15);
  border-radius: 2px;
}
