/* ============================================
   BULAND — GLOBAL STYLES
   Shared across all pages
============================================ */

/* DESIGN TOKENS */
:root {
  --purple-deep:    #5C0F6B;
  --purple-mid:     #9B30B4;
  --purple-light:   #C084D8;
  --purple-pale:    #D4A8E0;
  --black-base:     #06000A;
  --black-deep:     #040008;
  --black-card:     #0D0118;
  --black-nav:      #110816;
  --white:          #FFFFFF;
  --white-60:       rgba(255,255,255,0.6);
  --white-40:       rgba(255,255,255,0.4);
  --white-20:       rgba(255,255,255,0.2);
  --white-08:       rgba(255,255,255,0.08);
  --white-05:       rgba(255,255,255,0.05);
  --font-display:   'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black-base);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CURSOR */
.cursor {
  width: 10px; height: 10px;
  background: var(--purple-mid);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(155,48,180,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 44px;
  background: rgba(6,0,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--white-05);
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 12px 44px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--purple-deep);
  border: 1.5px solid rgba(155,48,180,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-logo:hover .logo-mark { transform: rotate(10deg) scale(1.05); }
.logo-word {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  color: var(--white);
  letter-spacing: 0.06em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white-40);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--purple-mid);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--purple-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  padding: 10px 22px;
  border-radius: 22px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--purple-mid); transform: translateY(-1px); }

/* BUTTONS */
.btn-primary {
  background: var(--purple-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  padding: 13px 28px;
  border-radius: 28px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--purple-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,15,107,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 28px;
  text-decoration: none;
  border: 1px solid var(--white-20);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--white-40); transform: translateY(-2px); }

/* TYPOGRAPHY */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 14px;
  display: block;
}
.section-h {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 14px;
}
.section-h em { color: rgba(155,48,180,0.65); font-style: normal; }
.section-p {
  font-size: 15px;
  color: var(--white-40);
  line-height: 1.75;
}

/* SCROLL REVEAL */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }
.fade-up.d5 { transition-delay: 0.5s; }

/* CREDIBILITY BAR */
.cred-bar {
  background: #040008;
  padding: 14px 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 0.5px solid var(--white-05);
  border-bottom: 0.5px solid var(--white-05);
}
.cred-label {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 0.5px solid var(--white-08);
  white-space: nowrap;
}
.cred-items { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cred-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--white-40); white-space: nowrap; }
.cred-sep { width: 1px; height: 12px; background: var(--white-08); }

/* BUDDIES / TEAM (shared homepage + about) */
.founders-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 3px; }
.founder-card { position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.founder-card:first-child { border-radius: 14px 0 0 0; }
.founder-card:last-child { border-radius: 0 14px 0 0; }
.founder-photo-area { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.founder-photo-area img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(0.5); transition: filter 0.4s ease, transform 0.4s ease; }
.founder-card:hover .founder-photo-area img { filter: grayscale(60%) brightness(0.65); transform: scale(1.04); }
.founder-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgba(155,48,180,0.2); font-family: var(--font-display); }
.founder-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,0,10,0.97) 0%, rgba(6,0,10,0.2) 60%); }
.founder-deco { position: absolute; top: 16px; right: 16px; font-size: 80px; color: rgba(92,15,107,0.1); line-height: 1; pointer-events: none; }
.founder-body { position: relative; z-index: 2; padding: 20px 24px; }
.founder-tag { display: inline-block; font-size: 10px; background: rgba(92,15,107,0.5); border: 0.5px solid rgba(155,48,180,0.3); color: var(--purple-pale); padding: 3px 10px; border-radius: 7px; margin-bottom: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.founder-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 5px; }
.founder-role { font-size: 12px; color: var(--white-40); margin-bottom: 10px; }
.founder-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-size: 10px; color: var(--white-40); border: 0.5px solid var(--white-08); padding: 3px 9px; border-radius: 6px; }
.city-divider { display: flex; align-items: center; gap: 12px; margin: 32px 0 20px; }
.cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple-deep); flex-shrink: 0; }
.cname { font-size: 12px; font-weight: 500; color: var(--white-40); letter-spacing: 0.1em; text-transform: uppercase; }
.ccount { font-size: 11px; color: rgba(155,48,180,0.6); background: rgba(92,15,107,0.15); padding: 2px 9px; border-radius: 6px; }
.cline { flex: 1; height: 0.5px; background: var(--white-05); }
.buddies-grid { display: grid; gap: 3px; }
.buddies-grid.g4 { grid-template-columns: repeat(4,1fr); }
.buddies-grid.g5 { grid-template-columns: repeat(5,1fr); }
.buddy-card { overflow: hidden; cursor: pointer; transition: transform 0.3s ease; }
.buddy-card:hover { transform: translateY(-4px); }
.buddy-photo { height: 180px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.buddy-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(0.55); transition: filter 0.3s ease, transform 0.4s ease; }
.buddy-card:hover .buddy-photo img { filter: grayscale(70%) brightness(0.65); transform: scale(1.06); }
.buddy-initial { font-size: 48px; color: rgba(100,100,100,0.45); font-family: var(--font-display); font-weight: 300; position: relative; z-index: 1; }
.buddy-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,0,10,0.92) 0%, rgba(6,0,10,0.05) 60%); }
.buddy-label { background: var(--black-card); padding: 12px 14px; border-top: 0.5px solid rgba(155,48,180,0.08); }
.buddy-name { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 2px; }
.buddy-role { font-size: 11px; color: var(--white-40); }
.join-strip { border: 0.5px solid rgba(155,48,180,0.2); border-radius: 12px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 32px; transition: border-color 0.2s ease; }
.join-strip:hover { border-color: rgba(155,48,180,0.4); }
.join-strip-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.join-strip-sub { font-size: 13px; color: var(--white-40); }

/* FOOTER */
footer { background: #030006; padding: 56px 44px 26px; border-top: 0.5px solid var(--white-05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.28); line-height: 1.7; margin-bottom: 20px; }
.social-row { display: flex; gap: 8px; }
.soc-btn { width: 34px; height: 34px; border-radius: 50%; border: 0.5px solid var(--white-08); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
.soc-btn:hover { border-color: rgba(155,48,180,0.4); background: rgba(92,15,107,0.2); }
.fc-title { font-size: 11px; color: rgba(255,255,255,0.18); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.fc-link { display: block; font-size: 13px; color: rgba(255,255,255,0.32); text-decoration: none; margin-bottom: 10px; transition: color 0.2s ease; }
.fc-link:hover { color: var(--purple-light); }
.footer-bottom { border-top: 0.5px solid var(--white-05); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.15); }

/* ANIMATIONS */
@keyframes floatUrdu { 0%,100%{transform:translateY(0);}50%{transform:translateY(-6px);} }
@keyframes orbPulse { 0%,100%{opacity:0.8;transform:scale(1);}50%{opacity:1;transform:scale(1.05);} }
@keyframes cityPulse { 0%{transform:scale(1);opacity:0.8;}100%{transform:scale(2.6);opacity:0;} }
@keyframes scrollBounce { 0%,100%{transform:translateY(0);}50%{transform:translateY(6px);} }
@keyframes marqueeScroll { 0%{transform:translateX(0);}100%{transform:translateX(-50%);} }
@keyframes heroReveal { to{opacity:1;transform:translateY(0);} }
@keyframes dotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(155,48,180,0.4);}50%{box-shadow:0 0 0 6px rgba(155,48,180,0);} }

/* ============================================
   RESPONSIVE — GLOBAL
============================================ */

/* Tablet — 768px and below */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 11px; padding: 8px 16px; }

  .cred-bar { padding: 10px 20px; gap: 8px; }
  .cred-items { gap: 12px; flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand-name { font-size: 18px; }
  footer { padding: 40px 20px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .founders-row { grid-template-columns: 1fr; gap: 3px; }
  .founder-card { min-height: 240px; }
  .founder-card:first-child { border-radius: 14px 14px 0 0; }
  .founder-card:last-child { border-radius: 0; }

  .buddies-grid.g4 { grid-template-columns: repeat(2,1fr); }
  .buddies-grid.g5 { grid-template-columns: repeat(2,1fr); }
  .buddy-photo { height: 150px; }

  .join-strip { flex-direction: column; align-items: flex-start; }
}

/* Mobile — 480px and below */
@media (max-width: 480px) {
  body { font-size: 15px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-tagline { display: none; }

  .buddies-grid.g4, .buddies-grid.g5 { grid-template-columns: repeat(2,1fr); }
  .buddy-photo { height: 130px; }
  .buddy-name { font-size: 12px; }

  .section-h { font-size: 26px; }
  .section-p { font-size: 14px; }
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: rotate(10deg) scale(1.05);
}