/* Shared project styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%; /* بيمنع الفراغ الأسود فوق وتحت */
  background-color: #000; /* الأساس دائماً أسود */
  overflow-x: hidden; /* الحل النهائي والوحيد لقص الـ Blobs ومنع الروحة يمين */
  position: relative;
}
:root {
  --pink: #ff4B8B;
  --purple: #7B2CBF;
  --cyan: #00B4D8;
  --orange: #FFB800;
  --bg: #050505;
  --bg2: #0d0d0f;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --grad: linear-gradient(135deg, #FF4B8B 0%, #7B2CBF 50%, #00B4D8 100%);
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(circle at top center,
    rgba(255,75,139,0.18) 0%,
    rgba(123,44,191,0.14) 28%,
    rgba(0,180,216,0.1) 55%,
    rgba(5,5,5,1) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.1;
  z-index: 1;
}
.page-shell {
  position: relative;
  z-index: 2;
  padding-top: 120px;
}
.dynamic-island {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(100%, 650px);
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  box-shadow: 0 0 0 1px rgba(255,75,139,0.12), 0 12px 36px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dynamic-island:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 0 0 1px rgba(255,75,139,0.18), 0 16px 48px rgba(0,0,0,0.4), 0 0 20px rgba(255,75,139,0.3);
}
@media (max-width: 768px) {
  .dynamic-island:hover {
    transform: translateX(-50%);
  }
}
.dynamic-island .island-left,
.dynamic-island .island-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dynamic-island .island-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.island-logo {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.island-logo:hover {
  transform: scale(1.04);
  background: rgba(255,255,255,0.14);
}
.island-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.island-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.brand-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  white-space: nowrap;
}
.island-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 100%);
}
.island-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.island-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.island-link.active {
  color: #fff;
  background: rgba(255,75,139,0.18);
}
.island-link .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 0 8px rgba(255,184,0,0.4);
}
.main-background {
  position: relative;
  width: 100%;
}
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 24px 80px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -100px;
  left: -200px;
  animation: float-blob 8s ease-in-out infinite;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--pink);
  bottom: -100px;
  right: -150px;
  animation: float-blob 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-blob 12s ease-in-out infinite 2s;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-logo-wrap {
  position: relative;
  margin-bottom: 40px;
  animation: hero-enter 1s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-logo {
  width: 160px;
  height: 160px;
  position: relative;
}
.logo-svg {
  width: 100%;
  height: 100%;
}
.hero-slogan {
  text-align: center;
  animation: hero-enter 1s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}
.slogan-sub {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-weight: 400;
}
.hero-name {
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  animation: hero-enter 1s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
.hero-name::after {
  content: 'Design Details';
  position: absolute;
  inset: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(28px);
  opacity: 0.35;
  z-index: -1;
}
.slogan-main {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.slogan-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.7;
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: hero-enter 1s ease 1s both;
  cursor: pointer;
  z-index: 1000;
}
.scroll-hint span {
  font-size: 18px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #f5f5ff;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 0 rgba(255,255,255,0);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.scroll-hint:hover span {
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(255,75,139,0.35),
    0 0 30px rgba(0,180,216,0.22);
}
.scroll-line {
  width: 2px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4b8b 0%, #7b2cbf 50%, #00b4d8 100%);
  background-size: 100% 300%;
  background-position: 0% 0%;
  box-shadow:
    0 0 18px rgba(255,75,139,0.25),
    0 0 28px rgba(0,180,216,0.18);
  transition: box-shadow 0.35s ease, filter 0.35s ease, opacity 0.35s ease, height 0.4s ease;
  animation: gradient-pulse 3s ease-in-out infinite;
}

.scroll-hint:hover .scroll-line {
  box-shadow:
    0 0 28px rgba(255,75,139,0.45),
    0 0 42px rgba(0,180,216,0.28);
  filter: brightness(1.1);
}

/* Idle state - pulsing gradient animation */
@keyframes gradient-pulse {
  0% {
    background-position: 0% 0%;
    filter: brightness(1);
  }
  50% {
    background-position: 0% 50%;
    filter: brightness(1.15);
  }
  100% {
    background-position: 0% 0%;
    filter: brightness(1);
  }
}

/* Scroll-based stretch animation */
@keyframes gradient-scroll {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

/* Glow pulse for text */
@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255,75,139,0.2),
      0 0 20px rgba(0,180,216,0.15);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255,75,139,0.4),
      0 0 35px rgba(0,180,216,0.3);
  }
}

/* Active scroll state - continuous gradient flow */
.scroll-hint.scrolling .scroll-line {
  animation: gradient-scroll 0.8s linear infinite;
}

.scroll-hint.scrolling span {
  animation: glow-pulse 2s ease-in-out infinite;
}

.scroll-hint span {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { opacity: 0.9; }
}
.section-label {
  text-align: center;
  margin-bottom: 56px;
}
.section-label .eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,75,139,0.7);
  margin-bottom: 12px;
  display: block;
}
.section-label h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.gateway {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 90px;
  background: transparent;
}
.category-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.cat-card {
  position: relative;
  padding: 32px 28px;
  min-height: 340px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 60px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.35s ease;
}
.cat-card:nth-child(1):hover::before {
  background: radial-gradient(circle at center, rgba(123, 44, 191, 0.15), transparent 50%);
  opacity: 1;
}
.cat-card:nth-child(2):hover::before {
  background: radial-gradient(circle at center, rgba(255, 184, 0, 0.15), transparent 50%);
  opacity: 1;
}
.cat-card:nth-child(3):hover::before {
  background: radial-gradient(circle at center, rgba(0, 180, 216, 0.15), transparent 50%);
  opacity: 1;
}
.cat-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 34px 78px rgba(0,0,0,0.26);
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 25%), radial-gradient(circle at bottom right, rgba(255,255,255,0.05), transparent 30%);
  opacity: 0.7;
  pointer-events: none;
}
.cat-lines {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 82px;
  height: 82px;
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
}
.cat-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.7);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.cat-card:nth-child(1):hover .cat-icon {
  background: rgba(123, 44, 191, 0.25);
  border-color: rgba(123, 44, 191, 0.4);
  color: #c9b6ff;
  box-shadow: 0 0 20px rgba(123, 44, 191, 0.3);
}
.cat-card:nth-child(2):hover .cat-icon {
  background: rgba(255, 184, 0, 0.25);
  border-color: rgba(255, 184, 0, 0.4);
  color: #ffe066;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}
.cat-card:nth-child(3):hover .cat-icon {
  background: rgba(0, 180, 216, 0.25);
  border-color: rgba(0, 180, 216, 0.4);
  color: #9cecff;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}
.cat-card:hover .cat-icon {
  transform: scale(1.05);
}
.cat-content {
  position: relative;
  z-index: 1;
}
.cat-number {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.cat-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}
.cat-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 340px;
}
.cat-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 24px;
  color: rgba(255,255,255,0.55);
  transition: transform 0.3s ease, color 0.3s ease;
}
.cat-card:hover .cat-arrow {
  transform: translateX(6px);
  color: #fff;
}
@media (max-width: 960px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .category-grid { grid-template-columns: 1fr; }
}
.works-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  margin-top: 40px;
}
.video-guide {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 30px;
  line-height: 1.6;
}
.video-guide code {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 6px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 60px;
  justify-content: center;
}
.work-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  min-height: 360px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,75,139,0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.work-card.info-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.info-card-content {
  padding: 24px;
  text-align: center;
}
.info-card-content img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.12);
}
.info-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.info-card-content p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 14px;
}
.work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  position: relative;
}
.footer-grad-line {
  width: 64px;
  height: 3px;
  margin: 0 auto 26px;
  background: linear-gradient(90deg, #FF4B8B, #7B2CBF, #00B4D8);
  border-radius: 999px;
  opacity: 0.85;
}
.footer-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  display: block;
}
.footer-text {
  margin: 0;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer-text span {
  font-weight: 700;
}
@media (max-width: 680px) {
  .footer {
    padding: 42px 18px 36px;
  }
  .footer-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
  }
}
@media (max-width: 960px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .works-grid { grid-template-columns: 1fr; }
}
