/* ── Fonts ── */
@font-face {
  font-family: 'Pacifico';
  src: url('../fonts/Pacifico/Pacifico-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ! Extra Fonts */
.pdFont {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-style: italic;
}

/* ── Geist (Vercel) ── */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/GeistVF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../fonts/GeistVF-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('../fonts/Noto_Sans_Arabic/NotoSansArabic-VariableFont_wdth\,wght.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}
.NotoSansArabic{
  font-family: 'Noto Sans Arabic';
}

/* ! Gsap Elements */
.reveal{
  overflow: hidden;
  padding: 0;margin: 0;
  display: flex;justify-content: center;align-items: center;
}

/* ─── CTA BUTTONS ─── */
.cta {
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--black);
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.cta:hover {
  background: var(--black);
  color: var(--white);
}

.cta:hover svg {
  stroke: var(--white);
}

.cta_insta {
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border: none;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.cta_insta:hover {
  opacity: 0.85;
  color: var(--white);
}

.cta_insta svg {
  fill: var(--white);
}



/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

/* ── Root Variables ── */
:root {
  /* Neutrals */
  --black:       #1d1d1f;
  --dark-gray:   #424245;
  --gray:        #6e6e73;
  --light-gray:  #d2d2d7;
  --off-white:   #f5f5f7;
  --white:       #ffffff;

  /* Apple Vivids */
  --blue:        #0071e3;
  --blue-hover:  #0077ed;
  --green:       #34c759;
  --orange:      #ff9f0a;
  --red:         #ff3b30;
  --purple:      #af52de;
  --teal:        #5ac8fa;

  /* Typography */
  --font-sans:   'Geist', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-xs:    0.25rem;
  --space-sm:    0.5rem;
  --space-md:    1rem;
  --space-lg:    2rem;
  --space-xl:    4rem;
  --space-2xl:   8rem;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration:    0.3s;
}

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Utility Classes ── */
.pacificoFont {
  font-family: 'Pacifico', cursive;
}

/* ── Base ── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Geist', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  letter-spacing: -0.022em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

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

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

::selection {
  background:  #5ac7fac5;
  color: var(--white);
}

/* ── Page Transitions ── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.3s ease forwards;
}

::view-transition-new(root) {
  animation: fade-in 0.3s ease forwards;
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Dynamic Island ── */
.island {
  width: fit-content;
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background-color: rgba(221, 221, 221, 0.223);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 100px;
  border: 1px solid rgba(200, 200, 200, 0.45);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
  .island{
    bottom: var(--space-md);
  }
}

.island__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gray);
  opacity: 0.6;
  border: 1.5px solid transparent;
  transition: color var(--duration) var(--ease),
              opacity var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform 0.3s var(--ease);
}

.island__link:hover {
  opacity: 0.85;
  color: var(--black);
}

.island__link--active {
  color: var(--black);
  opacity: 1;
  background-color:  rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.island__link svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ── Main ── */
.main {
  flex: 1;
  padding: var(--space-lg) var(--space-xl);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Skill Tags ── */
.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background-color: var(--off-white);
  color: var(--dark-gray);
  border: 1px solid var(--light-gray);
}

.skill-tag--learning {
  background-color: transparent;
  border: 1px dashed var(--blue);
  color: var(--blue);
}

/* ── Responsive Global ── */
@media (max-width: 768px) {
  .main {
    padding: var(--space-md);
  }
}
