/* ==========================================================================
   Mohd Zeeshan — Portfolio Design System
   Inspired by Chandan Tiwari's Editorial Minimalist Portfolio
   Palette: Warm Paper (#F6F5F1) | Deep Ink (#171A1D) | Acid Lime (#D9FF58)
            Terracotta Coral (#E07A5F) | Forest Green (#2D4B42) | Soft Peach (#F0B29E)
   Fonts: 'Playfair Display' (Headings) | 'DM Sans' (Body) | 'DM Mono' (Code/Tags)
   ========================================================================== */

:root {
  --ink: #171a1d;
  --muted: #6f7478;
  --paper: #f6f5f1;
  --line: #dcded8;
  --acid: #d9ff58;
  --green: #2d4b42;
  --coral: #e07a5f;
  --peach: #f0b29e;
  --cloud: #20262e;
  --sand: #e8e4db;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--paper);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
}

/* Layout Shell */
.shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font: 500 13px/1 'DM Mono', monospace;
  position: relative;
  z-index: 100;
}

.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--ink);
}

.wordmark span {
  color: var(--coral);
}

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

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.linkedin-link:hover {
  color: var(--coral);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-block: 76px 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font: 500 11px/1.4 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--coral);
  border-radius: 50%;
  vertical-align: middle;
}

h1, h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(56px, 7.5vw, 102px);
}

h2 {
  font-size: clamp(38px, 4.8vw, 68px);
}

h1 em, h2 em, .statement em {
  color: var(--coral);
  font-style: italic;
  font-weight: inherit;
}

.intro {
  max-width: 490px;
  margin: 28px 0 34px 0;
  color: #454a4d;
  font-size: 18.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button-solid {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.button-solid:hover {
  background: #252a2e;
}

.button-quiet {
  background: transparent;
  border: 1px solid #bcbfba;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
}

.badge-mini {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(23, 26, 29, 0.08);
  border-radius: 2px;
}

/* ==========================================================================
   Portrait & Orbital Composition
   ========================================================================== */

.portrait-wrap {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portrait-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(23, 26, 29, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 410px;
  height: 400px;
  transform: rotate(-12deg);
  animation: orbitSpin 32s linear infinite;
}

.orbit-two {
  width: 470px;
  height: 320px;
  transform: rotate(44deg);
  animation: orbitSpinRev 38s linear infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinRev {
  from { transform: rotate(44deg); }
  to { transform: rotate(-316deg); }
}

.portrait-backdrop {
  position: absolute;
  z-index: 1;
  width: 320px;
  height: 350px;
  background: var(--acid);
  border-radius: 49% 51% 28% 72% / 54% 39% 61% 46%;
  animation: morphBlob 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 14px 28px rgba(217, 255, 88, 0.4));
  transform: translate(-15px, -15px);
}

@keyframes morphBlob {
  0% { border-radius: 49% 51% 28% 72% / 54% 39% 61% 46%; }
  50% { border-radius: 58% 42% 44% 56% / 44% 56% 44% 56%; }
  100% { border-radius: 42% 58% 34% 66% / 60% 40% 58% 42%; }
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 375px;
  border-radius: 145px 145px 24px 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(23, 26, 29, 0.2), 0 0 0 4px #ffffff;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portrait-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(23, 26, 29, 0.26), 0 0 0 4px #ffffff;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.status-card {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  right: -10px;
  padding: 12px 16px;
  max-width: 250px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(36, 40, 40, 0.12);
  font: 11.5px/1.4 'DM Mono', monospace;
  border: 1px solid var(--line);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #47b881;
  border-radius: 50%;
  box-shadow: 0 0 8px #47b881;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================================================
   Editorial Philosophy Statement
   ========================================================================== */

.statement {
  padding: 80px max(8%, 60px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.statement p {
  margin: 0;
  font: 600 clamp(24px, 3.3vw, 44px)/1.18 'Playfair Display', serif;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* ==========================================================================
   Work Section (Things I've Built)
   ========================================================================== */

.section {
  padding-block: 120px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  margin-top: 20px;
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-card {
  min-height: 470px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(23, 26, 29, 0.12);
}

.academy {
  background: var(--green);
  color: #f5f5ef;
}

.library {
  background: var(--peach);
  color: #20201e;
}

.cloud {
  background: var(--cloud);
  color: #f5f5ef;
}

.k8s {
  background: var(--sand);
  color: #171a1d;
  border: 1px solid var(--line);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 11px 'DM Mono', monospace;
  letter-spacing: 0.05em;
}

.product-mark {
  margin: 0 0 28px;
  font: 600 42px 'DM Mono', monospace;
  line-height: 1;
}

.academy .product-mark { color: var(--acid); }
.library .product-mark { color: #ffffff; }
.cloud .product-mark { color: #38bdf8; }
.k8s .product-mark { color: var(--green); }

.product-card h3 {
  margin: 0 0 14px;
  font: 600 clamp(28px, 2.6vw, 36px)/1.08 'Playfair Display', serif;
  letter-spacing: -0.045em;
}

.product-card p:not(.product-mark) {
  max-width: 360px;
  margin: 0;
  line-height: 1.55;
  font-size: 15px;
  opacity: 0.92;
}

.product-footer {
  font: 600 12px 'DM Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  transition: opacity 0.2s ease;
}

.product-footer:hover {
  opacity: 0.75;
}

/* ==========================================================================
   DevOps Stack / Toolchain Section (Inverted Dark Section)
   ========================================================================== */

.watch-section {
  background: var(--ink);
  color: #f6f5f1;
}

.watch-section .eyebrow {
  color: #b5b9b5;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.channel-card {
  min-height: 240px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 20px;
  background: #252a2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-5px);
  background: #2d3338;
}

.channel-card.life {
  background: #25332a;
}

.channel-card.life:hover {
  background: #2b3b31;
}

.channel-badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 18px;
}

.channel-badge-icon.coral {
  background: var(--coral);
  color: #ffffff;
}

.channel-badge-icon.sky {
  background: #0284c7;
  color: #ffffff;
}

.channel-card span {
  color: #bfc4be;
  font: 11px 'DM Mono', monospace;
  letter-spacing: 0.05em;
}

.channel-card h3 {
  margin: 10px 0 8px;
  font: 600 24px/1.1 'Playfair Display', serif;
  letter-spacing: -0.035em;
}

.channel-card p {
  max-width: 320px;
  margin: 0 0 12px 0;
  color: #d1d4d1;
  font-size: 14px;
  line-height: 1.5;
}

.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-mini-pill {
  font: 10px 'DM Mono', monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 2px;
  color: #e2e8f0;
}

/* ==========================================================================
   Milestones & Notes Wall (Tilted Cards)
   ========================================================================== */

.notes-section {
  overflow: hidden;
}

.notes-heading {
  margin-bottom: 48px;
}

.comment-wall {
  position: relative;
  height: 740px;
}

.comment {
  position: absolute;
  width: min(47%, 520px);
  background: #ffffff;
  padding: 24px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 13px 34px rgba(32, 37, 40, 0.09);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: default;
}

.comment:hover {
  z-index: 10 !important;
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 0 20px 42px rgba(32, 37, 40, 0.16);
}

.comment-tag {
  font: 10.5px 'DM Mono', monospace;
  color: var(--coral);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.comment-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.comment-desc {
  font-size: 13.5px;
  color: #555b5d;
  line-height: 1.5;
  margin: 0;
}

/* Tilted Card Wall Coordinates */
.comment-1 { left: 1%; top: 2%; transform: rotate(-2deg); }
.comment-2 { right: 1%; top: 5%; transform: rotate(2deg); }
.comment-3 { left: 6%; top: 26%; transform: rotate(1.4deg); }
.comment-4 { right: 5%; top: 29%; transform: rotate(-1.5deg); }
.comment-5 { left: 2%; top: 51%; transform: rotate(1deg); }
.comment-6 { right: 3%; top: 54%; transform: rotate(-2deg); }
.comment-7 { left: 10%; top: 74%; transform: rotate(-1.2deg); }
.comment-8 { right: 7%; top: 76%; transform: rotate(2deg); }

/* ==========================================================================
   Closing & Contact Section
   ========================================================================== */

.closing {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
  padding-block: 105px 95px;
  border-top: 1px solid var(--line);
}

.closing p:not(.eyebrow) {
  margin: 22px 0 32px;
  max-width: 460px;
  color: #555b5d;
  font-size: 17px;
  line-height: 1.6;
}

.direct-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.copy-email-pill,
.phone-link-pill,
.location-info-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  font: 12px 'DM Mono', monospace;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.copy-email-pill,
.phone-link-pill {
  cursor: pointer;
}

.copy-email-pill:hover,
.phone-link-pill:hover {
  transform: translateX(4px);
  border-color: var(--coral);
}

.pill-label {
  color: var(--muted);
  font-weight: 500;
  margin-right: 8px;
}

.pill-val {
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.pill-badge {
  color: var(--coral);
  font-weight: 700;
}

/* Contact Form */
.closing-form-wrap {
  background: #ffffff;
  padding: 36px 32px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(32, 37, 40, 0.06);
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font: 500 11px 'DM Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--ink);
  background: #ffffff;
}

.submit-btn {
  justify-content: center;
  margin-top: 6px;
  padding: 14px 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 12px 'DM Mono', monospace;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--coral);
}

/* Toast Capsule */
.editorial-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--ink);
  color: #ffffff;
  font: 12px 'DM Mono', monospace;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.editorial-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-indicator {
  width: 8px;
  height: 8px;
  background: #47b881;
  border-radius: 50%;
}

/* ==========================================================================
   Mobile & Android Responsiveness
   ========================================================================== */

@media (max-width: 768px) {
  .shell {
    width: min(100% - 36px, 1180px);
  }

  .nav {
    height: 70px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 56px 36px;
    gap: 36px;
  }

  .portrait-wrap {
    min-height: 380px;
  }

  .portrait-backdrop {
    width: 260px;
    height: 290px;
    transform: translate(-10px, -10px);
  }

  .portrait-frame {
    width: 240px;
    height: 310px;
    border-radius: 120px 120px 20px 20px;
  }

  .orbit-one {
    width: 320px;
    height: 310px;
  }

  .orbit-two {
    width: 360px;
    height: 250px;
  }

  .status-card {
    right: 0;
    bottom: 10px;
    max-width: 220px;
    font-size: 10.5px;
    padding: 10px 12px;
  }

  .statement {
    padding: 55px 12px;
  }

  .section {
    padding-block: 80px;
  }

  .product-grid,
  .channel-grid,
  .closing {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    min-height: 380px;
    padding: 26px;
  }

  .channel-card {
    min-height: 200px;
    padding: 22px;
    gap: 16px;
  }

  .comment-wall {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .comment {
    position: static;
    width: 100%;
    transform: none !important;
  }

  .closing {
    padding-block: 60px 40px;
  }

  .closing-form-wrap {
    padding: 24px 18px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 24px;
  }
}

/* Compact Android screens (<= 480px) */
@media (max-width: 480px) {
  .shell {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 44px;
    line-height: 0.98;
  }

  h2 {
    font-size: 32px;
    line-height: 1.02;
  }

  .intro {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .portrait-wrap {
    min-height: 330px;
  }

  .portrait-backdrop {
    width: 220px;
    height: 250px;
    transform: translate(-8px, -8px);
  }

  .portrait-frame {
    width: 200px;
    height: 260px;
    border-radius: 100px 100px 16px 16px;
  }

  .orbit-one {
    width: 260px;
    height: 250px;
  }

  .orbit-two {
    width: 290px;
    height: 200px;
  }

  .pill-val {
    word-break: break-all;
  }
}
