/* ============================================
   LENNIN JOHAN COJAL VALLE — PORTFOLIO CSS
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --surface: #14141f;
  --surface2: #1a1a2e;
  --border: rgba(255,255,255,0.07);
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent3: #c084fc;
  --glow: rgba(124, 58, 237, 0.4);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --text-dim: #555575;
  --white: #ffffff;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

/* ============ CURSOR ============ */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: screen;
}

.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.18s ease;
  opacity: 0.5;
}

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden { opacity: 0; visibility: hidden; }

.loader-text {
  display: flex; gap: 6px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--accent2);
}

.loader-text span {
  opacity: 0;
  animation: letterFade 0.4s forwards;
}
.loader-text span:nth-child(1) { animation-delay: 0.1s; }
.loader-text span:nth-child(2) { animation-delay: 0.2s; }
.loader-text span:nth-child(3) { animation-delay: 0.3s; }
.loader-text span:nth-child(4) { animation-delay: 0.4s; }
.loader-text span:nth-child(5) { animation-delay: 0.5s; }
.loader-text span:nth-child(6) { animation-delay: 0.6s; }
.loader-text span:nth-child(7) { animation-delay: 0.7s; }

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

.loader-bar {
  width: 200px; height: 2px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  width: 0%;
  transition: width 0.05s linear;
  border-radius: 99px;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 16px 48px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex; gap: 36px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent2);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.accent { color: var(--accent2); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 150;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul { list-style: none; text-align: center; }

.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  padding: 12px 0;
  color: var(--text-muted);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--accent2); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 48px 60px;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px; height: 350px;
  background: #3b82f6;
  bottom: -50px; left: 10%;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px; height: 250px;
  background: var(--accent3);
  top: 40%; left: 40%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

#particles { position: absolute; inset: 0; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent3);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.hero-name-accent {
  background: linear-gradient(135deg, var(--accent2), var(--accent3), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent3);
  margin-bottom: 20px;
  min-height: 1.5em;
}

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

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(124,58,237,0.6);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent3);
  background: rgba(124,58,237,0.08);
}

.btn.full { width: 100%; justify-content: center; }

.hero-scroll {
  display: flex;
}

.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

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

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Floating Tags */
.hero-tags {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}

.floating-tag {
  position: absolute;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: floatTag 6s ease-in-out infinite;
}

.tag-1 { top: 20%; right: 8%; animation-delay: 0s; }
.tag-2 { top: 35%; right: 15%; animation-delay: -1s; }
.tag-3 { top: 55%; right: 5%; animation-delay: -2s; }
.tag-4 { top: 68%; right: 20%; animation-delay: -3s; }
.tag-5 { top: 80%; right: 12%; animation-delay: -4s; }

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

/* ============ CONTAINER ============ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============ SECTIONS ============ */
section { padding: 120px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent3);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 500px;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

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

.reveal-line {
  display: block;
  overflow: hidden;
}

/* ============ ABOUT ============ */
.about { background: var(--bg2); }

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

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

.about-stats {
  display: flex; gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
  font-family: var(--font-mono);
}

/* Avatar */
.about-visual {
  display: flex; flex-direction: column; gap: 24px;
  align-items: center;
}

.avatar-card {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.avatar-glow {
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

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

.avatar-inner {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}

.avatar-letters {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.avatar-ring {
  position: absolute;
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.3);
  animation: ringRotate 8s linear infinite;
}

.ring-2 {
  width: 200px; height: 200px;
  border-color: rgba(168,85,247,0.15);
  animation-duration: 12s;
  animation-direction: reverse;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.avatar-badge {
  position: absolute;
  bottom: -10px; right: -10px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-radius: 99px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent3);
  white-space: nowrap;
  z-index: 2;
}

/* Code Snippet */
.code-snippet {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-file {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-muted);
  overflow: auto;
}

.kw { color: #c084fc; }
.fn { color: #60a5fa; }
.prop { color: #93c5fd; }
.str { color: #86efac; }
.num { color: #fda4af; }

/* ============ SKILLS ============ */
.skills { background: var(--bg); }

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(124,58,237,0.05));
  opacity: 0;
  transition: opacity 0.4s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124,58,237,0.15);
}

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

.skill-icon {
  width: 48px; height: 48px;
  background: rgba(124,58,237,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent2);
  transition: all 0.3s;
}

.skill-icon svg { width: 24px; height: 24px; }

.skill-card:hover .skill-icon {
  background: rgba(124,58,237,0.2);
  color: var(--accent3);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.skill-bar {
  height: 3px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: 99px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ============ PROJECTS ============ */
.projects { background: var(--bg2); }

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.project-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-img-1 { background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%); }
.project-img-2 { background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%); }
.project-img-3 { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.project-img-4 { background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%); }

.project-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.project-card:hover .project-overlay { background: rgba(0,0,0,0.1); }

.project-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  transition: transform 0.4s;
}

.project-card:hover .project-icon { transform: scale(1.1) rotate(5deg); }

.project-body { padding: 24px; }

.project-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-tags span {
  padding: 3px 10px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent3);
  letter-spacing: 0.05em;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.proj-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent3);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.proj-link:hover { color: var(--white); }
.proj-link.ghost { color: var(--text-dim); }
.proj-link.ghost:hover { color: var(--text-muted); }

/* ============ TIMELINE ============ */
.timeline-section {
  background: var(--bg);
  padding: 120px 0;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 60px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  left: -48px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--accent);
  transition: all 0.3s;
}

.timeline-dot.active {
  background: var(--accent);
  box-shadow: 0 0 20px var(--glow);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent2);
  box-shadow: 0 0 20px var(--glow);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent3);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ============ CONTACT ============ */
.contact { background: var(--bg2); }

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.social-links {
  display: flex; flex-direction: column; gap: 14px;
}

.social-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.social-link:hover { border-color: var(--accent); color: var(--white); }

.social-link.instagram:hover { color: #e1306c; border-color: #e1306c; }
.social-link.tiktok:hover { color: #69c9d0; border-color: #69c9d0; }

/* FORM */
.contact-form {
  display: flex; flex-direction: column; gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group label {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.25s;
  pointer-events: none;
  font-family: var(--font-mono);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 5px;
  font-size: 0.7rem;
  color: var(--accent3);
}

.btn svg { width: 18px; height: 18px; }

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-sub {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.footer-socials {
  display: flex; gap: 12px; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-socials a { color: var(--accent3); transition: color 0.3s; }
.footer-socials a:hover { color: var(--white); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  
  .hero { padding: 100px 24px 60px; }
  .hero-tags { display: none; }
  
  .container { padding: 0 24px; }
  section { padding: 80px 0; }
  
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .footer { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 24px; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; justify-content: center; }
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent3);
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--transition);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
