/* ============================================================
   CLEVER CODE — Portfolio CSS
   Theme: Refined Dark Professional
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
/* Logo colours: gold #C9922A / #B8811F, navy #1B2A4A / #0F1D35   */
:root {
  --bg:          #0e1521;
  --bg-2:        #152035;  /* deep logo-navy shifted slightly warmer */
  --bg-3:        #1a2840;
  --border:      #263552;
  --accent:      #C9922A;  /* logo gold — mid-tone, rich */
  --accent-hi:   #D9A84A;  /* logo gold highlight */
  --accent-dim:  #8F6318;
  --accent-glow: rgba(201, 146, 42, 0.14);
  --navy:        #1B2A4A;  /* logo dark navy */
  --text:        #dde4ef;
  --text-2:      #8898b4;
  --text-3:      #4e5f7a;
  --white:       #ffffff;
  --danger:      #f85149;
  --success:     #3fb950;
  --info:        #58a6ff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:   8px;
  --radius-lg: 16px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);

  --nav-height: 64px;
  --max-width:  1100px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); }
.section--border-top { border-top: 1px solid var(--border); }

.label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #0e1521;
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-hi);
  color: #0e1521;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,146,42,.4);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
  font-size: .9rem;
}
.btn--ghost:hover { color: var(--white); }
.btn--ghost svg { transition: transform .2s; }
.btn--ghost:hover svg { transform: translateX(4px); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(14, 21, 33, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.nav__logo img {
  height: 40px;
  width: auto;
  /* Logo has a cream/light background — invert not needed on dark nav;
     use a subtle filter to lift it off the dark bar */
  filter: brightness(1.05);
}
.nav__logo-mark {
  display: none; /* replaced by real logo image */
}
.nav__logo-text {
  display: none; /* text is in the logo image */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all .2s;
  text-decoration: none;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: var(--bg-2);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
}
.nav__mobile.open { display: block; }
.nav__mobile ul { list-style: none; }
.nav__mobile ul li a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav__mobile ul li:last-child a { border-bottom: none; }
.nav__mobile .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(201,146,42,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(27,42,74,.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,162,39,.1);
  border: 1px solid rgba(232,162,39,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: .04em;
}
.hero__eyebrow span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-style: italic;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  display: block;
}
.hero__stat-label {
  font-size: .8rem;
  color: var(--text-2);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── About ─────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__skills {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  transition: all .2s;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s;
}
.about__card:hover { border-color: rgba(232,162,39,.3); }

.about__card-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(232,162,39,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.about__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}
.about__card p { color: var(--text-2); font-size: .92rem; line-height: 1.7; }

/* ── Services / Expertise ──────────────────────────────────── */
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { border-color: rgba(232,162,39,.3); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 12px;
}
.service-card p { color: var(--text-2); font-size: .92rem; line-height: 1.75; }

/* ── Projects ──────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
}

.project-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: rgba(232,162,39,.3); transform: translateY(-3px); box-shadow: var(--shadow); }

.project-card__img {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.project-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.project-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge--flutter { background: rgba(88,166,255,.15); color: #58a6ff; border: 1px solid rgba(88,166,255,.2); }
.badge--ai      { background: rgba(139,92,246,.15); color: #a78bfa; border: 1px solid rgba(139,92,246,.2); }
.badge--rpa     { background: rgba(232,162,39,.15); color: var(--accent); border: 1px solid rgba(232,162,39,.2); }
.badge--webapp  { background: rgba(63,185,80,.15); color: #3fb950; border: 1px solid rgba(63,185,80,.2); }
.badge--automation { background: rgba(248,81,73,.15); color: #f85149; border: 1px solid rgba(248,81,73,.2); }

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.status-live    { background: #3fb950; box-shadow: 0 0 6px #3fb950; }
.status-progress { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: pulse 2s infinite; }
.status-mvp     { background: #58a6ff; box-shadow: 0 0 6px #58a6ff; }
.status-archived { background: var(--text-3); }

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}
.project-card p { color: var(--text-2); font-size: .88rem; line-height: 1.65; flex: 1; }

.project-card__links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
.project-link:hover { color: var(--accent); }

/* ── Warp Section ──────────────────────────────────────────── */
.warp-hero {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}
.warp-hero::after {
  content: 'W';
  position: absolute;
  right: -20px; top: -40px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18rem;
  color: rgba(232,162,39,.05);
  pointer-events: none;
  line-height: 1;
}

.warp-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 500;
  color: #58a6ff;
  margin-bottom: 24px;
  letter-spacing: .04em;
}

.warp-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.warp-hero p { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; max-width: 540px; }

.warp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.warp-feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.warp-feature h4 { color: var(--white); font-size: .95rem; margin-bottom: 4px; font-weight: 500; }
.warp-feature p { color: var(--text-2); font-size: .82rem; line-height: 1.6; }

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.roadmap::before {
  content: '';
  position: absolute;
  left: 8px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
}

.roadmap__item {
  position: relative;
  padding: 12px 0 24px 20px;
}
.roadmap__item::before {
  content: '';
  position: absolute;
  left: -20px; top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}
.roadmap__item.complete::before { background: var(--accent); border-color: var(--accent); }
.roadmap__item.in-progress::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2s infinite;
}

.roadmap__phase {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.roadmap__title { color: var(--white); font-weight: 500; font-size: .95rem; }
.roadmap__status {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: 2px;
  text-transform: capitalize;
}

/* ── Resume / CTA ──────────────────────────────────────────── */
.resume-strip {
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(232,162,39,.08) 100%);
  border: 1px solid rgba(232,162,39,.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.resume-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 8px;
}
.resume-strip p { color: var(--text-2); font-size: .95rem; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--white);
  transform: translateX(4px);
}
.contact-link__icon {
  width: 40px; height: 40px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-link__text strong { display: block; color: var(--white); font-size: .9rem; }
.contact-link__text span { color: var(--text-2); font-size: .82rem; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 500; color: var(--text-2); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 12px 16px;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-2);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__logo img { height: 36px; width: auto; opacity: .85; }
.footer__logo img:hover { opacity: 1; }
.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a { color: var(--text-2); font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: var(--white); }
.footer__copy { color: var(--text-3); font-size: .82rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: .9rem;
  transition: all .2s;
  text-decoration: none;
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── Section Header Layout ─────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
}
.section-header--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Scroll fade-in animations ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .warp-hero { padding: 40px; }
  .warp-hero::after { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .resume-strip { flex-direction: column; text-align: center; }
  .resume-strip .btn-group { justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
  .hero__stats { gap: 24px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.4rem; }
  .warp-hero { padding: 28px; }
}
