/* ===========================
   DESIGN TOKENS
   =========================== */

:root {
  /* Colors — Light Mode */
  --bg: #F8F9FB;
  --text: #181A1B;
  --text-muted: #555;
  --accent: #4CAF50;
  --accent-hover: #43A047;
  --accent-light: rgba(76, 175, 80, 0.1);
  --card-bg: #FFFFFF;
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(248, 249, 251, 0.85);
  --scroll-track: #f2f2f2;
  --scroll-thumb: #ccc;
  --divider: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-body: 'Space Grotesk', sans-serif;
  --font-accent: 'Spectral', serif;

  /* Spacing (8pt system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --duration-slow: 400ms;
}

/* Dark Mode */
.dark-mode {
  --bg: #181A1B;
  --text: #F0F1F2;
  --text-muted: #999;
  --accent-light: rgba(76, 175, 80, 0.15);
  --card-bg: #242628;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(24, 26, 27, 0.85);
  --scroll-track: #242628;
  --scroll-thumb: #444;
  --divider: rgba(255, 255, 255, 0.08);
}


/* ===========================
   RESET & BASE
   =========================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--duration-slow) var(--ease),
              color var(--duration-slow) var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul {
  list-style: none;
}


/* ===========================
   SCROLLBAR
   =========================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 8px;
}


/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: var(--space-5); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-3);
  color: var(--text);
}

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


/* ===========================
   LAYOUT
   =========================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  width: 100%;
}

section {
  padding: var(--space-8) 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}


/* ===========================
   SCROLL PROGRESS BAR
   =========================== */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}


/* ===========================
   NAVBAR
   =========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  transition: background var(--duration-slow) var(--ease);
}

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

.nav-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text) !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hamburger toggle (CSS-only) */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-3) var(--space-5);
    gap: var(--space-2);
    border-bottom: 1px solid var(--divider);
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


/* ===========================
   DARK MODE TOGGLE
   =========================== */

.switch {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-block;
  width: 52px;
  height: 28px;
  z-index: 200;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: background-color var(--duration-slow) var(--ease);
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: transform var(--duration-slow) var(--ease);
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider::before {
  transform: translateX(24px);
}

input:focus-visible + .slider {
  box-shadow: 0 0 0 2px var(--accent);
}

.slider.round {
  border-radius: 28px;
}

.slider.round::before {
  border-radius: 50%;
}


/* ===========================
   HERO SECTION
   =========================== */

.hero {
  position: relative;
  padding: var(--space-8) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.profile-pic {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 6px solid var(--divider);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.profile-pic:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(76, 175, 80, 0.2);
}

.name {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.subtitle {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.credential {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

/* Now card */
.now-card {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--accent-light);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 10px;
  display: inline-block;
  max-width: 420px;
}

.now-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.now-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.now-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.now-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.now-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: var(--space-3);
  position: relative;
}

.now-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 768px) {
  .now-card {
    max-width: 100%;
  }
}


.hero-cta {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.background-shapes {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-7) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-5);
  }

  .name {
    font-size: 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .profile-pic {
    width: 200px;
    height: 200px;
  }
}


/* ===========================
   BUTTONS
   =========================== */

.btn-accent {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  color: #fff !important;
}

.btn-ghost {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: transparent;
  color: var(--accent) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.btn-ghost:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}


/* ===========================
   ABOUT SECTION
   =========================== */

.about-content {
  max-width: 75ch;
  margin-bottom: var(--space-6);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Tech icon rows */
.icon-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.icon-row img {
  height: 36px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

.icon-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .icon-row {
    gap: var(--space-4);
  }

  .icon-row img {
    height: 28px;
  }
}


/* ===========================
   CARDS
   =========================== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card__header {
  padding: var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--divider);
}

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

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.card__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.card__img {
  object-fit: scale-down;
  max-width: 50%;
  max-height: 120px;
  margin: var(--space-3) auto;
}

.card__img--small {
  max-width: 25%;
  max-height: 60px;
  margin: var(--space-3) auto;
}

.card__img--large {
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  padding: var(--space-3);
}

.card__actions {
  margin-top: auto;
  padding-top: var(--space-3);
}

.card__list {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.card__list li::before {
  content: "\2022";
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.card__list {
  padding-left: 1em;
}

/* Card link wrapper (for contact cards) */
a.card-link {
  text-decoration: none;
  color: inherit;
}

.card--clickable {
  cursor: pointer;
}

.card--clickable:hover .card__title {
  color: var(--accent);
}

/* GitHub icon on project/paper cards */
.github-icon {
  width: 32px;
  height: 32px;
  opacity: 0.5;
  transition: opacity var(--duration) var(--ease);
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.github-icon:hover {
  opacity: 1;
}

.card__img-wrapper {
  position: relative;
}


/* ===========================
   EXPERIENCE TIMELINE
   =========================== */

.timeline {
  position: relative;
  padding: var(--space-3) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--divider);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-dot-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  flex-shrink: 0;
  transition: border-color var(--duration-slow) var(--ease);
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: var(--space-4);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

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

.timeline-entry--left .timeline-card {
  text-align: right;
}

.timeline-entry--left .timeline-card .card__list {
  text-align: left;
}

.timeline-entry--left .timeline-logo {
  margin-left: auto;
}

.timeline-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  max-width: 120px;
  margin-bottom: var(--space-3);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: var(--space-2) 0 0;
}

.timeline-description {
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 19px;
    transform: none;
  }

  .timeline-entry {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
  }

  .timeline-entry--left .timeline-right,
  .timeline-entry--right .timeline-left {
    display: none;
  }

  .timeline-entry--left .timeline-dot-wrapper { order: 1; }
  .timeline-entry--left .timeline-left { order: 2; flex: 1; text-align: left; }
  .timeline-entry--left .timeline-left .timeline-logo { margin-left: 0; }

  .timeline-entry--right .timeline-dot-wrapper { order: 1; }
  .timeline-entry--right .timeline-right { order: 2; flex: 1; }

  .timeline-dot-wrapper {
    width: 40px;
    flex-shrink: 0;
  }
}


/* ===========================
   ARTICLES SECTION
   =========================== */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
}

.article-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--divider);
}

.article-item:last-child {
  border-bottom: none;
}

.article-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--duration) var(--ease);
}

.article-link:hover {
  color: var(--accent);
}

.article-desc {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
  font-style: italic;
}

.platform-logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-3);
}

.article-card--medium {
  border-top: 3px solid #000;
}

.article-card--substack {
  border-top: 3px solid #FF6719;
}


/* ===========================
   SPEAKING SECTION
   =========================== */

.speaking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ticket {
  display: flex;
  border: 2px dashed var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: rotate(-0.4deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.ticket:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.ticket__stub {
  min-width: 180px;
  padding: var(--space-4);
  border-right: 2px dashed var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.ticket__stub-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.ticket__stub-event {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.ticket__stub-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-accent);
  line-height: 1.6;
}

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

.ticket__speaker-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.ticket__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.ticket__abstract {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-accent);
  line-height: 1.6;
}

.ticket__links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.ticket__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}

@media (max-width: 600px) {
  .ticket {
    flex-direction: column;
    transform: none;
  }

  .ticket__stub {
    border-right: none;
    border-bottom: 2px dashed var(--card-border);
    min-width: unset;
  }
}


/* ===========================
   CONTACT SECTION
   =========================== */

.contact-card .card__img {
  max-width: 40%;
  max-height: 60px;
  margin-top: var(--space-3);
}

.contact-card .card__body {
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.contact-card .card__title {
  font-size: 1rem;
  margin: 0;
}


/* ===========================
   SECTION HEADINGS
   =========================== */

section h2 {
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-2);
  border-radius: 2px;
}


/* ===========================
   FOOTER
   =========================== */

footer {
  text-align: center;
  padding: var(--space-6) 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--divider);
}


/* ===========================
   MOBILE RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-3);
  }

  section {
    padding: var(--space-7) 0;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

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

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

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

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


/* ===========================
   SVG SHAPE ANIMATIONS
   =========================== */

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

.background-shapes circle,
.background-shapes rect,
.background-shapes polygon {
  animation: float 6s ease-in-out infinite;
}

.background-shapes *:nth-child(odd) {
  animation-duration: 8s;
}

.background-shapes *:nth-child(3n) {
  animation-duration: 10s;
  animation-delay: 1s;
}
