/* =========================
   GLOBAL STYLES
========================= */
:root {
  --main-bg: rgb(17 19 24);
  --body-text: rgb(226 226 233);
  --sec-text: rgb(196 198 208);
  --atv-btn: rgb(40 71 119);
  --atv-btn-text: rgb(214 227 255);
  --box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
  --iatv-btn: rgb(68 71 78);
  --iatv-btn-text: rgb(196 198 208);
  --iatv-btn-border: rgb(68 71 78);
  --primary: rgb(170 199 255);
  --cardBg: rgb(40 42 47);
  --outline: rgb(142 144 153);

  /* GitHub style language & framework colors */
  --lang-html: #e34c26;
  --lang-css: #563d7c;
  --lang-js: #f1e05a;
  --lang-java: #b07219;
  --lang-android: #3ddc84;
  --lang-osm: #7fc8a9;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--main-bg);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section,
.section {
  padding: 30px 0;
  scroll-margin-top: 80px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: var(--body-text);
}

h3 {
  font-family: 'Google Sans Flex', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* =========================
   HERO ANIMATED TEXT
========================= */
.hero {
  height: 100vh;
  position: relative;
}

.hero-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  position: relative;

  padding-inline: 50px;
  padding-block: 24px;
  margin-top: 120px;

  background: rgba(28, 27, 31, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 24px;
  box-shadow: none;

  animation: hero-inner-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes hero-inner-scroll {
  to {
    width: calc(100% - 32px);
    max-width: 500px;
    padding-block: 10px;
    margin-top: 12px;
    background: rgba(28, 27, 31, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow:
      0px 8px 24px rgba(0, 0, 0, 0.35),
      0px 1px 3px rgba(0, 0, 0, 0.2);
  }
}

.hero-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;

  animation: hero-brand-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes hero-brand-scroll {
  to {
    height: 40px;
  }
}

.hero-img-cont {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  border: 4px solid var(--outline);
  aspect-ratio: 1/1;
  cursor: pointer;
  overflow: hidden;
  left: 50%;
  transform: translate(-50%, -50px);
  transition: border-color 0.2s ease;

  animation: hero-img-cont-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes hero-img-cont-scroll {
  to {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border-width: 1px;
    left: 0%;
    transform: translate(calc(-50% - 12px), 03px);
  }
}

.hero-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(70px);

  animation: hero-text-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes hero-text-scroll {
  to {
    transform: translateY(0px);
  }
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Quicksand', serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.2s ease;

  animation: logo-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes logo-scroll {
  to {
    font-size: 1.6rem;
  }
}

.logo .hash {
  color: var(--outline);
  display: inline-block;
  margin-right: 2px;
  transform: rotate(-90deg);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: logo-hash-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes logo-hash-scroll {
  to {
    transform: rotate(0deg);
  }
}

.logo .name {
  color: var(--body-text);
}

.logo-sub {
  margin-top: 6px;
  color: var(--sec-text);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 1;
  max-height: 24px;
  overflow: hidden;
  transition: opacity 0.15s linear;

  animation: logo-sub-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes logo-sub-scroll {
  60% {
    max-height: 0px;
  }

  62.5%,
  100% {
    opacity: 0;
    max-height: 0px;
  }
}

.top-contact-btn {
  position: absolute;
  right: -43PX;
  top: 50%;

  transform: translateY(-50%) scale(0.8);
  opacity: 0;
  pointer-events: none;

  background-color: var(--iatv-btn);
  color: var(--iatv-btn-text);
  border: 1px solid var(--iatv-btn-border);
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  height: auto;
  min-width: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-radius 0.4s cubic-bezier(0.2, 0, 0, 1),
    border-color 0.4s cubic-bezier(0.2, 0, 0, 1);

  animation: top-btn-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 320px;
}

@keyframes top-btn-scroll {
  60% {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
  }

  100% {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

.top-contact-btn .label-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1px;
  overflow: hidden;
  white-space: nowrap;

  transition:
    max-width 0.4s cubic-bezier(0.2, 0, 0, 1),
    opacity 0.2s cubic-bezier(0.2, 0, 0, 1),
    margin-left 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.top-contact-btn .ti {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.top-contact-btn:hover {
  background-color: var(--cardBg);
  border-color: var(--iatv-btn-border);
  padding: 16px;
}

.top-contact-btn:hover .label-text {
  max-width: 80px;
  opacity: 1;
  margin-left: 6px;
}

/* social buttons */
.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  animation: hero-socials-scroll linear both;
  animation-timeline: scroll();
  animation-range: 0px 150px;
}

@keyframes hero-socials-scroll {
  to {
    opacity: 0;
    transform: scale(0.6);
    visibility: hidden;
    margin-top: 0px;
    height: 0px;
    overflow: hidden;
  }
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--iatv-btn);
  color: var(--iatv-btn-text);
  border: 1px solid var(--iatv-btn-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-btn:hover {
  background-color: var(--atv-btn);
  color: var(--atv-btn-text);
  border-color: transparent;
  transform: translateY(-2px);
}


.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--iatv-btn-text);
  z-index: 2;
}

.scroll-cue-track {
  width: 26px;
  height: 42px;
  border-radius: 100px;
  border: 1.5px solid var(--iatv-btn-border);
  position: relative;
}

.scroll-cue-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--iatv-btn-text);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    top: 24px;
    opacity: 0;
  }

  70% {
    opacity: 1;
  }

  100% {
    top: 6px;
    opacity: 0;
  }
}

.scroll-cue-text {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* =========================
   BOTTOM FLOATING NAV
========================= */

/* Expressive Button Group Container */
.expressive-button-group {
  position: fixed;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: self-start;
  flex-direction: column;
  z-index: 99999;
  gap: 8px;
  /* Slight gap allowing the expressive morphing to stand out */
}

/* Base Button Styles */
.expressive-btn {
  background-color: var(--iatv-btn);
  color: var(--iatv-btn-text);
  border: 1px solid var(--iatv-btn-border);
  padding: 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-radius 0.4s cubic-bezier(0.2, 0, 0, 1),
    border-color 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.expressive-btn .label-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1px;
  overflow: hidden;
  white-space: nowrap;

  /* Handles the smooth text reveal */
  transition:
    max-width 0.4s cubic-bezier(0.2, 0, 0, 1),
    opacity 0.2s cubic-bezier(0.2, 0, 0, 1),
    margin-left 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.expressive-btn .ti {
  font-size: 1.25rem;
  /* Adjust icon size if needed */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Standard M3 Expressive Structural Shapes (Unselected) */
.expressive-button-group .expressive-btn:first-child {
  border-radius: 24px 24px 8px 8px;
}

.expressive-button-group .expressive-btn:not(:first-child):not(:last-child) {
  border-radius: 8px;
}

.expressive-button-group .expressive-btn:last-child {
  border-radius: 8px 8px 24px 24px;
}

.expressive-button-group .expressive-btn.active {
  background-color: var(--atv-btn);
  color: var(--atv-btn-text);
  border-color: transparent;
  border-radius: 24px !important;
  box-shadow: var(--box-shadow);
  padding: 0 24px;
  cursor: none;
}

.expressive-button-group .expressive-btn.active .label-text {
  max-width: 120px;
  /* Give it enough room to fully expand safely */
  opacity: 1;
  margin-left: 8px;
}

.expressive-button-group .expressive-btn:not(.active):hover {
  background-color: var(--cardBg);
  border-color: var(--iatv-btn-border);
}

.expressive-button-group .expressive-btn:not(.active):hover .label-text {
  max-width: 120px;
  /* Give it enough room to fully expand safely */
  opacity: 1;
  margin-left: 8px;
}



/* =========================
   PROFESSIONAL HERO
========================= */


/* Animations */

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

/* Responsive */

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

#about p {
  max-width: 800px;
  margin: 0 auto 15px auto;
  text-align: center;
  color: var(--sec-text);
}

.contains {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px;
}

.list-container {
  gap: 2px;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  width: 100%;
}

.list-card {
  background-color: var(--iatv-btn);
  text-decoration: none;
  padding: 8px 20px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.list-card:hover {
  background-color: var(--cardBg);
  color: var(--atv-btn-text);
  border-radius: 24px !important;
  z-index: 5;
  transform: translateY(-6px) scale(1.01);
}

.list-card .ti {
  margin-right: 8px;
}

.list-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.list-item img {
  width: 35px;
  height: 35px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.list-item img:hover {
  transform: translateY(-6px) scale(1.15);
}

.list-container .list-card:first-child {
  border-radius: 24px 24px 8px 8px;
}

.list-container .list-card:not(:first-child):not(:last-child) {
  border-radius: 8px;
}

.list-card:last-child {
  border-radius: 8px 8px 24px 24px;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-family: "Quicksand", sans-serif;

}

/* =========================
   PROJECTS
========================= */

.projects-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.projects-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  padding: 20px 7.5% 30px;
  box-sizing: border-box;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.projects-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.project-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 6px;
  align-items: stretch;
  transform: scale(0.92);
  opacity: 0.6;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-slide.active-slide {
  transform: scale(1);
  opacity: 1;
}

.project-slide:hover {
  border-color: rgba(223, 181, 79, 0.3);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  height: 100%;
  padding: 35px;
  border-radius: 24px 8px 8px 24px;
  border: 1px solid var(--outline);
  background-color: var(--cardBg);
  box-shadow: var(--box-shadow);
}

.project-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.project-desc {
  font-size: 15px;
  color: var(--sec-text);
  line-height: 1.6;
  margin: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--body-text);
  font-weight: 500;
}

.tech-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.tech-dot.html {
  background-color: var(--lang-html);
}

.tech-dot.css {
  background-color: var(--lang-css);
}

.tech-dot.js {
  background-color: var(--lang-js);
}

.tech-dot.java {
  background-color: var(--lang-java);
}

.tech-dot.android {
  background-color: var(--lang-android);
}

.tech-dot.osm {
  background-color: var(--lang-osm);
}

.project-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 8px 16px;
  background: var(--iatv-btn);
  border: 1px solid var(--iatv-btn-border);
  color: var(--iatv-btn-text);
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-link:hover {
  background: var(--atv-btn);
  color: var(--atv-btn-text);
  transform: translateY(-3px);
}

.project-visual {
  position: relative;
  border-radius: 8px 24px 24px 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--iatv-btn-border);
  background: #0b0f19;
}



.project-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-visual:hover .project-screenshot {
  transform: scale(1.05);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  width: 100%;
}

.slider-btn {
  position: static;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--iatv-btn);
  border: 1px solid var(--iatv-btn-border);
  color: var(--iatv-btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-btn.prev {
  border-radius: 24px 8px 8px 24px;
}

.slider-btn.next {
  border-radius: 8px 24px 24px 8px;
}

.slider-btn:hover {
  background: var(--atv-btn);
  color: var(--atv-btn-text);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(227, 181, 79, 0.3);
}

.carousel-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
  background-color: var(--nav-bg);
  border-radius: 8px;
  border: 1px solid var(--iatv-btn-border);
  padding: 6px 12px;
  height: 50px;
}

.indicator {
  width: 32px;
  height: 8px;
  border-radius: 24px;
  background: var(--iatv-btn-border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.indicator.active {
  width: 12px;
  height: 18px;
  background: var(--sec-text);
  box-shadow: 0 0 10px rgba(227, 181, 79, 0.4);
}


@media (max-width: 768px) {
  .projects-track {
    padding-inline: 5%;
    gap: 16px;
  }

  .project-slide {
    flex: 0 0 90%;
    transform: scale(0.95);
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .project-visual {
    height: 200px;
    order: -1;
    border-radius: 24px 24px 8px 8px;
  }

  .project-content {
    border-radius: 8px 8px 24px 24px;
    padding: 20px;
  }

  .project-links {
    gap: 10px;
  }

  .project-link {
    padding: 8px 12px;
    font-size: 13px;
    gap: 4px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-details-col {
  display: flex;
  flex-direction: column;
}

.contact-info-card {
  background: var(--nav-bg);
  border: 1px solid var(--iatv-btn-border);
  border-radius: 28px;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--box-shadow);
  text-align: left;
}

.contact-info-card .card-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.contact-info-card .card-desc {
  font-size: 15px;
  color: var(--sec-text);
  line-height: 1.6;
  margin: 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--iatv-btn-border);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-item:hover {
  transform: translateY(-3px);
  border-color: var(--outline);
  box-shadow: var(--box-shadow);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--iatv-btn);
  border: 1px solid var(--iatv-btn-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.info-lbl {
  font-size: 12px;
  color: var(--sec-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.info-val {
  font-size: 15px;
  color: var(--body-text);
  font-weight: 500;
}

.m3-contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--cardBg);
  border: 1px solid var(--iatv-btn-border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  box-sizing: border-box;
}

.m3-field {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.m3-input,
.m3-textarea {
  width: 100%;
  padding: 1em;
  font-size: 1em;
  border: 0.1em solid var(--iatv-btn-border);
  border-radius: 24px;
  background-color: transparent;
  color: white;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.m3-textarea::placeholder,
.m3-input::placeholder {
  color: grey;
  transition: all 0.3s ease;
}

.m3-textarea:focus,
.m3-input:focus {
  border-color: white;
}

.m3-textarea:focus::placeholder,
.m3-input:focus::placeholder {
  color: transparent;
}

.m3-textarea {
  height: 200px;
  resize: none;
}

.m3-label {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  color: grey;
  pointer-events: none;
  transition: all 0.3s ease;
}

.m3-input:focus+.m3-label,
.m3-input:not(:placeholder-shown)+.m3-label,
.m3-textarea:focus+.m3-label,
.m3-textarea:not(:placeholder-shown)+.m3-label {
  top: 0.15em;
  left: 1em;
  font-size: 0.8em;
  color: var(--atv-btn);
  background-color: white;
  padding: 0 0.5em;
  border-radius: 24px;
}

/* From Uiverse.io by alexroumi */
.m3-btn-submit {
  padding: 16px 32px;
  border: unset;
  border-radius: 24px;
  color: var(--iatv-btn-text);
  border: 1px solid var(--iatv-btn-border);
  z-index: 1;
  background: var(--iatv-btn);
  position: relative;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 250ms;
  overflow: hidden;
}

.m3-btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 15px;
  background-color: var(--atv-btn);
  z-index: -1;
  transition: all 250ms
}

.m3-btn-submit:hover {
  color: var(--atv-btn-text);
}

.m3-btn-submit:hover::before {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

footer {
  background: var(--cardBg);
  color: var(--body-text);
  text-align: center;
  padding: 25px 0;
}

/* =========================
   SCROLL ANIMATION
========================= */

.fade-in,
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.active,
.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {

  .logo-sub {
    max-height: 50px;
    font-size: 0.80rem;
  }

  .expressive-button-group {
    flex-direction: row;
    left: 0;
    right: 0;
    top: auto;
    bottom: 10px;
    transform: translateY(0);
    justify-content: center;
    width: 100%;
    position: fixed;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  }

  .expressive-button-group.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(25px);
  }

  .expressive-button-group .expressive-btn:first-child {
    border-radius: 24px 8px 8px 24px;
  }

  .expressive-button-group .expressive-btn:last-child {
    border-radius: 8px 24px 24px 8px;
  }

  .expressive-button-group .expressive-btn:not(.active):hover .label-text {
    max-width: 0;
    /* Give it enough room to fully expand safely */
    opacity: 0;
    margin-left: 0;
  }

  .expressive-button-group .expressive-btn:not(.active):hover {
    background-color: #1b1b1f;
    border-color: #44474f;
  }

  .scroll-cue {
    display: none;
  }

}