/* =========================================
   NoxLogic — Modern Minimal Style
   ========================================= */

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

:root {
  --bg:         #ffffff;
  --bg-alt:     #f7f7f8;
  --surface:    #f2f2f4;
  --surface-hi: #ebebed;
  --border:     #e2e2e6;
  --text:       #111114;
  --text-muted: #5a5a64;
  --text-dim:   #9a9aa4;
  --accent:      #8c1a42;
  --accent-hi:   #6d1230;
  --accent-pale: rgba(140, 26, 66, 0.07);
  --green:       #0d9f6e;

  --php:     #8892bf;
  --symfony: #1a9f6e;
  --go:      #00acd7;
  --python:  #f7c948;
  --rust:    #ce422b;
  --c:       #a8b9cc;
  --aws:     #f90;
  --k8s:     #326ce5;
  --cicd:    #e95420;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --transition: 160ms ease;
}

html { scroll-behavior: smooth; }

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

/* ---- Utilities ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); }

a {
  color: var(--accent-hi);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--text); }

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.7;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 450;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.nav-socials a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.nav-socials a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hi);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(140, 26, 66, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ---- Sections ---- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 560px;
  margin-top: -24px;
  margin-bottom: 40px;
}

/* ---- What I Do cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-icon {
  color: var(--accent);
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
  background: var(--accent-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.card p em {
  color: var(--text);
  font-style: normal;
}

/* ---- Currently Working On ---- */
.work-current {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.work-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 4px;
}

.work-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.work-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.work-body p strong {
  color: var(--text);
  font-weight: 500;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wtag {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.work-history-title {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.work-past {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

/* ---- Experience ---- */
.exp-group {
  margin-bottom: 56px;
}

.exp-group:last-child { margin-bottom: 0; }

.exp-group-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.exp-card:hover {
  border-color: var(--surface-hi);
}

.exp-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lang-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.lang-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.lang-php     { background: #eef0f8; color: #5560a0; border: 1px solid #c8cce8; }
.lang-symfony { background: #edf8f4; color: #157a53; border: 1px solid #b0dece; }
.lang-go      { background: #e6f6fb; color: #007fa8; border: 1px solid #9dd9ef; }
.lang-python  { background: #fdf8e3; color: #8a6e00; border: 1px solid #f0dc8a; }
.lang-rust    { background: #fdf0ee; color: #a83220; border: 1px solid #f0b8b0; }
.lang-c       { background: #f0f3f5; color: #5a6e7a; border: 1px solid #c0cdd5; }
.lang-aws     { background: #fff8e6; color: #8a5a00; border: 1px solid #f5d080; }
.lang-k8s     { background: #eef2fd; color: #2353b8; border: 1px solid #b0c4f5; }
.lang-cicd    { background: #fdf0ec; color: #b03a12; border: 1px solid #f0b898; }

.exp-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Certifications ---- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.cert-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.cert-group-title {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.cert-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* ---- Clients ---- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.clients-grid img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--transition), opacity var(--transition);
}

.clients-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.contact-item svg { color: var(--text-dim); flex-shrink: 0; }
.contact-item a { color: var(--text-muted); }
.contact-item a:hover { color: var(--text); }

.available-badge {
  background: #edfaf4;
  color: var(--green);
  border: 1px solid #aadfca;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--mono);
}

.business-detail {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
}

.recruiter-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
}

.recruiter-note strong {
  color: var(--text);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  margin-left: auto;
}

.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-socials a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-socials a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-photo img {
    width: 140px;
    height: 140px;
  }

  .hero-sub { max-width: 100%; }
  .hero-cta { justify-content: center; }

  .nav-links { display: none; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 48px; }
}

