/* ==========================================================================
   HUMIND VENTURE PLATFORM - CORE DESIGN SYSTEM
   ========================================================================== */

/* --- Font Declarations --- */
@font-face {
  font-family: 'Neue Sky';
  src: url('../assets/fonts/NeueSky-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Sky';
  src: url('../assets/fonts/NeueSky-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Sky';
  src: url('../assets/fonts/NeueSky-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Arabic';
  src: url('../assets/fonts/NeueArabic-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Arabic';
  src: url('../assets/fonts/NeueArabic-Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Arabic';
  src: url('../assets/fonts/NeueArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --font-family-base: 'Neue Sky', 'Neue Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --bg-main: #F8F8F6;
  --bg-card: #FFFFFF;
  --bg-dark: #000000;
  --bg-footer: #050507;
  
  --color-brand: #102AE8;
  --color-brand-hover: #0a1ec4;
  --color-text-main: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.6);
  --color-text-subtle: rgba(0, 0, 0, 0.4);
  --color-text-light: #F8F8F6;
  --color-text-light-muted: rgba(248, 248, 246, 0.6);
  
  --border-light: rgba(0, 0, 0, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-dark: rgba(248, 248, 246, 0.12);
  
  --container-max-width: 1440px;
  --container-padding: 56px;
  
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Resets & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--color-text-main);
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--color-brand);
  color: #FFFFFF;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* --- Keyframe Animations --- */
@keyframes hm-rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hm-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(2deg);
  }
}

@keyframes hm-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes hm-blink {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@keyframes hm-pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* --- Utility Classes --- */
.hm-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

.hm-text-brand {
  color: var(--color-brand);
}

.hm-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Header & Navigation --- */
.hm-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 248, 246, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}

.hm-header-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hm-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-main);
  flex: none;
}

.hm-brand-logo svg {
  width: 60px;
  height: 66px;
  display: block;
}

.hm-brand-logo span {
  font-size: 21px;
  font-weight: 700;
}

.hm-nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  white-space: nowrap;
}

.hm-nav-link {
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.hm-nav-link:hover, .hm-nav-link.active {
  color: var(--color-text-main);
}

.hm-nav-link.active {
  font-weight: 700;
  border-bottom: 2px solid var(--color-brand);
}

.hm-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex: none;
}

.hm-btn-lang {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-main);
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hm-btn-lang:hover {
  background: var(--color-text-main);
  color: var(--color-text-light);
}

.hm-btn-apply {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  background: var(--color-text-main);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hm-btn-apply:hover {
  background: var(--color-brand);
  transform: scale(1.04);
}

/* --- Mobile Hamburger Button & Drawer --- */
.hm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hm-hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hm-hamburger.open .hm-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hm-hamburger.open .hm-hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hm-hamburger.open .hm-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hm-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.hm-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.hm-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  width: 82vw;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  z-index: 100;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 90px 32px 40px;
  gap: 28px;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

[dir="rtl"] .hm-drawer {
  transform: translateX(-100%);
}

.hm-drawer.open {
  transform: translateX(0) !important;
}

.hm-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hm-drawer-link {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-main);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition-fast);
}

.hm-drawer-link:hover, .hm-drawer-link.active {
  color: var(--color-brand);
  font-weight: 700;
}

.hm-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
