:root {
  --navy:       #14243F;
  --navy-mid:   #1a2e52;
  --navy-light: #1f3660;
  --blue:       #004AA3;
  --blue-bright:#2a65c0;
  --blue-pale:  #D2D2D2;
  --white:      #FFFFFF;
  --white-dim:  rgba(255,255,255,0.6);
  --white-faint:rgba(255,255,255,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Neufile Grotesk', 'Manrope', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* CANVAS BG */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* NOISE */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

.page { position: relative; z-index: 2; }

section { padding: 120px 80px; max-width: 1400px; margin: 0 auto; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 80px; max-width: none; position: relative;
  isolation: isolate;
}

.hero-top-bar {
  position: absolute; top: 48px; left: 80px; right: 80px;
  display: flex; align-items: center; justify-content: space-between; z-index: 10;
}

.logo-coded {
  padding: 8px 16px;
  display: flex; align-items: center;
}
.logo-coded img { height: 36px; width: auto; display: block; }

.logo-zain {
  padding: 6px 14px;
  display: flex; align-items: center;
}
.logo-zain img { height: 36px; width: auto; display: block; }

.hero-content { max-width: 1200px; margin: 0 auto; width: 100%; }

.hero-eyebrow {
  font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #4d8bff; margin-bottom: 40px;
  display: flex; align-items: center; gap: 16px;
  opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}
.hero-eyebrow::before { display: none; }

.hero-title {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 200; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 24px; opacity: 0; animation: fadeUp 1s ease 0.5s forwards;
}
.hero-title em { font-style: italic; color: #4d8bff; }

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 20px); font-weight: 300;
  color: var(--white-dim); margin-bottom: 64px;
  max-width: 640px; line-height: 1.7;
  opacity: 0; animation: fadeUp 1s ease 0.7s forwards;
}

.hero-meta {
  display: flex; gap: 56px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s ease 0.9s forwards;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 6px; }
.hero-meta-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #4d8bff; }
.hero-meta-value { font-size: 18px; font-weight: 300; }

.hero-scroll {
  position: absolute; bottom: 48px; right: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--white-dim); opacity: 0; animation: fadeUp 1s ease 1.2s forwards;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, #004AA3, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* DIVIDER */
.section-divider {
  max-width: 1400px; margin: 0 auto; padding: 0 80px;
  display: flex; align-items: center; gap: 24px;
}
.section-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,74,163,0.4), transparent);
}
.section-divider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #004AA3; box-shadow: 0 0 12px #004AA3;
}

/* SECTION HEADER */
.section-header { margin-bottom: 72px; }
.section-label {
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: #4d8bff; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: #4d8bff; }
.section-title {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 200; line-height: 1; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: #4d8bff; }

/* PROJECT CARDS */
.project-card {
  background: rgba(20,36,63,0.65);
  border: 1px solid rgba(0,74,163,0.2);
  padding: 72px; margin-bottom: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(14px);
  transform: none !important;
}
.project-card:hover {
  border-color: rgba(0,74,163,0.5);
  box-shadow: 0 24px 80px rgba(0,74,163,0.18), 0 0 0 1px rgba(0,74,163,0.1);
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, #004AA3, transparent);
}
.card-glow {
  position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,74,163,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.project-number {
  font-size: 110px; font-weight: 200;
  color: rgba(0,74,163,0.07);
  position: absolute; top: 16px; right: 56px;
  line-height: 1; pointer-events: none; letter-spacing: -0.05em;
  transition: color 0.4s;
}
.project-card:hover .project-number { color: rgba(0,74,163,0.14); }

.project-tag {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #4d8bff; border: 1px solid rgba(0,74,163,0.35);
  padding: 4px 12px; display: inline-block; margin-bottom: 28px;
  background: rgba(0,74,163,0.08);
}
.project-name {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 200; line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.01em;
}
.project-name-full {
  font-size: 10px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4); margin-bottom: 44px; line-height: 1.6;
}
.project-brief-label {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #4d8bff; margin-bottom: 14px;
}
.project-brief {
  font-size: 15px; line-height: 1.9; color: var(--white-dim);
  max-width: 800px; margin-bottom: 56px;
}
.project-brief strong { color: var(--white); font-weight: 500; }

.project-members-label {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #4d8bff; margin-bottom: 24px;
}
.project-members { display: flex; flex-wrap: wrap; gap: 20px; }

.member-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 160px;
  padding: 20px 16px;
  border: 1px solid rgba(0,74,163,0.22);
  background: rgba(0,74,163,0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.member-card:hover {
  border-color: rgba(0,74,163,0.55);
  background: rgba(0,74,163,0.14);
}
.member-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(77, 139, 255, 0.55);
  box-shadow: 0 0 10px rgba(77, 139, 255, 0.35), 0 0 24px rgba(77, 139, 255, 0.15);
  flex-shrink: 0;
}
.member-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.member-name {
  font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
  text-align: center; line-height: 1.4;
  color: var(--white);
}

/* FOOTER */
.footer {
  padding: 80px; border-top: 1px solid rgba(0,74,163,0.15);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.footer-left { display: flex; flex-direction: column; gap: 12px; }
.footer-collab { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 36px; width: auto; display: block; }
.footer-x { font-size: 22px; font-weight: 200; color: var(--white-dim); }
.footer-sub { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: #4d8bff; }
.footer-right { font-size: 10px; letter-spacing: 0.2em; color: var(--white-dim); text-align: right; line-height: 2; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  section, .hero { padding-left: 28px; padding-right: 28px; }
  .hero-top-bar { left: 28px; right: 28px; }
  .hero-scroll { right: 28px; }
  .section-divider { padding: 0 28px; }
  .project-card { padding: 40px 28px; }
  .footer { padding: 56px 28px; }
  .footer-right { text-align: left; }
  .hero-meta { gap: 28px; }
}

@media (max-width: 480px) {
  section { padding-top: 64px; padding-bottom: 64px; padding-left: 20px; padding-right: 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-top-bar { left: 20px; right: 20px; top: 24px; }
  .logo-coded img, .logo-zain img { height: 26px; }
  .hero-meta { gap: 16px 28px; }
  .hero-subtitle { margin-bottom: 40px; }
  .hero-scroll { right: 20px; bottom: 32px; }
  .section-divider { padding: 0 20px; }
  .section-header { margin-bottom: 40px; }
  .project-card { padding: 28px 20px; }
  .project-number { font-size: 70px; top: 12px; right: 12px; }
  .member-card { width: calc(50% - 10px); }
  .footer { padding: 40px 20px; }
}
