/* Al-Dawood Global Ventures — Portfolio */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

.font-pixel {
  font-family: 'basis33', monospace;
}

.hero-headline {
  line-height: 0.72;
}

.menu-ease {
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link-ease {
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* iOS Safari address-bar friendly viewport height */
.min-h-device {
  min-height: 100vh;
  min-height: 100dvh;
}

.h-device {
  height: 100vh;
  height: 100dvh;
}

.safe-pad {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
  .safe-pad {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 768px) {
  .safe-pad {
    padding-left: max(2.5rem, env(safe-area-inset-left));
    padding-right: max(2.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 1024px) {
  .safe-pad {
    padding-left: max(3.5rem, env(safe-area-inset-left));
    padding-right: max(3.5rem, env(safe-area-inset-right));
  }
}

/* Home: lock on tall screens; scroll on short/mobile viewports */
.home-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home-shell .home-scroll {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-height: 780px), (max-width: 767px) {
  .home-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .home-shell .home-scroll {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .home-shell .home-spacer {
    display: none;
  }
}

/* Prefer less motion when requested */
@media (prefers-reduced-motion: reduce) {
  .menu-ease,
  .menu-link-ease,
  .transition-opacity,
  .transition-colors,
  .transition-all {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .menu-link-ease {
    transform: none !important;
  }
}

/* Touch-friendly legal / footer links */
.footer-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* Prevent horizontal overflow from long words on small screens */
.break-soft {
  overflow-wrap: anywhere;
  word-break: break-word;
}
