/* ============================================================
   MOHAMMED LASLAA — Design System
   Aesthetic: Dark editorial, luxury minimal, typographic-led
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0a0a0f;
  --bg-2:        #111118;
  --bg-card:     #13131c;
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.15);
  --text:        #e8e8f0;
  --text-muted:  #7a7a96;
  --accent:      #6c63ff;
  --accent-warm: #ff6b35;
  --accent-glow: rgba(108,99,255,0.25);
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   20px;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --max-w:       1160px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Noise texture overlay ─────────────────────────────────── */
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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Layout shell ──────────────────────────────────────────── */
.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.topbar.scrolled {
  padding: 1rem 3rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #9b5de5);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── Typography ────────────────────────────────────────────── */
h1 { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--white); font-weight: 400; }
h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--white); font-weight: 400; }
h3 { font-size: 1.125rem; font-weight: 600; color: var(--white); letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 30px var(--accent-glow);
}

.button-primary:hover {
  background: #7b74ff;
  box-shadow: 0 0 40px rgba(108,99,255,0.4);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-h);
}

.button-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.hero-copy > * + * { margin-top: 1.5rem; }

.hero-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-highlights {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Hero Panel ────────────────────────────────────────────── */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
}

.stat-card, .stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.625rem;
}

.stat-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Tag Row ───────────────────────────────────────────────── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag-row span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  background: rgba(108,99,255,0.12);
  color: #a099ff;
  border-radius: 100px;
  border: 1px solid rgba(108,99,255,0.2);
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section + .section {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-heading p { margin-top: 0.75rem; color: var(--text-muted); font-size: 1rem; }

/* ── Grid ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split-grid { grid-template-columns: 1fr 1fr; }

/* ── Service Cards ─────────────────────────────────────────── */
.service-card { position: relative; overflow: hidden; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #9b5de5);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before { opacity: 1; }

.card-index {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: rgba(108,99,255,0.15);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.service-card h3 { margin-bottom: 0.625rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ── Check List ────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.check-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: rgba(108,99,255,0.15);
  color: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Narrative Card ────────────────────────────────────────── */
.narrative-card { display: flex; flex-direction: column; gap: 1rem; }
.narrative-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }

.checklist-card h3 { margin-bottom: 1.25rem; }

/* ── CTA Banner ────────────────────────────────────────────── */
.section-cta { padding-top: 0; }

.cta-banner {
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(155,93,229,0.08));
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); max-width: 480px; }

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
  max-width: 720px;
  padding-left: 3rem;
}

.page-hero h1 { margin: 1rem 0; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.75; }

/* ── Project Cards ─────────────────────────────────────────── */
.project-card {
  max-width: var(--max-w);
  margin: 0 auto 2rem;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project-card-alt { direction: ltr; }
.project-card-alt .project-visual { order: 2; }
.project-card-alt .project-details { order: 1; }

.project-visual {
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.visual-digitevo {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  border: 1px solid rgba(108,99,255,0.2);
}

.visual-luzalya {
  background: linear-gradient(160deg, #1a0a2e 0%, #2d1b69 40%, #11998e 100%);
  border: 1px solid rgba(17,153,142,0.2);
}

.visual-label {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.project-visual h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.project-visual p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.project-details { padding: 1rem 0; }
.project-details > * + * { margin-top: 1.25rem; }
.project-details h3 { margin-top: 0.75rem; }
.project-details p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }

.detail-list { display: flex; flex-direction: column; gap: 0.5rem; }
.detail-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.detail-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── What I Bring section ──────────────────────────────────── */
.section-services {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
}

/* ── Contact Layout ────────────────────────────────────────── */
.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.contact-card h2, .form-card h2 { font-size: 1.5rem; margin: 0.5rem 0 1.5rem; }

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-points a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-points a:hover { color: var(--white); }
.contact-points a:last-child { border-bottom: none; }

.availability-card {
  background: rgba(108,99,255,0.06);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.availability-card .stat-label { margin-bottom: 1rem; }

/* ── Form ──────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(122,122,150,0.5);
}

.contact-form select option { background: var(--bg-2); }

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form .button { align-self: flex-start; width: 100%; justify-content: center; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--white); }

/* ── Reveal animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}


/* ── Photo Card ────────────────────────────────────────────── */
.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.hero-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
  transition: filter var(--transition);
}

.photo-card:hover .hero-photo {
  filter: grayscale(0%);
}

.photo-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border-h);
  color: var(--text);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .topbar { padding: 1rem 1.5rem; }
  
  .menu-toggle { display: block; }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
  }

  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 1rem; }

  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
    gap: 2.5rem;
  }

  .hero-panel { padding-top: 0; }

  .section { padding: 3rem 1.5rem; }
  .section-services { padding: 1rem 1.5rem 3rem; }
  .split-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .page-hero { padding: 4rem 1.5rem 2.5rem; }

  .project-card {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .project-card-alt .project-visual { order: 0; }
  .project-card-alt .project-details { order: 0; }

  .project-visual { min-height: 260px; }

  .contact-layout {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 3rem;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
