/* =========================================
   GISELLA BUSTAMANTE — PORTFOLIO CSS
   Dark · Glassmorphism · Premium
   ========================================= */

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

:root {
  --bg:        #080812;
  --surface:   #0f0f20;
  --glass:     rgba(255,255,255,0.04);
  --glass-b:   rgba(255,255,255,0.08);
  --violet:    #7C3AED;
  --cyan:      #06B6D4;
  --pink:      #EC4899;
  --text:      #F1F5F9;
  --muted:     #64748B;
  --border:    rgba(255,255,255,0.08);
  --font-h:    'Syne', sans-serif;
  --font-b:    'DM Sans', sans-serif;
  --radius:    16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(6,182,212,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 56px; height: 56px;
  border-color: var(--violet);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8,8,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  color: var(--text);
}
.dot { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--violet), var(--cyan)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 600 !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 32px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: orb-float 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--violet);
  top: -200px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  bottom: -100px; left: -100px;
  animation-delay: -4s;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes orb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: badge-in 1s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 8px #22C55E; }
  50% { box-shadow: 0 0 16px #22C55E, 0 0 24px rgba(34,197,94,0.3); }
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  word-break: keep-all;
  overflow-wrap: normal;
  animation: title-in 1s 0.2s ease both;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fade-up 1s 0.3s ease both;
}

.hero-desc {
  color: var(--muted);
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fade-up 1s 0.4s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fade-up 1s 0.5s ease both;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fade-up 1s 0.6s ease both;
}
.hero-stack span {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 500;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.5);
}
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--glass-b);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ── PHOTO ── */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  animation: photo-in 1.2s 0.3s ease both;
}

.photo-ring {
  width: 380px; height: 380px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  animation: ring-spin 8s linear infinite;
  position: relative;
}
@keyframes ring-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.photo-ring-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 4px solid var(--bg);
}
.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.floating-card {
  position: absolute;
  background: rgba(15,15,32,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.floating-card div { display: flex; flex-direction: column; }
.floating-card strong { font-size: 0.85rem; font-weight: 600; }
.floating-card small { font-size: 0.72rem; color: var(--muted); }
.card-icon { font-size: 1.4rem; }

.card-1 { top: 30px; left: -60px; animation-delay: 0s; }
.card-2 { bottom: 40px; right: -50px; animation-delay: -2s; }

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

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 64px;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
}

/* ── SKILLS ── */
.skills { background: var(--surface); }

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

.skill-group {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.skill-group:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124,58,237,0.1);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.skill-icon { font-size: 1.5rem; }
.skill-group h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.pill:hover { transform: scale(1.05); }
.pill-code { background: rgba(124,58,237,0.15); color: #A78BFA; border-color: rgba(124,58,237,0.3); }
.pill-nocode { background: rgba(6,182,212,0.12); color: #67E8F9; border-color: rgba(6,182,212,0.3); }
.pill-design { background: rgba(236,72,153,0.12); color: #F9A8D4; border-color: rgba(236,72,153,0.3); }

/* ── PROJECTS ── */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.tab:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.tab.active {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

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

.project-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.project-card.hidden {
  display: none;
}

.project-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img-wrap img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,18,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.overlay-btn:hover { transform: scale(1.05); }
.overlay-btn-ghost {
  background: var(--glass-b);
  border: 1px solid var(--border);
}
.overlay-label {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--glass);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.project-info {
  padding: 20px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.project-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 999px;
  padding: 3px 10px;
  text-transform: uppercase;
}
.project-info h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.project-info p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── EDUCATION ── */
.education { background: var(--surface); }

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--violet), transparent);
}
.timeline-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.timeline-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
  position: relative;
  z-index: 1;
}
.timeline-card {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateX(4px);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.timeline-card h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.timeline-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-left h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 12px 0 20px;
}
.contact-left p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}
.contact-link:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateX(4px);
  background: var(--glass-b);
}
.contact-link-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  resize: vertical;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--violet);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.field-error {
  font-size: 0.78rem;
  color: #EF4444;
  display: none;
}
.field-error.visible { display: block; }

/* ── FOOTER ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { color: var(--muted); font-size: 0.85rem; }
.back-top {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: var(--transition);
}
.back-top:hover { color: var(--text); border-color: var(--violet); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: rgba(15,15,32,0.95);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.2rem; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero specific animations */
@keyframes badge-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(20px) skewY(2deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes photo-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .photo-ring { width: 300px; height: 300px; }
  .card-1 { left: -20px; }
  .card-2 { right: -20px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* Navbar */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 260px; height: 100vh;
    background: rgba(8,8,18,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-left: 1px solid var(--border);
    z-index: 150;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--text); }
  .burger { display: flex; z-index: 200; position: relative; }

  /* Hero */
  .hero {
    padding: 100px 20px 72px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text { order: 2; }
  .hero-photo { order: 1; }
  .hero-desc { margin: 0 auto 28px; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stack { justify-content: center; }
  .photo-ring { width: 200px; height: 200px; }
  .floating-card { display: none; }
  .scroll-hint { display: none; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }

  /* Education */
  .timeline::before { left: 16px; }
  .timeline-dot { width: 32px; height: 32px; flex-shrink: 0; }
  .timeline-item { gap: 20px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-left h2 { font-size: 2rem; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }

  /* Cursor off on touch */
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }

  /* Section headers */
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 90px 16px 60px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: -0.5px; line-height: 1.15; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .photo-ring { width: 180px; height: 180px; }
  .tab { padding: 8px 14px; font-size: 0.78rem; }
  .skill-group { padding: 24px; }
  .project-info { padding: 16px; }
  .timeline-card { padding: 18px; }
  .contact-link { padding: 14px 16px; }
  .toast { bottom: 16px; right: 16px; left: 16px; }
  .badge { font-size: 0.72rem; padding: 6px 12px; }
}
