/* ============================================
   CAIOGODOY.DEV — Modern Portfolio
   Mobile-First Design System
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary, #0d0e13);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #61dafb, #00d8ff);
  /* React colors */
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a8f1ff, #61dafb);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #61dafb #0d0e13;
}

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Colors - Modern Dark Theme */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(20, 20, 20, 0.7);
  --bg-card-solid: #141414;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(97, 218, 251, 0.4);

  /* Accents */
  --purple: #8a2be2;
  --cyan: #61dafb;
  /* React Cyan */
  --blue: #3178c6;
  /* TypeScript Blue */
  --green: #4ade80;
  --pink: #ec4899;
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #eab308;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #61dafb, #3b82f6);
  --gradient-secondary: linear-gradient(135deg, #8a2be2, #ec4899);
  --gradient-hero: radial-gradient(ellipse at 20% 50%, rgba(97, 218, 251, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    #050505;

  /* Shadows */
  --shadow-primary: 0 0 30px rgba(97, 218, 251, 0.2);
  --shadow-cyan: 0 0 30px rgba(97, 218, 251, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Spacing */
  --section-padding: 80px 20px;
  --container-max: 1100px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

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

.nav-menu {
  display: none;
  gap: 8px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-primary) !important;
  line-height: 1;
  transition: var(--transition);
}

.nav-cta i {
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.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: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 5, 5, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backdrop-filter: blur(20px);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 14px 40px;
  color: var(--text-primary);
}

.nav-drawer .nav-link:hover {
  color: var(--cyan);
  background: none;
}

.drawer-cta {
  margin-top: 24px;
  padding: 16px 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-primary);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

/* Terminal badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease both;
}

.hero-badge::before {
  content: '>';
  color: var(--pink);
  font-weight: 700;
}

.hero-badge .blink {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--cyan);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

/* Name */
.hero-name {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-role {
  font-family: 'Fira Code', monospace;
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-role .role-current {
  color: var(--green);
  font-weight: 600;
}

/* Stack tags */
.hero-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.stack-tag {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  color: var(--text-primary);
  transition: var(--transition);
}

.stack-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stack-tag.cyan {
  color: var(--cyan);
  background: rgba(97, 218, 251, 0.05);
  border-color: rgba(97, 218, 251, 0.2);
}

.stack-tag.green {
  color: var(--green);
  background: rgba(74, 222, 128, 0.05);
  border-color: rgba(74, 222, 128, 0.2);
}

.stack-tag.pink {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.05);
  border-color: rgba(236, 72, 153, 0.2);
}

/* CTA buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s 0.8s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 1s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
  font-weight: 600;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

/* ============================================
   SECTION COMMON
   ============================================ */
section {
  padding: var(--section-padding);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(97, 218, 251, 0.08);
  border: 1px solid rgba(97, 218, 251, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  color: var(--cyan);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

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

.about-grid {
  display: grid;
  gap: 48px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.highlight-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.highlight-chip:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}

.highlight-chip i {
  color: var(--cyan);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 2;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #eab308;
}

.dot.green {
  background: #22c55e;
}

.code-key {
  color: var(--pink);
}

.code-str {
  color: var(--green);
}

.code-num {
  color: var(--purple);
}

.code-bool {
  color: var(--orange);
}

.code-comment {
  color: var(--text-muted);
  font-style: italic;
}

.code-paren {
  color: var(--cyan);
}

.code-bracket {
  color: var(--text-primary);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-section {
  background: var(--bg-primary);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.projects-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

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

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

.project-card-top {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.project-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.icon-ai {
  color: var(--purple);
  background: rgba(138, 43, 226, 0.1);
}

.icon-diet {
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
}

.icon-web {
  color: var(--blue);
  background: rgba(49, 120, 198, 0.1);
}

.icon-travel {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
}

.project-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-mobile {
  background: rgba(97, 218, 251, 0.1);
  color: var(--cyan);
}

.badge-web {
  background: rgba(138, 43, 226, 0.1);
  color: var(--purple);
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-card-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-subtitle {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

.project-bullets {
  /* NÃO usar display:flex — isso remove list-style:disc nos browsers */
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.project-bullets li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-bullets li:last-child {
  margin-bottom: 0;
}

.project-bullets li::marker {
  color: var(--cyan);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chip {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chip-purple {
  color: var(--purple);
  border-color: rgba(138, 43, 226, 0.3);
  background: rgba(138, 43, 226, 0.05);
}

.chip-cyan {
  color: var(--cyan);
  border-color: rgba(97, 218, 251, 0.3);
  background: rgba(97, 218, 251, 0.05);
}

.chip-green {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.05);
}

.chip-pink {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.05);
}

.chip-orange {
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.05);
}

.chip-blue {
  color: var(--blue);
  border-color: rgba(49, 120, 198, 0.3);
  background: rgba(49, 120, 198, 0.05);
}

.chip-yellow {
  color: var(--yellow);
  border-color: rgba(234, 179, 8, 0.3);
  background: rgba(234, 179, 8, 0.05);
}


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

.skills-categories {
  display: grid;
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

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

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.skill-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cat-icon-purple {
  background: rgba(138, 43, 226, 0.15);
  color: var(--purple);
}

.cat-icon-cyan {
  background: rgba(97, 218, 251, 0.15);
  color: var(--cyan);
}

.cat-icon-green {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.cat-icon-pink {
  background: rgba(236, 72, 153, 0.15);
  color: var(--pink);
}

.skill-cat-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.skill-item:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
  background: rgba(97, 218, 251, 0.05);
}

.skill-item i {
  font-size: 0.9rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--bg-primary);
}

.contact-wrapper {
  display: grid;
  gap: 40px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

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

.contact-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-green {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.icon-purple {
  background: rgba(138, 43, 226, 0.15);
  color: var(--purple);
}

.icon-cyan {
  background: rgba(97, 218, 251, 0.15);
  color: var(--cyan);
}

.icon-orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
}

.contact-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(97, 218, 251, 0.05);
  box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.1);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.footer-copy span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ============================================
   ANIMATIONS / KEYFRAMES
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(97, 218, 251, 0.5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(97, 218, 251, 0);
  }
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(40px);
  }
}

/* Hero grid bg */
.hero-grid {
  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: 40px 40px;
  z-index: 0;
  animation: gridMove 8s linear infinite;
}

/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(97, 218, 251, 0.15) 0%, transparent 70%);
  top: 5%;
  left: -10%;
  animation: float 10s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation: float 12s ease-in-out infinite reverse;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================
   RESPONSIVE — TABLET (640px+)
   ============================================ */
@media (min-width: 640px) {
  :root {
    --section-padding: 100px 32px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .about-highlights {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-categories {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (900px+)
   ============================================ */
@media (min-width: 900px) {
  :root {
    --section-padding: 120px 40px;
  }

  .nav-menu {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

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

  .skills-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}