/* =============================================
   AMBITIOUS BIRDS — STYLESHEET
   Dark editorial aesthetic with amber accents
   ============================================= */

:root {
  --bg:        #0b0c10;
  --surface:   #111318;
  --surface2:  #181b22;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8e9ed;
  --text-muted:#7a7f90;
  --accent:    #f59e0b;
  --accent2:   #fbbf24;
  --accent-dim:rgba(245,158,11,0.12);
  --white:     #ffffff;
  --danger:    #ef4444;
  --radius:    12px;
  --transition:0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
}

/* ---- TYPOGRAPHY ---- */
h1, h2 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.02em; }
h3 { font-family: 'DM Serif Display', serif; font-weight: 400; }
em { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 1.05em; }

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(11,12,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.logo-bird { font-size: 1.3rem; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 99;
}
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}
.mobile-menu.open { display: flex; }

/* ---- SECTIONS / PAGE SYSTEM ---- */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 65px;
  animation: fadeUp 0.5s var(--transition) both;
}
.page.active { display: block; }
.page#hero { padding-top: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.section-header {
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  color: var(--white);
}
.section-title em {
  font-family: 'DM Serif Display', serif;
  color: var(--accent);
  font-size: 1em;
  font-style: italic;
}

/* ---- HERO ---- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: 15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 120px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s both;
}

.hero-title {
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 2rem;
}
.hero-title .line {
  display: block;
  animation: fadeUp 0.6s both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.3s; color: var(--accent); font-family: 'DM Serif Display', serif; font-style: italic; }
.hero-title .line:nth-child(3) { animation-delay: 0.4s; }

.hero-sub {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.6s both;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeUp 0.6s 1s both;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-muted);
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--text) !important;
  line-height: 1.7;
  margin-bottom: 1.5rem !important;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: start;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.value-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.value-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.stat {
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover {
  border-color: rgba(245,158,11,0.4);
  transform: translateY(-4px);
}

.project-img {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card.featured .project-img { height: auto; min-height: 280px; }

.project-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.project-img-icon {
  font-size: 4rem;
  opacity: 0.6;
  /* TODO: Remove this icon once you add a real screenshot/key-art */
}

.project-type {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.6);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.project-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--white);
}
.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-tags span {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.project-status {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
}
.project-status.in-dev {
  background: rgba(245,158,11,0.15);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.3);
}
.project-status.prototype {
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.3);
}
.project-status.released {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.project-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.projects-cta {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.inline-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

/* ---- TEAM ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover {
  border-color: rgba(245,158,11,0.35);
  transform: translateY(-3px);
}

.team-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--bg);
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-info { flex: 1; min-width: 0; }
.team-name {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.team-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.team-links a:hover { color: var(--accent); }
.team-links-placeholder { display: none; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-copy .lead { margin-bottom: 2rem; }
.contact-channels { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-channel { display: flex; flex-direction: column; gap: 0.25rem; }
.channel-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.channel-value {
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
a.channel-value:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group select option { background: var(--surface2); }
.form-submit { margin-top: 0.5rem; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2rem;
}

/* ---- FOOTER ---- */
#footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-bird.large { font-size: 1.8rem; }
.footer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-links button:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 1.25rem;
}
.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ---- NAV ACTIVE STATE ---- */
.nav-links a.nav-active {
  color: var(--accent) !important;
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- CLICKABLE PROJECT CARDS ---- */
.project-card[role="button"] {
  cursor: pointer;
}
.project-card[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- PROJECT OVERLAY ---- */
.project-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}
.project-overlay.open {
  display: flex;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.overlay-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s, border-color 0.2s;
}
.overlay-close:hover { color: var(--white); border-color: var(--text-muted); }

.overlay-hero {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px 20px 0 0;
  position: relative;
}
.overlay-emoji { font-size: 4.5rem; }
.overlay-type {
  position: absolute;
  top: 1rem; left: 1.5rem;
  background: rgba(0,0,0,0.5);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.overlay-body {
  padding: 2rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.overlay-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--white);
  font-weight: 400;
}
.overlay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.overlay-tags span {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-weight: 500;
}
.overlay-desc p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}
.overlay-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  display: inline-block;
  text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }

  .project-card.featured {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .projects-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .section-inner { padding: 3.5rem 1.25rem 4rem; }
  .hero-content { padding: 0 1.25rem; padding-top: 110px; }
  .hero-title { font-size: clamp(3.5rem, 14vw, 5.5rem); }
  .about-values { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .team-card { flex-direction: column; }
  .contact-form { padding: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-scroll-hint { display: none; }
}
