
/* Fonts, served from the site itself (copied into assets/fonts by npm run build).
   Variable fonts: one file covers every weight. Latin characters only. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin-wght-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Kufi Arabic";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* only the Arabic letters used on the site (made by npm run build) */
  src: url("../fonts/noto-kufi-arabic-subset.woff2") format("woff2");
}

@font-face {
  font-family: "Domine";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/domine-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2");
}

:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Domine",  sans-serif;
  --nav-font: "Quicksand",  sans-serif;
}

:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #3b434a; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #ffbb27; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #000000; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

:root {
  --nav-color: #ffffff;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffbb27; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #c4890f; /* Hover/active link colour in the white mobile menu (a deeper amber so it reads on white) */
}


.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* CV buttons: Download is the primary action, View is the secondary (outline) action */
.btn-download-cv,
.btn-view-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid var(--accent-color);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-download-cv {
  color: #1d1d1d;
  background: var(--accent-color);
}

.btn-download-cv:hover {
  color: #1d1d1d;
  background: color-mix(in srgb, var(--accent-color), #000 12%);
  border-color: color-mix(in srgb, var(--accent-color), #000 12%);
  transform: translateY(-2px);
}

.btn-view-cv {
  color: var(--heading-color);
  background: transparent;
}

.btn-view-cv:hover {
  color: #1d1d1d;
  background: var(--accent-color);
  transform: translateY(-2px);
}

.btn-download-cv:focus-visible,
.btn-view-cv:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  outline-offset: 3px;
}

@media (max-width: 575px) {
  .btn-download-cv,
  .btn-view-cv {
    flex: 1 1 100%;
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .logo .sitename {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  padding-left: 15px;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .header .logo .sitename {
    font-size: 18px;
  }
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 575px) {
  /* Social links are repeated in the footer; hide them here so the header doesn't crowd on phones */
  .header .header-social-links {
    display: none;
  }
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.8);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 13px;
    text-transform: uppercase;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: 0;
    padding: 0;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.footer .footer-name {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  color: var(--heading-color);
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

.footer p {
  font-size: 15px;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer .social-links {
  margin: 0 0 30px 0;
}

.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: none;
}

.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: calc(26px + env(safe-area-inset-right, 0px));
  bottom: -15px;
  z-index: 9990;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));   /* above the WhatsApp button */
}

/*--------------------------------------------------------------
# Fade-up on scroll (elements with data-aos="fade-up"; see main.js)
# Everything is visible by default (for search engines, link previews and visitors
# without JavaScript). Once a visitor starts scrolling, sections still below the screen
# get .aos-pending (hidden, off-screen) and fade in as they come into view.
--------------------------------------------------------------*/
[data-aos].aos-pending {
  opacity: 0;
  transform: translate3d(0, 100px, 0);
  transition: none;
}

[data-aos].aos-animate {
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

[data-aos-delay="100"].aos-animate {
  transition-delay: 0.1s;
}

[data-aos-delay="200"].aos-animate {
  transition-delay: 0.2s;
}

[data-aos-delay="300"].aos-animate {
  transition-delay: 0.3s;
}

/* no stagger on phones, where items are stacked */
@media screen and (max-width: 768px) {
  [data-aos-delay].aos-animate {
    transition-delay: 0s;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 80px 0;
  text-align: center;
  position: relative;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 80px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 60px;
  }
}

@media (max-width: 575px) {
  .container {
    --bs-gutter-x: 2rem;       /* 16px side margins on phones instead of 12px */
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-top: 30px;           /* top/bottom only, so the container's side padding still applies on phones */
  padding-bottom: 30px;
  margin-bottom: 30px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.section-title span {
  position: absolute;
  top: 4px;
  color: color-mix(in srgb, var(--heading-color), transparent 95%);
  left: 0;
  right: 0;
  z-index: 1;
  font-weight: 700;
  font-size: 52px;
  text-transform: uppercase;
  line-height: 1;
}

.section-title p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 575px) {
  .section-title h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .section-title span {
    font-size: 38px;
  }
}

/*--------------------------------------------------------------
# Hero Section (photo in an accent arch, giant name scrolling right to left behind it)
--------------------------------------------------------------*/
.hero {
  /* The screen height, capped: never taller than 2.4x the width (the tallest phones) or 1600px.
     Real screens are unaffected; it stops very tall windows, like the one Google renders pages
     in, from stretching this section to thousands of pixels and pushing the rest out of view. */
  --screen-h: min(100vh, 240vw, 1600px);
  --hero-name-size: clamp(64px, min(11vw, calc(var(--screen-h) * 0.22)), 200px);   /* size of the scrolling name */
  --hero-name-bottom: calc(var(--screen-h) * 0.07);
  --hero-arch-right: 9vw;
  --hero-arch-width: min(27vw, 420px);
  position: relative;
  width: 100%;
  min-height: var(--screen-h);
  padding: 0;
  overflow: hidden;
  background: #0a0e15;
}

/* subtle dot pattern that fades out towards the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}

/* Scrolling name */
.hero .hero-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--hero-name-bottom);
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero .hero-marquee-track {
  display: inline-flex;
  align-items: center;
  animation: hero-marquee 36s linear infinite;
  will-change: transform;
}

.hero .hero-marquee span {
  font-family: var(--heading-font);
  font-size: var(--hero-name-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  padding: 0 0.18em;
}

.hero .hero-marquee span.outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.75);
}

.hero .hero-marquee i {
  font-style: normal;
  font-size: calc(var(--hero-name-size) * 0.42);
  color: var(--accent-color);
  padding: 0 0.25em;
}

/* the track holds the name four times; moving it by half loops seamlessly from right to left */
@keyframes hero-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-marquee-track {
    animation: none;
  }
}

/* Photo standing in a tall accent arch */
.hero .hero-arch {
  position: absolute;
  right: var(--hero-arch-right);
  bottom: 0;
  z-index: 2;
  width: var(--hero-arch-width);
  height: calc(var(--screen-h) * 0.58);
  border-radius: 999px 999px 0 0;
  background: var(--accent-color);
}

.hero .hero-photo {
  position: absolute;
  bottom: 0;
  right: calc(var(--hero-arch-right) + var(--hero-arch-width) / 2);
  z-index: 3;
  width: auto;
  height: min(calc(var(--screen-h) * 0.84), 820px);
  transform: translateX(50%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

/* Text column; the bottom padding keeps it clear of the scrolling name */
.hero .hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: var(--screen-h);
  max-width: min(740px, 54vw);
  padding: 100px 0 calc(var(--hero-name-bottom) + var(--hero-name-size) + 24px) clamp(24px, 5vw, 72px);
  animation: hero-content-in 0.7s ease-out both;
}

@keyframes hero-content-in {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-content {
    animation: none;
  }
}

.hero .hero-greeting {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 18px 0;
  font-size: clamp(40px, min(4.6vw, calc(var(--screen-h) * 0.086)), 76px);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-color);
}

.hero .hero-role {
  margin: 0;
  font-family: var(--nav-font);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.hero .hero-role .sep {
  color: var(--accent-color);
  padding: 0 4px;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .btn-view-cv {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-view-cv:hover {
  color: #1d1d1d;
  border-color: var(--accent-color);
}

.hero .hero-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero .hero-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.hero .hero-social a:hover {
  color: #1d1d1d;
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Shorter laptop screens: a smaller name, and no social buttons (they are in the header) so it all fits */
@media (min-width: 992px) and (max-height: 820px) {
  .hero {
    --hero-name-size: clamp(64px, min(12vw, calc(var(--screen-h) * 0.18)), 200px);
    --hero-name-bottom: calc(var(--screen-h) * 0.06);
  }

  .hero .hero-content {
    padding-top: 96px;
  }

  .hero .hero-social {
    display: none;
  }
}

/* Tablets and phones: text on top, photo and scrolling name underneath */
@media (max-width: 991px) {
  .hero {
    --hero-name-size: clamp(56px, 20vw, 140px);
    --hero-name-bottom: calc(var(--screen-h) * 0.07);
    --hero-photo-height: min(calc(var(--screen-h) * 0.47), 620px);
    min-height: var(--screen-h);
  }

  /* phones: use the screen height with the browser's address bar showing */
  @supports (height: 1svh) {
    .hero {
      --screen-h: min(100svh, 240vw, 1600px);
      --hero-photo-height: min(calc(var(--screen-h) * 0.5), 620px);
    }
  }

  .hero .hero-content {
    min-height: 0;
    max-width: none;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    padding: 100px 20px calc(var(--hero-photo-height) + 16px) 20px;   /* room for the photo below */
  }

  .hero h1 {
    font-size: clamp(30px, 8.2vw, 52px);
    margin-bottom: 10px;
  }

  .hero .hero-actions {
    justify-content: center;
    margin-top: 20px;
  }

  .hero .hero-social {
    display: none;   /* the same links are in the header and footer */
  }

  .hero .hero-arch {
    right: 50%;
    transform: translateX(50%);
    width: min(60vw, 300px);
    height: calc(var(--hero-photo-height) * 0.64);
  }

  .hero .hero-photo {
    right: 50%;
    height: var(--hero-photo-height);
  }
}

@media (max-width: 575px) {
  .hero .hero-role {
    font-size: 16px;
  }

  .hero .hero-role .sep {
    padding: 0 3px;
  }

  .hero .hero-actions a {
    flex: 1 1 auto;
    padding: 10px 14px;
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .hero .hero-actions a {
    flex-basis: 100%;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

.about .content ul a {
  color: var(--default-color);
  word-break: break-word;
}

.about .content ul a:hover {
  color: var(--accent-color);
}

.about .profile-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: 16px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

/*--------------------------------------------------------------
# Collaborations Section (Arabic + English names sliding slowly right to left)
--------------------------------------------------------------*/
.collaborations.dark-background {
  --background-color: #0a0e15;
  padding: 76px 0 84px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.collaborations .collab-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.collaborations .collab-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent-color);
}

.collaborations h2 {
  color: #ffffff;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  margin: 14px 0 48px;
}

/* the moving row fades out at both edges */
.collaborations .collab-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.collaborations .collab-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* main.js adds a second copy of the names and .is-moving, so the loop is seamless */
.collaborations .collab-track.is-moving {
  animation: collab-scroll 70s linear infinite;
}

.collaborations .collab-marquee:hover .collab-track {
  animation-play-state: paused;
}

@keyframes collab-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.collaborations .collab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px clamp(32px, 4vw, 60px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  white-space: nowrap;
}

.collaborations .collab-icon {
  font-size: 24px;
  line-height: 1;
  color: var(--accent-color);
  margin-bottom: 2px;
}

.collaborations .collab-ar {
  font-family: "Noto Kufi Arabic", var(--heading-font);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.collaborations .collab-en {
  font-family: var(--nav-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.collaborations .collab-item:hover .collab-ar {
  color: var(--accent-color);
}

/* visitors who prefer less motion: a still, centred list */
@media (prefers-reduced-motion: reduce) {
  .collaborations .collab-track,
  .collaborations .collab-track.is-moving {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 28px;
  }

  .collaborations .collab-clone {
    display: none;
  }

  .collaborations .collab-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 15px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
  border-radius: 50px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

.resume .resume-item a {
  color: var(--default-color);
}

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

.resume .resume-item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px 20px;
  margin-bottom: 10px;
}

.resume .resume-item-header h4 {
  line-height: 1.3;
}

.resume .resume-item-header .company {
  margin-bottom: 0;
  font-size: 16px;
}

.resume .resume-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.resume .resume-item-meta h5 {
  margin-bottom: 4px;
}

.resume .resume-item-meta .location {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

@media (max-width: 575px) {
  .resume .resume-item-meta {
    align-items: flex-start;
  }
}

.resume .role-projects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px 0;
}

.resume .role-projects-label {
  font-size: 14px;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 4px;
}

.resume .resume-item .role-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
  color: var(--heading-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.resume .resume-item .role-project-chip i {
  color: color-mix(in srgb, var(--accent-color), #000 20%);
}

.resume .resume-item .role-project-chip:hover {
  color: #1d1d1d;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.resume .resume-item .role-project-chip:hover i {
  color: #1d1d1d;
}

/* Shared pill list used for skills and project tech stacks */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 50px;
  color: var(--heading-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects .projects-group-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.projects .projects-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
}

.projects .project-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-top: 3px solid var(--accent-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects .project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.projects .project-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 82%);
}

.projects .project-icon i {
  font-size: 26px;
  line-height: 0;
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}

.projects .project-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 50px;
  color: #1d1d1d;
  background-color: var(--accent-color);
}

.projects .project-client {
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 6px;
}

.projects .project-card h4 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.projects .project-card p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.projects .project-card .tag-list {
  margin-top: auto;
}

.projects .project-card .tag-list li {
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  border-color: transparent;
}

.projects .project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--heading-color);
  border-bottom: 2px solid var(--accent-color);
  align-self: flex-start;
  padding-bottom: 2px;
}

.projects .project-link i {
  font-size: 14px;
  transition: transform 0.3s;
}

.projects .project-card:hover .project-link {
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}

.projects .project-card:hover .project-link i {
  transform: translateX(4px);
}

.projects .project-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  outline-offset: 3px;
}

.projects .project-link:focus-visible {
  outline: none;
}

/*--------------------------------------------------------------
# Skills Section (simple list: category on the left, skills on the right)
--------------------------------------------------------------*/
.skills .skills-list {
  max-width: 900px;
  margin: 0 auto;
}

.skills .skills-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 10px 24px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.skills .skills-row:first-child {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.skills .skills-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.skills .skills-row .tag-list li {
  font-size: 14px;
}

@media (max-width: 575px) {
  .skills .skills-row {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }
}

/*--------------------------------------------------------------
# Certificates Section
--------------------------------------------------------------*/
.certificates .certificate-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 14px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.certificates .certificate-card:hover,
.certificates .certificate-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  color: var(--default-color);
}

.certificates .certificate-icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificates .certificate-icon i {
  font-size: 36px;
  line-height: 0;
}

/* Issuer colors: AWS (squid ink + orange), Microsoft Azure (blue), Remostart (site accent) */
.certificates .cert-aws {
  background: #232f3e;
  color: #ff9900;
}

.certificates .cert-azure {
  background: linear-gradient(135deg, #0078d4, #50a0e6);
  color: #ffffff;
}

.certificates .cert-azure-ai {
  background: linear-gradient(135deg, #0078d4, #8661c5);
  color: #ffffff;
}

.certificates .cert-backend {
  background: var(--accent-color);
  color: #1d1d1d;
}

.certificates .certificate-body {
  min-width: 0;
  flex: 1;
}

.certificates .certificate-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.certificates .certificate-issuer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.certificates .certificate-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.certificates .certificate-year {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
  color: var(--heading-color);
}

.certificates .certificate-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
}

.certificates .certificate-view i {
  font-size: 12px;
}

.certificates .certificate-card:hover .certificate-view {
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}

@media (max-width: 575px) {
  .certificates .certificate-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }

  .certificates .certificate-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .certificates .certificate-body {
    width: 100%;
  }

  .certificates .certificate-icon i {
    font-size: 28px;
  }
}

/*--------------------------------------------------------------
# "Watch the demos" strip (home page) and pop-up video player
--------------------------------------------------------------*/
.projects .demo-strip {
  margin-bottom: 60px;
}

.projects .demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.projects .demo-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
}

.projects .demo-tile:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  outline-offset: 3px;
}

.projects .demo-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--accent-color), transparent 72%), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(80, 120, 255, 0.22), transparent 50%),
    #0d1117;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35);
}

/* phone recordings: the preview sits in a small phone frame */
.projects .thumb-phone {
  display: block;
  height: 86%;
  margin-top: 14%;
  padding: 4px;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.projects .thumb-phone img {
  display: block;
  height: 100%;
  width: auto;
  border-radius: 14px;
}

/* desktop recordings: the preview sits in a small browser window */
.projects .thumb-browser {
  display: block;
  width: 84%;
  margin-top: 8%;
  border-radius: 8px;
  overflow: hidden;
  background: #1f1f22;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.projects .thumb-bar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
}

.projects .thumb-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f57;
}

.projects .thumb-bar span:nth-child(2) {
  background: #febc2e;
}

.projects .thumb-bar span:nth-child(3) {
  background: #28c840;
}

.projects .thumb-browser img {
  display: block;
  width: 100%;
  height: auto;
}

.projects .demo-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1d;
  background: var(--accent-color);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-color), transparent 72%), 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects .demo-play i {
  font-size: 30px;
  line-height: 0;
  margin-left: 4px;
}

.projects .demo-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 9px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
}

.projects .demo-tile:hover .demo-play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent-color), transparent 70%), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.projects .demo-tile:hover .thumb-phone,
.projects .demo-tile:hover .thumb-browser {
  transform: translateY(-4px);
}

.projects .demo-info {
  padding: 14px 4px 0 4px;
}

.demo-project {
  display: block;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 4px;
}

.projects .demo-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1px;
}

.demo-link i {
  font-size: 13px;
  transition: transform 0.3s;
}

.demo-link:hover {
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}

.demo-link:hover i {
  transform: translateX(3px);
}

/* tablets and phones: a row you can swipe sideways */
@media (max-width: 991px) {
  .projects .demo-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .projects .demo-item {
    scroll-snap-align: start;
  }
}

@media (max-width: 575px) {
  .projects .demo-grid {
    grid-auto-columns: 84%;
    gap: 16px;
  }
}

/* Pop-up player */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.86);
  backdrop-filter: blur(4px);
}

.video-modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.video-modal-player {
  display: block;
  width: min(1100px, 92vw);
  max-height: 72vh;
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-box.is-portrait .video-modal-player {
  width: auto;
  height: min(72vh, 760px);
  max-width: 92vw;
  border-radius: 22px;
  border: 6px solid #111111;
}

.video-modal-caption {
  text-align: center;
  margin-top: 16px;
  color: #ffffff;
}

.video-modal-caption .demo-project {
  color: var(--accent-color);
}

.video-modal-caption h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.video-modal-caption .demo-link {
  color: #ffffff;
}

.video-modal-caption .demo-link:hover {
  color: var(--accent-color);
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1d;
  background: var(--accent-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.video-modal-close i {
  font-size: 16px;
  line-height: 0;
}

@media (max-width: 575px) {
  .video-modal-close {
    top: -10px;
    right: -6px;
  }
}

body.video-modal-open {
  overflow: hidden;
}

/*--------------------------------------------------------------
# Project Details Page
--------------------------------------------------------------*/
.project-title {
  padding: 150px 0 70px 0;
  background-image: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent-color), transparent 82%), transparent 60%);
}

.project-title .breadcrumbs {
  margin-bottom: 28px;
}

.project-title .breadcrumbs ol {
  font-size: 14px;
}

.project-title .breadcrumbs a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.project-title .breadcrumbs a:hover {
  color: var(--accent-color);
}

.project-title .breadcrumbs .current {
  color: var(--accent-color);
}

.project-title .project-title-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
}

.project-title .project-title-icon i {
  font-size: 34px;
  line-height: 0;
  color: #1d1d1d;
}

.project-title .project-title-client {
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.project-title h1 {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.25;
}

@media (max-width: 575px) {
  .project-title {
    padding: 120px 0 50px 0;
  }

  .project-title h1 {
    font-size: 30px;
  }
}

.project-details h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.project-details .project-overview {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.project-details .project-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 30px 0 40px 0;
}

.project-details .highlight {
  padding: 20px;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%);
}

.project-details .highlight-value {
  display: block;
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.project-details .highlight-label {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

/* Demo video shown in a phone-style frame (recordings are portrait phone screens) */
.project-details .project-video {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 10px 0 44px 0;
  padding: 30px;
  border-radius: 16px;
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
}

.project-details .phone-frame {
  flex-shrink: 0;
  width: 270px;
  padding: 10px;
  border-radius: 36px;
  background: #111111;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
}

.project-details .phone-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 384 / 832;
  border-radius: 27px;
  background: #000000;
}

/* Desktop recordings: shown full width under their description, in a browser-window frame */
.project-details .project-videos-title {
  margin-top: 10px;
}

.project-details .project-video + .project-video {
  margin-top: -20px;
}

.project-details .project-video.is-browser {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.project-details .browser-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #111111;
  border: 1px solid #2a2a2a;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
}

.project-details .browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  background: #1f1f22;
}

.project-details .browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.project-details .browser-bar span:nth-child(2) {
  background: #febc2e;
}

.project-details .browser-bar span:nth-child(3) {
  background: #28c840;
}

.project-details .browser-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #000000;
}

.project-details .project-video-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--accent-color), #000 50%);   /* dark amber: readable small text on light backgrounds */
  margin-bottom: 8px;
}

.project-details .project-video-text h2 {
  margin-bottom: 12px;
}

.project-details .project-video-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .project-details .project-video {
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
    text-align: center;
  }

  .project-details .phone-frame {
    width: min(260px, 80%);
  }
}

/* App screenshots: small thumbnails under a video's description; click opens full size */
.project-details .app-screens-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 22px 0 10px 0;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.project-details .app-screens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 76px));
  gap: 12px;
}

.project-details .app-screen {
  display: block;
  text-align: center;
  color: var(--default-color);
  cursor: zoom-in;
  border-radius: 12px;
}

.project-details .app-screen-frame {
  display: block;
  padding: 3px;
  border-radius: 12px;
  background: #000000;
  border: 1px solid #1f2937;
  box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-details .app-screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 252 / 540;
  object-fit: cover;
  border-radius: 9px;
}

.project-details .app-screen-title {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}

.project-details .app-screen:hover,
.project-details .app-screen:focus-visible {
  color: color-mix(in srgb, var(--accent-color), #000 28%);
}

.project-details .app-screen:hover .app-screen-frame,
.project-details .app-screen:focus-visible .app-screen-frame {
  transform: translateY(-4px);
  box-shadow: 0 16px 26px -12px rgba(15, 23, 42, 0.55);
}

.project-details .app-screen:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .project-details .app-screens {
    justify-content: center;
    gap: 8px;
  }
}

/* Full-size screenshot viewer: the screenshot shown inside a phone */
.screen-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-viewer[hidden] {
  display: none;
}

body.sv-open {
  overflow: hidden;
}

.screen-viewer .sv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 15, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.screen-viewer .sv-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 24px;
  max-width: 100%;
}

/* phone body */
.screen-viewer .sv-phone {
  position: relative;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b2e34 0%, #0c0d10 38%, #0c0d10 70%, #23252b 100%);
  box-shadow:
    inset 0 0 0 1.5px #3b3e46,
    0 0 0 1px #000,
    0 40px 90px -25px rgba(0, 0, 0, 0.9);
}

.screen-viewer .sv-screen {
  border-radius: 37px;
  overflow: hidden;
  background: #000;
}

.screen-viewer .sv-screen img {
  display: block;
  height: min(84vh, 820px);
  width: auto;
  aspect-ratio: 1080 / 2316;
}

/* camera hole over the status bar */
.screen-viewer .sv-camera {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #050506;
  box-shadow: inset 0 0 0 2px #191a1e, 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* power button (right) and volume button (left) */
.screen-viewer .sv-side-buttons::before,
.screen-viewer .sv-side-buttons::after {
  content: "";
  position: absolute;
  width: 3px;
  background: #2b2e34;
}

.screen-viewer .sv-side-buttons::before {
  right: -3px;
  top: 22%;
  height: 64px;
  border-radius: 0 3px 3px 0;
}

.screen-viewer .sv-side-buttons::after {
  left: -3px;
  top: 17%;
  height: 104px;
  border-radius: 3px 0 0 3px;
}

/* title and description */
.screen-viewer .sv-info {
  width: 300px;
  color: #ffffff;
}

.screen-viewer .sv-count {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.screen-viewer .sv-info h3 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.screen-viewer .sv-info p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.screen-viewer .sv-dots {
  display: flex;
  gap: 8px;
}

.screen-viewer .sv-dots[hidden] {
  display: none;
}

.screen-viewer .sv-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.3s, background-color 0.3s;
}

.screen-viewer .sv-dots button[aria-current="true"] {
  width: 26px;
  background: var(--accent-color);
}

/* previous / next / close buttons */
.screen-viewer .sv-nav,
.screen-viewer .sv-close {
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.screen-viewer .sv-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  font-size: 20px;
}

.screen-viewer .sv-nav[hidden] {
  display: none;
}

.screen-viewer .sv-prev {
  left: 24px;
}

.screen-viewer .sv-next {
  right: 24px;
}

.screen-viewer .sv-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.screen-viewer .sv-nav:hover,
.screen-viewer .sv-close:hover {
  color: #1d1d1d;
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.screen-viewer button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  outline-offset: 3px;
}

.screen-viewer i {
  line-height: 0;
}

/* animations: the screenshot slides in like a swipe on the phone */
@keyframes sv-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes sv-next {
  from { opacity: 0.2; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes sv-prev {
  from { opacity: 0.2; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}

.screen-viewer .sv-anim-fade {
  animation: sv-fade 0.3s ease;
}

.screen-viewer .sv-anim-next {
  animation: sv-next 0.3s ease;
}

.screen-viewer .sv-anim-prev {
  animation: sv-prev 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .screen-viewer .sv-anim-fade,
  .screen-viewer .sv-anim-next,
  .screen-viewer .sv-anim-prev {
    animation: none;
  }
}

/* tablets and phones: text under the phone */
@media (max-width: 991px) {
  .screen-viewer .sv-stage {
    flex-direction: column;
    gap: 18px;
    padding: 16px;
  }

  .screen-viewer .sv-screen img {
    height: min(66vh, 720px);
  }

  .screen-viewer .sv-info {
    width: min(420px, 100%);
    text-align: center;
  }

  .screen-viewer .sv-info h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .screen-viewer .sv-info p {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .screen-viewer .sv-count {
    margin-bottom: 4px;
  }

  .screen-viewer .sv-dots {
    justify-content: center;
  }

  .screen-viewer .sv-nav {
    top: 38%;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .screen-viewer .sv-prev {
    left: 10px;
  }

  .screen-viewer .sv-next {
    right: 10px;
  }

  .screen-viewer .sv-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575px) {
  .screen-viewer .sv-phone {
    padding: 7px;
    border-radius: 36px;
  }

  .screen-viewer .sv-screen {
    border-radius: 30px;
  }

  .screen-viewer .sv-camera {
    top: 12px;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
  }
}

.project-details .contribution-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-details .contribution-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.65;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.project-details .contribution-list li:last-child {
  border-bottom: 0;
}

.project-details .contribution-list i {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.3;
  color: color-mix(in srgb, var(--accent-color), #000 15%);
}

.project-details .project-info {
  position: sticky;
  top: 100px;
  padding: 30px;
  border-radius: 14px;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.project-details .project-info .project-info-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}

.project-details .project-info .project-info-subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 22px 0 12px 0;
}

.project-details .project-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-details .project-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.project-details .project-facts strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.project-details .project-facts span {
  color: var(--heading-color);
  font-weight: 500;
}

.project-details .project-external {
  width: 100%;
  margin-top: 26px;
}

.project-details .project-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.project-details .pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--heading-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: border-color 0.3s, transform 0.3s;
}

.project-details .pager-link:hover {
  color: var(--heading-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.project-details .pager-next {
  text-align: right;
}

.project-details .pager-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--accent-color), #000 50%);   /* dark amber: readable small text on light backgrounds */
}

.project-details .pager-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.project-details .pager-all {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
}

.project-details .pager-all i {
  font-size: 22px;
  color: color-mix(in srgb, var(--accent-color), #000 15%);
}

.project-details .pager-all:hover {
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}

@media (max-width: 991px) {
  .project-details .project-info {
    position: static;
  }
}

@media (max-width: 767px) {
  .project-details .project-pager {
    grid-template-columns: 1fr 1fr;
  }

  .project-details .pager-all {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .project-details .pager-all i {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Contact (dark closing section with a large email link)
--------------------------------------------------------------*/
.contact.dark-background {
  --background-color: #0a0e15;
  position: relative;
  padding: 120px 0 104px 0;
}

/* subtle dot pattern, like the hero */
.contact.dark-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  pointer-events: none;
}

.contact .contact-inner {
  position: relative;
  max-width: 900px;
}

.contact .contact-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.contact .contact-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.contact h2 {
  margin: 18px 0 0 0;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.contact h2 em {
  font-style: normal;
  color: var(--accent-color);
}

.contact .contact-lead {
  margin: 22px 0 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.contact .contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 38px);
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  word-break: break-all;
}

.contact .contact-email i {
  font-size: 0.7em;
  color: var(--accent-color);
  transition: transform 0.25s;
}

.contact .contact-email:hover {
  color: var(--accent-color);
}

.contact .contact-email:hover i {
  transform: translate(3px, -3px);
}

.contact .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.contact .contact-actions .btn-download-cv,
.contact .contact-actions .btn-view-cv {
  margin: 0;
}

.contact .btn-view-cv {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.contact .btn-view-cv:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 575px) {
  .contact.dark-background {
    padding: 88px 0 76px 0;
  }

  .contact .contact-lead {
    font-size: 16px;
  }

  .contact .contact-actions a {
    flex: 1 1 100%;
  }
}

/*--------------------------------------------------------------
# Floating WhatsApp button (bottom-right, stays while scrolling)
--------------------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9991;   /* above the page, below the mobile menu and the video/screenshot viewers */
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  animation: wa-enter 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.8s both;
}

.whatsapp-float-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: #0a0e15;
  border: 3px solid #0a0e15;
  box-shadow: 0 12px 28px -8px rgba(10, 14, 21, 0.55);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* soft ring that pulses out from the button */
.whatsapp-float-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  animation: wa-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

.whatsapp-float-icon i {
  font-size: 27px;
  line-height: 0;
  animation: wa-wiggle 6s ease-in-out 2s infinite;
}

/* "Chat on WhatsApp" label that slides out on hover (desktop) */
.whatsapp-float-label {
  padding: 9px 16px;
  border-radius: 50px;
  background: #0a0e15;
  color: #ffffff;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(10, 14, 21, 0.6);
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-float-icon,
.whatsapp-float:focus-visible .whatsapp-float-icon {
  transform: translateY(-3px) scale(1.06);
  background: #ffc94d;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  transform: none;
}

.whatsapp-float:focus-visible {
  outline: none;
}

.whatsapp-float:focus-visible .whatsapp-float-icon {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  outline-offset: 4px;
}

@keyframes wa-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes wa-wiggle {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-14deg); }
  92% { transform: rotate(12deg); }
  94% { transform: rotate(-10deg); }
  96% { transform: rotate(6deg); }
}

@media (max-width: 575px) {
  .whatsapp-float {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-float-icon {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float-icon i {
    font-size: 25px;
  }

  .whatsapp-float-label {
    display: none;   /* no hover on phones */
  }

  .scroll-top {
    right: calc(21px + env(safe-area-inset-right, 0px));
  }

  .scroll-top.active {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  /* keep the footer's last line clear of the floating button */
  .footer {
    padding-bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float-icon::before,
  .whatsapp-float-icon i {
    animation: none;
  }
}

/* hide the floating buttons while the phone menu is open */
.mobile-nav-active .whatsapp-float,
.mobile-nav-active .scroll-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
