/* ==========================================================================
   Lucas Silva – Portfolio
   Theme: "Neon future" – deep purple background, neon cyan / magenta /
   violet glows, a faint grid and a futuristic display font.

   Plain CSS, mobile-first: base styles target small screens and
   @media (min-width: …) blocks progressively enhance larger screens.

   Contents
   1.  Design tokens (custom properties) + themes
   2.  Reset & base
   3.  Live background: glows, moving grid, neon beams
   4.  Utilities
   5.  Buttons, tags, cards
   6.  Header & navigation
   7.  Hero
   8.  Sections (shared)
   9.  About
   10. Experience timeline
   11. Education
   12. Skills
   13. Projects
   14. Contact & form
   15. Footer, supporter logos & back-to-top
   16. Scroll animations + keyframes
   17. Media queries (tablet / desktop)
   18. Reduced motion
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   All colours, fonts, glows and spacing live here. Change them once, the
   whole site updates. Dark (neon) is the default; light overrides colours.
   ========================================================================== */
:root {
  /* --- Colours (dark neon theme) --- */
  --color-bg: #0d0221;                         /* deep purple-black */
  --color-bg-alt: #120530;
  --color-surface: rgba(29, 12, 68, 0.62);     /* glassy cards */
  --color-surface-solid: #1d0c44;
  --color-input-bg: rgba(13, 2, 33, 0.7);
  --color-border: rgba(168, 85, 247, 0.28);
  --color-text: #ede9fe;                       /* 17:1 on bg */
  --color-text-muted: #b4a7d6;                 /*  9:1 on bg */
  --color-heading: #ffffff;
  --color-accent: #22d3ee;                     /* neon cyan – 11:1 on bg */
  --color-accent-hover: #67e8f9;
  --color-accent-soft: rgba(34, 211, 238, 0.1);
  --color-accent-2: #ff2bd6;                   /* neon magenta – 6.3:1 on bg */
  --color-accent-3: #a855f7;                   /* neon violet (decoration) */
  --color-on-accent: #0d0221;                  /* text on top of neon colours */
  --color-error: #fb7185;
  --color-header-bg: rgba(13, 2, 33, 0.72);

  /* --- Neon effects --- */
  --gradient-neon: linear-gradient(90deg, #22d3ee 0%, #a855f7 50%, #ff2bd6 100%);
  --gradient-button: linear-gradient(90deg, #22d3ee, #a855f7);
  --glow-accent: 0 0 18px rgba(34, 211, 238, 0.45);
  --glow-accent-strong: 0 0 10px rgba(34, 211, 238, 0.6), 0 0 32px rgba(34, 211, 238, 0.35);
  --glow-accent-2: 0 0 18px rgba(255, 43, 214, 0.45);
  --glow-text: 0 0 12px rgba(34, 211, 238, 0.65);
  --shadow-card: 0 12px 32px -14px rgba(0, 0, 0, 0.75);
  --bg-glow-1: rgba(168, 85, 247, 0.30);       /* big background light spots */
  --bg-glow-2: rgba(255, 43, 214, 0.16);
  --bg-glow-3: rgba(34, 211, 238, 0.12);
  --grid-line: rgba(168, 85, 247, 0.09);

  /* --- Live background + interactive effects --- */
  --beam-cyan: #22d3ee;
  --beam-magenta: #ff2bd6;
  --beam-violet: #a855f7;
  --beam-opacity: 0.85;
  --cursor-glow: rgba(168, 85, 247, 0.2);      /* glow that follows the mouse */
  --spotlight: rgba(34, 211, 238, 0.13);       /* light spot on hovered cards */

  /* --- Typography --- */
  --font-display: "Orbitron", "Inter", system-ui, sans-serif;   /* futuristic headings */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.375rem;    /* 22px */
  --fs-xl: clamp(1.375rem, 1rem + 1.6vw, 2rem);         /* section titles */
  --fs-hero: clamp(1.75rem, 1.1rem + 3.2vw, 3.5rem);    /* <h1> (Orbitron is wide) */
  --lh-tight: 1.2;
  --lh-base: 1.7;

  /* --- Spacing scale --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* --- Layout --- */
  --container-max: 1100px;
  --container-pad: 1rem;       /* 16px side gutter on phones */
  --header-h: 64px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-full: 999px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.645, 0.045, 0.355, 1);
  --duration: 0.25s;

  color-scheme: dark;
}

/* Light theme: a soft lavender version with deeper, readable neon colours */
:root[data-theme="light"] {
  --color-bg: #f5f3ff;
  --color-bg-alt: #ede9fe;
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-surface-solid: #ffffff;
  --color-input-bg: #ffffff;
  --color-border: rgba(109, 40, 217, 0.2);
  --color-text: #2e1065;                       /* 14:1 on bg */
  --color-text-muted: #5b4a86;                 /*  6.9:1 on bg */
  --color-heading: #1e0645;
  --color-accent: #0e7490;                     /* deep cyan – 5:1 (WCAG AA) */
  --color-accent-hover: #155e75;
  --color-accent-soft: rgba(14, 116, 144, 0.08);
  --color-accent-2: #be185d;                   /* deep magenta */
  --color-accent-3: #7c3aed;
  --color-on-accent: #ffffff;
  --color-error: #be123c;
  --color-header-bg: rgba(245, 243, 255, 0.8);

  --gradient-neon: linear-gradient(90deg, #0e7490 0%, #7c3aed 50%, #be185d 100%);
  --gradient-button: linear-gradient(90deg, #0e7490, #7c3aed);
  --glow-accent: 0 0 16px rgba(124, 58, 237, 0.22);
  --glow-accent-strong: 0 0 20px rgba(124, 58, 237, 0.3);
  --glow-accent-2: 0 0 16px rgba(190, 24, 93, 0.2);
  --glow-text: none;
  --shadow-card: 0 12px 30px -18px rgba(46, 16, 101, 0.3);
  --bg-glow-1: rgba(168, 85, 247, 0.18);
  --bg-glow-2: rgba(236, 72, 153, 0.1);
  --bg-glow-3: rgba(34, 211, 238, 0.12);
  --grid-line: rgba(109, 40, 217, 0.07);

  --beam-cyan: #0891b2;
  --beam-magenta: #db2777;
  --beam-violet: #7c3aed;
  --beam-opacity: 0.45;
  --cursor-glow: rgba(124, 58, 237, 0.12);
  --spotlight: rgba(124, 58, 237, 0.08);

  color-scheme: light;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  /* Keeps anchored sections from hiding under the sticky header */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

/* Stop the page scrolling behind the open mobile menu */
body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1, h2, h3 {
  color: var(--color-heading);
  line-height: var(--lh-tight);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease), text-shadow var(--duration) var(--ease);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Visible focus ring for keyboard users on every interactive element */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-accent-2);
  color: #ffffff;
}


/* ==========================================================================
   3. LIVE BACKGROUND: NEON GLOWS, MOVING GRID, LIGHT BEAMS
   Three fixed layers behind all content. Every animation here only moves
   things with `transform`, which the browser can do on the GPU without
   repainting the page, so it stays smooth while scrolling.
     z-index -3  body::before  soft coloured light spots (slowly breathing)
     z-index -2  body::after   faint "cyber" grid drifting downwards
     z-index -1  .bg-fx        neon beams passing by + mouse glow
   ========================================================================== */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

/* Light spots */
body::before {
  inset: -10%;
  z-index: -3;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, var(--bg-glow-1), transparent 70%),
    radial-gradient(ellipse 45% 35% at 90% 30%, var(--bg-glow-2), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, var(--bg-glow-3), transparent 70%);
  animation: breathe 18s ease-in-out infinite alternate;
}

/* Grid: one grid cell taller than the screen, moved down by exactly one
   cell and then reset, which looks like an endless scroll */
body::after {
  inset: -48px 0 0 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  animation: grid-drift 4s linear infinite;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* A neon beam: a thin line with a bright head and a fading tail.
   Each one gets its own position, colour, speed and delay below. */
.bg-fx__beam {
  --beam: var(--beam-cyan);
  position: absolute;
  top: var(--y, 20%);
  left: 0;
  width: 32vw;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--beam) 75%, #ffffff);
  box-shadow: 0 0 10px var(--beam), 0 0 24px var(--beam);
  opacity: var(--beam-opacity);
  transform: translateX(-40vw);
  animation: beam-x var(--dur, 10s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

/* Vertical beams fall down the screen */
.bg-fx__beam--v {
  top: 0;
  left: var(--x, 50%);
  width: 2px;
  height: 28vh;
  background: linear-gradient(180deg, transparent, var(--beam) 75%, #ffffff);
  transform: translateY(-35vh);
  animation-name: beam-y;
}

/* Horizontal beams */
.bg-fx__beam:nth-child(1) { --y: 16%; --dur: 9s;  --delay: -2s; }
.bg-fx__beam:nth-child(2) { --y: 41%; --dur: 13s; --delay: -7s; --beam: var(--beam-magenta); }
.bg-fx__beam:nth-child(3) { --y: 66%; --dur: 11s; --delay: -4s; --beam: var(--beam-violet); }
.bg-fx__beam:nth-child(4) { --y: 87%; --dur: 15s; --delay: -11s; }
/* Vertical beams */
.bg-fx__beam:nth-child(5) { --x: 12%; --dur: 12s; --delay: -5s; --beam: var(--beam-magenta); }
.bg-fx__beam:nth-child(6) { --x: 58%; --dur: 16s; --delay: -1s; }
.bg-fx__beam:nth-child(7) { --x: 86%; --dur: 10s; --delay: -8s; --beam: var(--beam-violet); }

/* Soft glow following the mouse (moved by main.js, desktop only) */
.bg-fx__cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cursor-glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}

.bg-fx__cursor.is-active {
  opacity: 1;
}


/* ==========================================================================
   4. UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.mono {
  font-family: var(--font-mono);
}

/* Hidden visually but still read by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
  color: var(--color-on-accent);
}

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


/* ==========================================================================
   5. BUTTONS, TAGS, CARDS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;               /* comfortable touch target */
  padding: var(--space-3) var(--space-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Light sweep: a diagonal shine crosses the button on hover */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  z-index: -1;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

/* z-index -1 inside an isolated button = above its background, below its text */
.btn:hover::after {
  animation: shine 0.8s var(--ease);
}

/* Neon gradient button */
.btn--primary {
  background: var(--gradient-button);
  color: var(--color-on-accent);
  box-shadow: var(--glow-accent);
}

.btn--primary:hover {
  color: var(--color-on-accent);
  box-shadow: var(--glow-accent-strong);
}

/* Neon outline button */
.btn--outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: inset 0 0 12px var(--color-accent-soft);
}

.btn--outline:hover {
  background: var(--color-accent-soft);
  box-shadow: var(--glow-accent), inset 0 0 12px var(--color-accent-soft);
}

.btn--ghost {
  color: var(--color-text);
}

.btn--ghost:hover {
  color: var(--color-accent);
  text-shadow: var(--glow-text);
}

.btn--small {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Tech / skill badges */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Glassy card with a neon border that lights up on hover */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background-color var(--duration) var(--ease);
}

.card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
  box-shadow: var(--shadow-card), var(--glow-accent);
}

.tag {
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

/* --- Neon frame around pictures ---------------------------------------
   A ring of neon light that runs around the edge of a picture.
   How it works: ::before is filled with a rotating conic (colour-wheel)
   gradient, and a CSS mask cuts out the middle, leaving only a thin ring.
   The rotation animates the --neon-angle custom property; browsers that
   can't animate it just show a still neon ring. */
@property --neon-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.neon-frame {
  position: relative;
  box-shadow:
    0 0 14px color-mix(in srgb, var(--beam-cyan) 45%, transparent),
    0 0 30px color-mix(in srgb, var(--beam-magenta) 25%, transparent);
  transition: box-shadow var(--duration) var(--ease);
}

.neon-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2px;                      /* thickness of the ring */
  border-radius: inherit;
  background: conic-gradient(from var(--neon-angle),
    var(--beam-cyan), var(--beam-violet), var(--beam-magenta), var(--beam-cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: neon-spin 4s linear infinite;
  pointer-events: none;
}

/* Brighter glow when the picture (or its card) is hovered */
.neon-frame:hover,
.project:hover .neon-frame {
  box-shadow:
    0 0 20px color-mix(in srgb, var(--beam-cyan) 65%, transparent),
    0 0 44px color-mix(in srgb, var(--beam-magenta) 40%, transparent);
}

/* Spotlight: a soft light follows the mouse over a card.
   main.js sets --mx / --my (mouse position) and the .is-lit class. */
.card,
.timeline__card {
  position: relative;
}

.card::after,
.timeline__card::after,
.highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.is-lit::after {
  opacity: 1;
}

/* 3D tilt: project and education cards lean towards the mouse.
   main.js sets --rx / --ry (rotation); --lift raises the card on hover. */
.project,
.edu {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
}

.project.is-lit,
.edu.is-lit {
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform 0.08s linear;
}


/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

/*
  The blurred background lives on a pseudo-element on purpose: a
  backdrop-filter directly on .site-header would make it the containing
  block for the position: fixed mobile menu and squash the menu to 64px.
*/
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color var(--duration) var(--ease);
}

/* Added by JS once the user scrolls: a thin neon line under the header */
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 10px 30px -18px var(--color-accent-3);
}

/* Scroll progress bar (width set by main.js through --progress: 0 → 1) */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--gradient-neon);
  box-shadow: 0 0 10px var(--beam-violet);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

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

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--color-heading);
  letter-spacing: 0.06em;
  text-shadow: var(--glow-text);
}

.nav__logo .mono {
  color: var(--color-accent-2);
  font-weight: 500;
}

/* --- Hamburger button --- */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 110;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  box-shadow: var(--glow-accent);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

/* Bars morph into an "X" when the menu is open */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile menu panel (slides in from the right) --- */
.nav__menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--bg-glow-1), transparent 70%),
    var(--color-bg-alt);
  transform: translateX(100%);
  /* visibility hidden = links can't be tabbed to while the menu is closed */
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s;
}

.nav__menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.nav__link .mono {
  color: var(--color-accent-2);
  font-size: 0.85em;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-accent);
  text-shadow: var(--glow-text);
}

/* Glowing underline for the section currently in view */
.nav__link.is-active {
  box-shadow: inset 0 -2px 0 var(--color-accent), 0 6px 12px -8px var(--color-accent);
}

/* --- Language switcher + theme toggle wrapper --- */
.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Segmented control: [EN|PT|FR] */
.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.lang-switch__btn {
  min-width: 44px;
  min-height: 38px;                 /* with the 3px padding: 44px touch target */
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.lang-switch__btn:hover {
  color: var(--color-accent);
}

.lang-switch__btn[aria-pressed="true"] {
  color: var(--color-on-accent);
  background: var(--color-accent);
  box-shadow: var(--glow-accent);
}

/* --- Theme toggle --- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

/* Show the sun in dark mode (click → light) and the moon in light mode */
:root[data-theme="light"] .icon--sun,
:root:not([data-theme="light"]) .icon--moon {
  display: none;
}


/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column-reverse;   /* photo on top on phones */
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-7);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--space-7);
}

/* Terminal-style intro line with a blinking cursor */
.hero__intro {
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-accent);
  text-shadow: var(--glow-text);
}

.hero__intro::before {
  content: "> ";
  color: var(--color-accent-2);
}

.hero__intro::after {
  content: "_";
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

/* Name in a neon gradient (solid colour fallback for older browsers) */
.hero__name {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--color-heading);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__name {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* drop-shadow follows the letter shapes, unlike text-shadow here */
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
  }
}

.hero__headline {
  margin-top: var(--space-5);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.hero__sep {
  color: var(--color-accent-2);
  margin-inline: var(--space-1);
  text-shadow: var(--glow-accent-2);
}

.hero__tagline {
  max-width: 540px;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Boot-up sequence: the hero parts power on one after another */
.hero__content > *,
.hero__photo-wrap {
  animation: boot 0.9s var(--ease) backwards;
}

.hero__intro    { animation-delay: 0.1s; }
.hero__name     { animation-delay: 0.25s; }
.hero__headline { animation-delay: 0.45s; }
.hero__tagline  { animation-delay: 0.6s; }
.hero__actions  { animation-delay: 0.75s; }

/* Photo with a slowly spinning neon ring behind it; after booting up
   it keeps floating gently */
.hero__photo-wrap {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  border-radius: 50%;
  animation:
    boot 0.9s var(--ease) 0.3s backwards,
    float 6s ease-in-out 1.3s infinite;
}

.hero__photo-wrap::before,
.hero__photo-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #22d3ee, #a855f7, #ff2bd6, #22d3ee);
  animation: spin 10s linear infinite;
}

/* Soft outer glow */
.hero__photo-wrap::before {
  inset: -14px;
  filter: blur(18px);
  opacity: 0.7;
}

/* Crisp ring */
.hero__photo-wrap::after {
  inset: -4px;
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-bg);
  background: var(--color-surface-solid);
}


/* ==========================================================================
   8. SECTIONS (shared)
   ========================================================================== */
.section {
  padding-block: var(--space-8);
}

.section__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section__title .mono {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--color-accent-2);
  text-shadow: var(--glow-accent-2);
}

/* Neon line after each section title that fades out */
.section__title::after {
  content: "";
  flex: 1;
  min-width: 40px;
  max-width: 280px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  box-shadow: 0 0 8px var(--color-accent-soft);
}

/* When a section scrolls in: the neon line draws itself and the
   number flickers on like a neon sign */
.js .reveal .section__title::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.3s;
}

.js .reveal.is-visible .section__title::after {
  transform: scaleX(1);
}

.reveal.is-visible .section__title .mono {
  animation: flicker 1.4s linear;
}

/* Children of .stagger containers appear one after another.
   main.js gives each child its position in --i (0, 1, 2 …). */
.js .reveal.is-visible .stagger > * {
  animation: rise 0.7s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}


/* ==========================================================================
   9. ABOUT
   ========================================================================== */
.about {
  display: grid;
  gap: var(--space-6);
}

.about__text p + p {
  margin-top: var(--space-4);
}

.about__text strong {
  color: var(--color-accent);
  font-weight: 600;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-content: start;
}

.highlight {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Neon gradient bar on the left edge */
.highlight::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 0 12px var(--color-accent);
}

.highlight__value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: var(--glow-text);
}

.highlight__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}


/* ==========================================================================
   10. EXPERIENCE TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding-left: var(--space-6);
}

/* The vertical neon line (cyan → violet → magenta) */
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, #22d3ee, #a855f7, #ff2bd6);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* A glowing "data pulse" travelling down the line */
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px 2px var(--beam-cyan), 0 0 20px 6px var(--beam-magenta);
  animation: travel 5s linear infinite;
}

.timeline__item {
  position: relative;
}

/* Glowing dot on the line for each entry */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: calc(-1 * var(--space-6) + 1px);
  width: 14px;
  height: 14px;
  background: var(--color-bg);
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  box-shadow: var(--glow-accent);
}

.timeline__card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.timeline__card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
  box-shadow: var(--shadow-card), var(--glow-accent);
}

.timeline__role {
  font-size: var(--fs-md);
  font-weight: 700;
}

.timeline__at {
  color: var(--color-accent);
  font-weight: 600;
}

.timeline__meta {
  margin-top: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.timeline__list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.timeline__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--fs-sm);
}

/* Custom bullet: small neon arrow */
.timeline__list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--color-accent-2);
}

.timeline__card .tags {
  margin-top: var(--space-4);
}


/* ==========================================================================
   11. EDUCATION
   ========================================================================== */
.edu-grid {
  display: grid;
  gap: var(--space-5);
}

.edu {
  padding: var(--space-5);
}

.edu__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  filter: drop-shadow(0 0 6px var(--color-accent));
}

.edu__degree {
  font-size: var(--fs-md);
  font-weight: 700;
}

.edu__school {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.edu__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-accent);
}

/* Pulsing neon dot for "In progress" */
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}


/* ==========================================================================
   12. SKILLS
   ========================================================================== */
.skills {
  display: grid;
  gap: var(--space-4);
}

.skill-group {
  padding: var(--space-5);
}

.skill-group__title {
  margin-bottom: var(--space-4);
  font-size: var(--fs-base);
  font-weight: 600;
}


/* ==========================================================================
   13. PROJECTS
   ========================================================================== */
.projects {
  display: grid;
  gap: var(--space-5);
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project:hover {
  --lift: -4px;
}

/* The screenshot sits inside the card with a little space around it,
   so its neon frame (.neon-frame, added by main.js) is fully visible */
.project__media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: var(--space-3) var(--space-3) 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

/* Purple tint over the screenshot that fades on hover */
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 40%, rgba(88, 28, 135, 0.45));
  transition: opacity var(--duration) var(--ease);
}

.project:hover .project__media::after {
  opacity: 0;
}

.project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* "Coming soon" badge on top of the image */
.project__status {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 3;                        /* above the tint and the neon frame */
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #ffffff;
  background: #c026d3;               /* magenta, 4.9:1 with white text */
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.6);
}

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-4);
  padding: var(--space-5);
}

.project__title {
  font-size: var(--fs-md);
  font-weight: 700;
}

.project__desc {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}


/* ==========================================================================
   14. CONTACT & FORM
   ========================================================================== */
.contact {
  display: grid;
  gap: var(--space-6);
}

.contact__heading {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.contact__info > p {
  color: var(--color-text-muted);
}

.contact__list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.contact__list .icon {
  color: var(--color-accent);
  filter: drop-shadow(0 0 5px var(--color-accent));
}

.contact__list a {
  color: var(--color-text);
  word-break: break-word;
}

.contact__list a:hover {
  color: var(--color-accent);
  text-shadow: var(--glow-text);
}

.contact-form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-heading);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-base);     /* 16px stops iOS from zooming in on focus */
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

/* Neon glow on the field being typed in */
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

/* Invalid fields (aria-invalid is set by main.js) */
.form-field [aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-error {
  min-height: 1.2em;
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.form-status {
  min-height: 1.5em;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.form-status.is-success {
  color: var(--color-accent);
}

.form-status.is-error {
  color: var(--color-error);
}


/* ==========================================================================
   15. FOOTER, SUPPORTER LOGOS & BACK-TO-TOP
   ========================================================================== */
.site-footer {
  position: relative;
  padding-block: var(--space-6);
  background: color-mix(in srgb, var(--color-bg-alt) 85%, transparent);
}

/* Neon gradient line on top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--gradient-neon);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
}

/* --- Supporter logos (Erasmus+ / EU, Youth and Lifelong Learning Foundation) --- */
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.partners__title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

/* The logos have white/coloured backgrounds, so each sits on a white
   panel: this looks intentional in dark mode and blends in light mode. */
.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: 96px;
  padding: var(--space-2) var(--space-4);
  background: #ffffff;
  border-radius: var(--radius);      /* neon ring + glow come from .neon-frame */
}

.partners__logo {
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
}

/* The square logo is shown larger so its text is as readable as the EU one */
.partners__logo--square {
  height: 78px;
  border-radius: var(--radius-sm);
}

.site-footer__inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.social {
  display: flex;
  gap: var(--space-2);
}

.social__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.social__link:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: var(--glow-accent);
}

.back-to-top {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--color-on-accent);
  background: var(--gradient-button);
  border-radius: var(--radius-full);
  box-shadow: var(--glow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              visibility var(--duration),
              box-shadow var(--duration) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: var(--glow-accent-strong);
}


/* ==========================================================================
   16. SCROLL ANIMATIONS + KEYFRAMES
   Content is only hidden when JS is running (html.js), so the page is
   still fully readable if JavaScript fails.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@keyframes blink {
  50% { opacity: 0; }
}

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

/* Beams cross the screen in the first ~60% of their cycle, then wait
   off-screen, so they pass by now and then rather than all the time */
@keyframes beam-x {
  0%        { transform: translateX(-40vw); }
  60%, 100% { transform: translateX(110vw); }
}

@keyframes beam-y {
  0%        { transform: translateY(-35vh); }
  60%, 100% { transform: translateY(110vh); }
}

@keyframes neon-spin {
  to { --neon-angle: 360deg; }
}

@keyframes grid-drift {
  to { transform: translateY(48px); }
}

@keyframes breathe {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, 2%) scale(1.06); }
  100% { transform: translate(-2%, 3%) scale(1.02); }
}

@keyframes boot {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    filter: blur(4px);
  }
}

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

@keyframes shine {
  to { transform: translateX(450%) skewX(-20deg); }
}

@keyframes travel {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

/* Neon sign switching on */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57% { opacity: 0.2; text-shadow: none; }
  20%, 24%, 55%, 100%         { opacity: 1; }
}


/* ==========================================================================
   17. MEDIA QUERIES
   ========================================================================== */

/* --- Small tablets (≥ 600px) --- */
@media (min-width: 600px) {
  :root {
    --container-pad: 1.5rem;
  }

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

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

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- Tablets (≥ 768px) --- */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-7);
  }

  .hero__photo {
    width: 240px;
    height: 240px;
  }

  .section {
    padding-block: var(--space-9);
  }

  .timeline {
    padding-left: var(--space-7);
  }

  .timeline__item::before {
    left: calc(-1 * var(--space-7) + 1px);
  }

  .contact {
    grid-template-columns: 1fr;
    max-width: 44rem;
    align-items: start;
    gap: var(--space-7);
  }

  .back-to-top {
    right: var(--space-6);
    bottom: var(--space-6);
  }
}

/* --- Desktops (≥ 1024px): full horizontal navigation ---
   (the hamburger stays until here because Portuguese/French labels are
   longer; keep this value in sync with initMobileNav() in main.js) */
@media (min-width: 1024px) {
  :root {
    --container-pad: 2rem;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    flex-direction: row;
    gap: var(--space-4);
    padding: 0;
    background: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav__list {
    flex-direction: row;
    gap: var(--space-1);
  }

  .nav__link {
    font-size: var(--fs-sm);
    padding-inline: var(--space-2);
  }

  /* Hide the "01." numbers in the nav until there's room for them */
  .nav__link .mono {
    display: none;
  }

  .nav__controls {
    gap: var(--space-2);
  }

  .lang-switch__btn {
    min-width: 36px;
    min-height: 30px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .hero__photo {
    width: 280px;
    height: 280px;
  }

  .about {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-7);
  }

  .highlights {
    grid-template-columns: 1fr;
  }

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

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

/* --- Wide screens (≥ 1200px): room for the nav numbers again --- */
@media (min-width: 1200px) {
  .nav__link .mono {
    display: inline;
  }

  .nav__link {
    padding-inline: var(--space-3);
  }
}


/* ==========================================================================
   18. REDUCED MOTION
   Users who ask their OS for less motion get no animations (the neon ring
   stops spinning, the cursor stops blinking) and no smooth scroll.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  /* No moving background, pulse or shine at all */
  .bg-fx,
  .timeline::after,
  .btn::after {
    display: none;
  }

  body::before,
  body::after {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .reveal .section__title::after {
    transform: none;
  }

  .btn:hover,
  .tag:hover,
  .project,
  .edu {
    transform: none;
  }
}
