/* ============================================================
   ZAC CAMPIONE — Personal Portfolio
   Design System & Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Palette */
  --accent-h: 157;
  --accent-s: 72%;
  --accent-l: 52%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), .35);
  --accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), .12);

  --secondary: hsl(217, 72%, 56%);
  --secondary-glow: hsla(217, 72%, 56%, .30);

  --purple: hsl(270, 60%, 62%);
  --amber: hsl(38, 92%, 55%);
  --rose: hsl(350, 70%, 58%);

  /* Dark Theme (default) */
  --bg-primary: hsl(222, 30%, 8%);
  --bg-secondary: hsl(222, 25%, 11%);
  --bg-card: hsl(222, 22%, 14%);
  --bg-card-hover: hsl(222, 22%, 17%);
  --bg-glass: hsla(222, 22%, 14%, .65);
  --bg-glass-border: hsla(0, 0%, 100%, .06);

  --text-primary: hsl(220, 20%, 95%);
  --text-secondary: hsl(220, 15%, 65%);
  --text-muted: hsl(220, 12%, 45%);
  --text-inverse: hsl(222, 30%, 8%);

  --border: hsla(0, 0%, 100%, .08);
  --border-strong: hsla(0, 0%, 100%, .14);

  --shadow-sm: 0 1px 3px hsla(0,0%,0%,.3);
  --shadow-md: 0 4px 16px hsla(0,0%,0%,.35);
  --shadow-lg: 0 8px 40px hsla(0,0%,0%,.45);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Spacing */
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: .375rem;
  --radius-md: .625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --duration: .3s;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Nav Height */
  --nav-height: 64px;
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --bg-primary: hsl(220, 25%, 97%);
  --bg-secondary: hsl(220, 20%, 93%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-card-hover: hsl(220, 20%, 97%);
  --bg-glass: hsla(0, 0%, 100%, .75);
  --bg-glass-border: hsla(0, 0%, 0%, .06);

  --text-primary: hsl(222, 30%, 12%);
  --text-secondary: hsl(220, 12%, 42%);
  --text-muted: hsl(220, 10%, 60%);
  --text-inverse: hsl(220, 20%, 95%);

  --border: hsla(0, 0%, 0%, .08);
  --border-strong: hsla(0, 0%, 0%, .14);

  --shadow-sm: 0 1px 3px hsla(0,0%,0%,.07);
  --shadow-md: 0 4px 16px hsla(0,0%,0%,.08);
  --shadow-lg: 0 8px 40px hsla(0,0%,0%,.12);
  --shadow-glow: 0 0 30px hsla(var(--accent-h), var(--accent-s), var(--accent-l), .15);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--text-inverse);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius-pill);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: background var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  cursor: pointer;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #fff;
  font-weight: 700;
}

.nav__logo-accent { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--duration) var(--ease-out);
}

.nav__link:hover, .nav__link.active {
  color: var(--accent);
}

.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}

.nav__theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration) var(--ease-out);
}

.nav__theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease-out);
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl);
  flex-direction: column;
  gap: var(--space-sm);
  animation: slideDown .3s var(--ease-out);
}

.nav__mobile-menu.open { display: flex; }

.nav__mobile-link {
  font-size: 1rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease-out);
}

.nav__mobile-link:hover, .nav__mobile-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Sections ---------- */
section {
  padding: var(--space-4xl) var(--space-xl);
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-soft);
  border: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), .2);
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--space-xl));
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
  animation: float 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -10%;
  right: -5%;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -5%;
  left: -8%;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--purple);
  top: 40%;
  left: 50%;
  animation-delay: -8s;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__greeting {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .2s forwards;
}

.hero__name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .4s forwards;
}

.hero__name-gradient {
  background: linear-gradient(135deg, var(--accent), var(--secondary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .6s forwards;
}

.hero__role {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .8s forwards;
}

.hero__role-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: .875rem 2rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), hsl(var(--accent-h), 65%, 42%));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) 1.3s forwards;
}

.hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-pill);
  position: relative;
}

.hero__scroll-indicator span::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image-glow {
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: var(--radius-xl);
  opacity: .25;
  filter: blur(20px);
}

.about__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  color: var(--text-muted);
  font-size: 3rem;
}

.about__text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.about__text h2::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease-out);
}

.about__highlight:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.about__highlight-icon {
  font-size: 1.2rem;
}

/* ---------- Beyond the Screen ---------- */
.interests {
  background: var(--bg-secondary);
}

.interests__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.interest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.interest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.interest-card:hover::before { opacity: 1; }

.interest-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.interest-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.interest-card__text {
  color: var(--text-secondary);
  font-size: .9rem;
}

/* ---------- Skills ---------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--duration) var(--ease-out);
}

.skill-category:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.skill-category__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.skill-category__icon {
  font-size: 1.3rem;
}

.skill-bar {
  margin-bottom: var(--space-md);
}

.skill-bar:last-child { margin-bottom: 0; }

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.skill-bar__name {
  font-size: .85rem;
  font-weight: 500;
}

.skill-bar__level {
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.skill-bar__track {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  width: 0;
  transition: width 1.2s var(--ease-out);
}

/* ---------- Projects ---------- */
.projects {
  background: var(--bg-secondary);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all .4s var(--ease-out);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.project-card:hover .project-card__image img {
  transform: scale(1.08);
}

.project-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
  pointer-events: none;
}

.project-card__category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}

.project-card__body {
  padding: var(--space-lg);
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.project-card__desc {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.project-card__tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ---------- Experience ---------- */
.experience__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.experience__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--secondary), var(--purple));
  border-radius: var(--radius-pill);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-item__date {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.timeline-item__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline-item__company {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.timeline-item__desc {
  color: var(--text-secondary);
  font-size: .9rem;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-secondary);
}

.contact__wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact__wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--purple));
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: .875rem var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: .9rem;
  transition: all var(--duration) var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact__social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease-out);
}

.contact__social-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-xl) var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

.footer a {
  color: var(--accent);
  transition: opacity var(--duration);
}

.footer a:hover { opacity: .7; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(.95); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@keyframes scrollDot {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .interests__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-3xl) var(--space-md);
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__name {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .about__highlights {
    grid-template-columns: 1fr;
  }

  .interests__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact__wrapper {
    padding: var(--space-xl);
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
