/* ==========================================================================
   Tushar Gopale Portfolio — Core Styles
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2234;
  --accent: #2563EB;
  --accent-hover: #1d4ed8;
  --accent-secondary: #22C55E;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(148, 163, 184, 0.24);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
  --overlay: rgba(11, 15, 25, 0.85);
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Manrope', 'Inter', sans-serif;
  --container-max: 1200px;
  --section-padding: clamp(4rem, 8vw, 7rem);
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --text-primary: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.08);
  --overlay: rgba(248, 250, 252, 0.9);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(100% - 2rem, var(--container-max)); margin-inline: auto; }
.section { padding-block: var(--section-padding); }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 10000;
  padding: 0.75rem 1.25rem; background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; }
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.1s linear;
}

.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
  background: var(--overlay); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }

.nav__logo {
  display: flex; align-items: center; gap: 0.625rem;
  color: var(--text-primary); font-weight: 700; font-family: var(--font-heading); flex-shrink: 0;
}
.nav__logo:hover { color: var(--text-primary); }

.nav__logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 800;
}

.nav__menu { display: flex; align-items: center; gap: 0.25rem; }

.nav__link {
  position: relative; padding: 0.5rem 0.875rem; color: var(--text-muted);
  font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link::after {
  content: ''; position: absolute; bottom: 0.25rem; left: 50%;
  transform: translateX(-50%) scaleX(0); width: 1rem; height: 2px;
  background: var(--accent); border-radius: 1px; transition: transform var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--text-primary); }
.nav__link.active::after { transform: translateX(-50%) scaleX(1); }

.nav__toggle {
  display: none; width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  color: var(--text-primary); border-radius: var(--radius-sm);
}
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  color: var(--text-muted); border: 1px solid var(--border); flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-secondary); }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--radius-md); white-space: nowrap; position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4); }
.btn--secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-hover); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn--ghost:hover { color: var(--text-primary); background: var(--bg-secondary); transform: translateY(-2px); }
.btn--full { width: 100%; }
.btn--ripple .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3); transform: scale(0); animation: ripple 0.6s linear; pointer-events: none; }

.section__header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__label {
  display: inline-block; font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
}
.section__subtitle { margin-top: 1rem; color: var(--text-muted); font-size: 1.0625rem; max-width: 36rem; margin-inline: auto; }

.hero {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center;
  position: relative; padding-top: var(--nav-height);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
}
.hero__container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1;
}
.hero__greeting { font-size: 1rem; font-weight: 500; color: var(--accent); margin-bottom: 0.5rem; }
.hero__name {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1rem;
}
.hero__titles {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--text-muted);
  margin-bottom: 1.5rem; min-height: 2rem; font-family: var(--font-heading);
}
.hero__title-typed { color: var(--text-primary); }
.hero__cursor { color: var(--accent); animation: blink 1s step-end infinite; }
.hero__intro { font-size: 1.0625rem; color: var(--text-muted); max-width: 32rem; margin-bottom: 2rem; line-height: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero__stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero__stat-number { display: block; font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.hero__stat-label { font-size: 0.8125rem; color: var(--text-subtle); font-weight: 500; }
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__photo-wrapper { position: relative; }
.hero__photo {
  width: clamp(240px, 30vw, 320px); height: clamp(240px, 30vw, 320px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; overflow: hidden;
}
.hero__photo-initials {
  font-family: var(--font-heading); font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800; color: var(--text-subtle); opacity: 0.4; letter-spacing: -0.04em;
}
.hero__photo-ring {
  position: absolute; inset: -12px; border-radius: calc(var(--radius-xl) + 12px);
  border: 1px solid rgba(37, 99, 235, 0.2); animation: pulse-ring 4s ease-in-out infinite;
}
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-subtle); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; transition: color var(--transition);
}
.scroll-indicator:hover { color: var(--accent); }
.scroll-indicator__line {
  width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

.about__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.about__content p { color: var(--text-muted); margin-bottom: 1.25rem; }
.about__content p strong { color: var(--text-primary); font-weight: 600; }
.about__lead { font-size: 1.125rem; color: var(--text-primary) !important; line-height: 1.8; }
.about__highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.about__highlights li {
  padding: 0.375rem 0.875rem; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; color: var(--text-muted);
}
.about__card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md);
}
.about__card-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; }
.about__focus-list li { display: flex; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--border); }
.about__focus-list li:last-child { border-bottom: none; padding-bottom: 0; }
.about__focus-list li:first-child { padding-top: 0; }
.about__focus-icon { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.about__focus-list strong { display: block; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.about__focus-list p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

.skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.skill-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.skill-card__title {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.skill-card__title::before { content: ''; width: 3px; height: 1rem; background: var(--accent); border-radius: 2px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-chip {
  padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-muted);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.skill-chip:hover { transform: translateY(-1px); }
.skill-chip--expert { border-color: rgba(37, 99, 235, 0.3); color: var(--accent); background: rgba(37, 99, 235, 0.08); }
.skill-chip--advanced { border-color: rgba(34, 197, 94, 0.3); color: var(--accent-secondary); background: rgba(34, 197, 94, 0.08); }

.timeline { position: relative; max-width: 720px; margin-inline: auto; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
}
.timeline__item { position: relative; padding-left: 2.5rem; padding-bottom: 2.5rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute; left: -5px; top: 0.5rem; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%; border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.timeline__card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.timeline__card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.timeline__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.timeline__company { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; }
.timeline__role { font-size: 0.9375rem; color: var(--accent); font-weight: 500; margin-top: 0.25rem; }
.timeline__date {
  font-size: 0.8125rem; color: var(--text-subtle); font-weight: 500; white-space: nowrap;
  padding: 0.25rem 0.75rem; background: var(--bg-tertiary); border-radius: 999px;
}
.timeline__highlights li { position: relative; padding-left: 1.25rem; font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.timeline__highlights li::before {
  content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px;
  background: var(--accent-secondary); border-radius: 50%;
}

.projects__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.5rem 1.25rem; font-size: 0.8125rem; font-weight: 600;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.project-card.hidden { display: none; }
.project-card__image { height: 180px; position: relative; display: flex; align-items: flex-end; padding: 1rem; }
.project-card__image--firmware { background: linear-gradient(135deg, #1e3a5f 0%, #0B0F19 100%); }
.project-card__image--iot { background: linear-gradient(135deg, #14532d 0%, #0B0F19 100%); }
.project-card__image--chatbot { background: linear-gradient(135deg, #581c87 0%, #0B0F19 100%); }
.project-card__image--agri { background: linear-gradient(135deg, #713f12 0%, #0B0F19 100%); }
.project-card__image--health { background: linear-gradient(135deg, #1e40af 0%, #0B0F19 100%); }
.project-card__tag {
  padding: 0.25rem 0.75rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: #fff;
}
.project-card__body { padding: 1.5rem; }
.project-card__title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.project-card__desc { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.project-card__stack { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.project-card__stack span {
  padding: 0.2rem 0.625rem; background: var(--bg-tertiary);
  border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 500; color: var(--accent);
}
.project-card__features { margin-bottom: 1rem; }
.project-card__features li { font-size: 0.8125rem; color: var(--text-muted); padding-left: 1rem; position: relative; margin-bottom: 0.375rem; }
.project-card__features li::before { content: '→'; position: absolute; left: 0; color: var(--accent-secondary); font-size: 0.75rem; }
.project-card__role { font-size: 0.8125rem; color: var(--text-subtle); padding-top: 1rem; border-top: 1px solid var(--border); }
.project-card__role strong { color: var(--text-muted); }

.achievements__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.achievement-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, 0.3); }
.achievement-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin: 0 auto 1.25rem;
  background: rgba(37, 99, 235, 0.1); border-radius: var(--radius-md); color: var(--accent);
}
.achievement-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.achievement-card__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.achievement-card__desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

.education__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; max-width: 900px; margin-inline: auto; }
.education-card {
  display: flex; gap: 1.25rem; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.education-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.education-card__badge {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #1d4ed8); color: #fff;
  border-radius: var(--radius-md); font-family: var(--font-heading); font-size: 0.875rem; font-weight: 800;
}
.education-card__degree { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; }
.education-card__cgpa { font-size: 0.9375rem; color: var(--accent-secondary); font-weight: 600; margin-bottom: 0.5rem; }
.education-card__cgpa strong { font-size: 1.125rem; }
.education-card__detail { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1rem; border-bottom: 1px solid var(--border); }
.contact__list li:first-child { padding-top: 0; }
.contact__list .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); margin-top: 0.125rem; }
.contact__label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: 0.25rem; }
.contact__list a, .contact__list span { font-size: 0.9375rem; color: var(--text-primary); }
.contact__list a:hover { color: var(--accent); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.contact__form { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; background: var(--bg-tertiary);
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.form-group input.error, .form-group textarea.error { border-color: #ef4444; }
.form-error { display: block; font-size: 0.75rem; color: #ef4444; margin-top: 0.375rem; min-height: 1rem; }
.form-success {
  margin-top: 1rem; padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm); color: var(--accent-secondary); font-size: 0.875rem; text-align: center;
}
.form-success[hidden] { display: none; }

.footer { padding: 2.5rem 0; border-top: 1px solid var(--border); background: var(--bg-secondary); }
.footer__container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__credit, .footer__year { font-size: 0.875rem; color: var(--text-muted); }
.footer__credit strong { color: var(--text-primary); }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); background: rgba(37, 99, 235, 0.08); }

.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  opacity: 0; visibility: hidden;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--accent-hover); }
.back-to-top[hidden] { display: flex; }
.back-to-top:not(.visible) { pointer-events: none; }
.back-to-top .icon { width: 1.5rem; height: 1.5rem; }
