/* =========================================================
   MHD. RIDWAN — PROFESSIONAL PORTFOLIO
   Full visual refresh
========================================================= */

/* =========================================================
   01. DESIGN TOKENS
========================================================= */

:root {
  /* Main */
  --bg: #f5f7fa;
  --bg-soft: #edf1f6;
  --white: #ffffff;

  /* Typography */
  --text: #101828;
  --text-dark: #0b1220;
  --text-soft: #667085;
  --text-muted: #98a2b3;

  /* Lines */
  --line: #e4e7ec;
  --line-dark: #d0d5dd;

  /* Accent */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  /* Status */
  --green: #12b76a;

  /* Effects */
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.05);

  --shadow-md: 0 18px 45px rgba(16, 24, 40, 0.08);

  --shadow-lg: 0 30px 80px rgba(16, 24, 40, 0.12);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Type */
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --display:
    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   02. RESET
========================================================= */

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

html {
  font-size: 13px;

  scroll-behavior: smooth;

  overflow-x: hidden;
}

body {
  min-width: 320px;

  background: var(--bg);

  color: var(--text);

  font-family: var(--sans);

  line-height: 1.5;

  overflow-x: hidden;
}

body::selection {
  background: var(--primary);

  color: #fff;
}

a {
  color: inherit;

  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;

  max-width: 100%;
}

button {
  cursor: pointer;
}

/* =========================================================
   03. GLOBAL CONTAINER
========================================================= */

.container {
  width: min(1180px, calc(100% - 64px));

  margin-inline: auto;
}

/* =========================================================
   04. HEADER
========================================================= */

.header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  height: 74px;

  z-index: 999;

  padding: 0 max(32px, calc((100vw - 1180px) / 2));

  display: flex;

  align-items: center;

  justify-content: space-between;

  background: rgba(245, 247, 250, 0.82);

  backdrop-filter: blur(18px);

  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(228, 231, 236, 0.75);

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.94);

  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
}

.logo {
  font-family: var(--display);

  font-size: 1.55rem;

  font-weight: 700;

  letter-spacing: -0.04em;

  color: var(--text);
}

.logo::after {
  content: ".";

  color: var(--primary);
}

.navbar {
  display: flex;

  align-items: center;

  gap: 3.4rem;
}

.navbar a {
  position: relative;

  color: var(--text-soft);

  font-size: 1.15rem;

  font-weight: 500;

  transition: color 0.2s ease;
}

.navbar a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -7px;

  width: 0;

  height: 1.5px;

  background: var(--primary);

  transition: width 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.navbar a:hover,
.navbar a.active {
  color: var(--text);
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 9px 13px;

  border: 1px solid var(--line);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.8);

  color: var(--text);

  font-size: 1rem;

  font-weight: 500;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-cta span {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: var(--green);

  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.09);
}

.header-cta:hover {
  transform: translateY(-1px);

  border-color: #cfd6e2;

  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;

  width: 42px;

  height: 42px;

  border: 1px solid var(--line);

  border-radius: 10px;

  background: #fff;

  color: var(--text);

  font-size: 1.8rem;
}

/* =========================================================
   05. HERO
========================================================= */

.home {
  min-height: 100vh;

  padding: 128px 0 76px;

  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 0.92fr);

  align-items: center;

  gap: 80px;

  width: min(1280px, calc(100% - 64px));

  margin-inline: auto;
}

/*
  Very subtle background structure.
*/

.home::before {
  content: "";

  position: absolute;

  width: 540px;

  height: 540px;

  right: -200px;

  top: 110px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.085),
    transparent 67%
  );

  pointer-events: none;
}

.home-content {
  position: relative;

  z-index: 2;

  max-width: 650px;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: var(--primary);

  font-size: 1rem;

  font-weight: 600;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 26px;

  height: 1px;

  background: var(--primary);
}

.home-content h1 {
  margin-top: 2.2rem;

  font-family: var(--display);

  font-size: clamp(7.5rem, 9vw, 12rem);

  line-height: 0.82;

  letter-spacing: -0.09em;

  font-weight: 650;

  color: var(--text);
}

.home-content h1 em {
  color: var(--primary);

  font-family: Georgia, "Times New Roman", serif;

  font-weight: 400;

  font-style: normal;

  letter-spacing: -0.065em;
}

.role-line {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 0.8rem;

  margin-top: 3.5rem;

  min-height: 3.5rem;

  color: var(--text);

  font-size: 2.2rem;

  line-height: 1.2;
}

.role-line strong {
  position: relative;

  min-width: 300px;

  color: var(--primary);

  font-family: Georgia, "Times New Roman", serif;

  font-style: italic;

  font-weight: 400;
}

.role-line .caret {
  width: 2px;

  height: 2.2rem;

  background: var(--primary);

  animation: caretBlink 1s step-end infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.hero-copy {
  max-width: 565px;

  margin-top: 1.8rem;

  color: var(--text-soft);

  font-size: 1.35rem;

  line-height: 1.85;
}

.hero-actions {
  display: flex;

  align-items: center;

  gap: 1.2rem;

  flex-wrap: wrap;

  margin-top: 3rem;
}

.btn {
  min-height: 47px;

  padding: 0 1.7rem;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 1rem;

  border: 1px solid transparent;

  border-radius: 10px;

  font-size: 1.1rem;

  font-weight: 600;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  color: #fff;

  background: var(--primary);

  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.btn-primary:hover {
  background: var(--primary-dark);

  transform: translateY(-2px);

  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.21);
}

.btn-secondary {
  color: var(--text);

  border-color: var(--line);

  background: #fff;
}

.btn-secondary:hover {
  transform: translateY(-2px);

  border-color: #cfd6e2;

  box-shadow: var(--shadow-sm);
}

.social-icons {
  display: flex;

  align-items: center;

  gap: 1.8rem;

  margin-top: 3rem;
}

.social-icons a {
  color: var(--text-muted);

  font-size: 1rem;

  font-weight: 500;

  position: relative;

  transition: color 0.2s ease;
}

.social-icons a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -5px;

  width: 100%;

  height: 1px;

  background: currentColor;

  transform: scaleX(0);

  transform-origin: right;

  transition: transform 0.25s ease;
}

.social-icons a:hover {
  color: var(--primary);
}

.social-icons a:hover::after {
  transform: scaleX(1);

  transform-origin: left;
}

/* =========================================================
   HERO VISUAL
========================================================= */

.home-visual {
  min-height: 650px;

  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;
}

.portrait-wrap {
  width: min(440px, 100%);

  height: 610px;

  position: relative;

  overflow: hidden;

  border-radius: 24px;

  background: #dfe6ef;

  box-shadow: var(--shadow-lg);
}

.portrait-bg {
  position: absolute;

  inset: 0;

  background: linear-gradient(145deg, #d8e3f1, #edf2f7);
}

.portrait {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center 43%;

  filter: saturate(0.82) contrast(1.04);

  position: relative;

  z-index: 2;

  transform: scale(1.025);

  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.portrait-wrap:hover .portrait {
  transform: scale(1.045);
}

.portrait-shade {
  position: absolute;

  inset: 0;

  z-index: 3;

  pointer-events: none;

  background:
    linear-gradient(to bottom, transparent 55%, rgba(8, 18, 35, 0.18) 100%),
    linear-gradient(90deg, rgba(247, 248, 250, 0.15), transparent 30%);
}

.portrait-label {
  position: absolute;

  z-index: 5;

  left: 18px;

  bottom: 17px;

  color: #fff;

  font-size: 0.9rem;

  font-weight: 500;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.visual-badge {
  position: absolute;

  z-index: 10;

  background: rgba(255, 255, 255, 0.9);

  border: 1px solid rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.1);

  border-radius: 12px;
}

.badge-top {
  top: 12%;

  left: -4%;

  min-width: 135px;

  padding: 13px 15px;
}

.badge-bottom {
  right: -5%;

  bottom: 12%;

  min-width: 215px;

  padding: 14px 16px;
}

.visual-badge span {
  display: block;

  margin-bottom: 3px;

  color: var(--text-muted);

  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.visual-badge b {
  display: block;

  color: var(--text);

  font-size: 1.1rem;

  font-weight: 600;
}

.badge-top::before,
.badge-bottom::before {
  content: "";

  display: inline-block;

  width: 6px;

  height: 6px;

  margin-right: 7px;

  border-radius: 50%;

  background: var(--green);

  vertical-align: middle;
}

.badge-top span,
.badge-bottom span {
  display: inline;
}

.badge-top b,
.badge-bottom b {
  margin-top: 4px;
}

/* =========================================================
   INTRO SECTION
========================================================= */

.intro-section {
  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);

  background: #fff;
}

.intro-grid {
  display: grid;

  grid-template-columns:
    1.45fr
    0.55fr;

  gap: 5rem;

  align-items: end;

  padding: 70px 0;
}

.intro-quote {
  max-width: 900px;

  font-family: var(--display);

  font-size: clamp(3rem, 4vw, 5.2rem);

  line-height: 1.03;

  letter-spacing: -0.055em;
}

.intro-quote em {
  color: var(--primary);

  font-family: Georgia, "Times New Roman", serif;

  font-weight: 400;
}

.intro-note {
  max-width: 300px;

  color: var(--text-soft);

  font-size: 1.15rem;

  line-height: 1.7;
}

/* =========================================================
   SECTION
========================================================= */

.section {
  padding: 125px 0;

  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;

  grid-template-columns:
    0.35fr
    1.2fr
    0.45fr;

  gap: 3rem;

  align-items: end;

  margin-bottom: 55px;
}

.section-head > div {
  align-self: start;
}

.section-number {
  color: var(--primary);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 1.8rem;

  margin-right: 1.1rem;
}

.section-kicker {
  color: var(--text-muted);

  font-size: 1rem;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.section-head h2 {
  color: var(--text);

  font-family: var(--display);

  font-size: clamp(4.5rem, 5.8vw, 7.2rem);

  line-height: 0.94;

  letter-spacing: -0.065em;

  font-weight: 600;
}

.section-head h2 em {
  color: var(--primary);

  font-family: Georgia, "Times New Roman", serif;

  font-weight: 400;
}

.section-head > p {
  color: var(--text-soft);

  font-size: 1.15rem;

  line-height: 1.75;

  max-width: 290px;
}

/* =========================================================
   SKILLS
========================================================= */

.skills-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.skill-card {
  min-height: 335px;

  padding: 28px;

  position: relative;

  overflow: hidden;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;

  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.skill-card:hover {
  transform: translateY(-7px);

  border-color: #d5dbe4;

  box-shadow: var(--shadow-md);
}

.skill-index {
  position: relative;

  z-index: 3;

  color: var(--primary);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 1.8rem;
}

.skill-card h3 {
  position: relative;

  z-index: 3;

  margin-top: 150px;

  color: var(--text);

  font-family: var(--display);

  font-size: 2.8rem;

  line-height: 1;

  letter-spacing: -0.045em;
}

.skill-card p {
  position: relative;

  z-index: 3;

  max-width: 300px;

  margin-top: 1rem;

  color: var(--text-soft);

  font-size: 1.15rem;

  line-height: 1.65;
}

.skill-lines {
  position: absolute;

  width: 190px;

  height: 190px;

  right: -60px;

  top: -50px;

  border: 1px solid rgba(37, 99, 235, 0.13);

  border-radius: 50%;

  transition: transform 0.5s ease;
}

.skill-lines::before,
.skill-lines::after {
  content: "";

  position: absolute;

  border: 1px solid rgba(37, 99, 235, 0.11);

  border-radius: 50%;
}

.skill-lines::before {
  inset: 22px;
}

.skill-lines::after {
  inset: 48px;
}

.skill-card:hover .skill-lines {
  transform: rotate(28deg) scale(1.08);
}

.skill-lines.security {
  border-color: rgba(245, 114, 64, 0.16);
}

.skill-lines.security::before,
.skill-lines.security::after {
  border-color: rgba(245, 114, 64, 0.12);
}

.skill-lines.software {
  border-color: rgba(16, 185, 129, 0.15);
}

.skill-lines.software::before,
.skill-lines.software::after {
  border-color: rgba(16, 185, 129, 0.11);
}

/* =========================================================
   PROJECT GRID
========================================================= */

.project-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px;
}

.project-card {
  position: relative;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;

  min-height: 100%;

  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);

  border-color: #d0d5dd;

  box-shadow: var(--shadow-md);
}

/*
  FEATURED PROJECT

  The first project is intentionally larger.
*/

.project-card.featured {
  grid-column: span 2;
}

.project-card.featured .project-body {
  padding: 30px 32px 28px;
}

.project-card.featured .project-body h3 {
  max-width: 900px;

  font-size: clamp(2.7rem, 3vw, 4rem);
}

/* =========================================================
   PROJECT BODY
========================================================= */

.project-body {
  position: relative;

  padding: 24px 25px 26px;

  display: flex;

  flex-direction: column;

  flex: 1;
}

.project-meta {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 1rem;

  margin-bottom: 10px;

  color: var(--text-muted);

  font-size: 0.88rem;

  font-weight: 600;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.project-meta span:last-child {
  color: #c0c7d2;
}

.project-body h3 {
  color: var(--text);

  font-family: var(--display);

  font-size: 2.3rem;

  line-height: 1.12;

  letter-spacing: -0.045em;

  font-weight: 600;
}

.project-body p {
  max-width: 690px;

  margin-top: 1rem;

  color: var(--text-soft);

  font-size: 1.16rem;

  line-height: 1.72;
}

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 17px;
}

.tags span {
  padding: 6px 8px;

  border: 1px solid #e4e7ec;

  border-radius: 6px;

  background: #f8fafc;

  color: #667085;

  font-size: 0.82rem;

  font-weight: 600;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.project-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-top: auto;

  padding-top: 20px;

  color: var(--primary);

  font-size: 1rem;

  font-weight: 600;
}

/* =========================================================
   PROJECT ART
========================================================= */

.project-art {
  min-height: 260px;

  position: relative;

  overflow: hidden;

  background: #edf2f7;
}

.project-card.featured .project-art {
  min-height: 410px;
}

/* Generic architecture background */

.project-art::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);

  background-size: 32px 32px;
}

/* SECURITY */

.art-security {
  background: linear-gradient(145deg, #f0f3f7, #e9edf4);
}

.security-ring {
  position: absolute;

  width: 210px;

  height: 210px;

  left: 50%;

  top: 50%;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(37, 99, 235, 0.22);

  border-radius: 50%;
}

.security-ring::before {
  content: "";

  position: absolute;

  inset: 24px;

  border: 1px solid rgba(37, 99, 235, 0.18);

  border-radius: 50%;
}

.security-ring::after {
  content: "";

  position: absolute;

  width: 12px;

  height: 12px;

  top: 15px;

  right: 23px;

  border-radius: 50%;

  background: var(--primary);

  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.08);
}

.security-grid {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);

  background-size: 24px 24px;
}

.art-security strong {
  position: absolute;

  left: 22px;

  bottom: 19px;

  font-family: var(--display);

  font-size: 42px;

  font-weight: 650;

  letter-spacing: -0.08em;

  color: var(--text);
}

/* CODE */

.art-code {
  background: #111827;

  min-height: 260px;
}

.art-code img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .art-code img {
  transform: scale(1.035);
}

/* DATABASE */

.art-database {
  min-height: 260px;

  background: linear-gradient(145deg, #f4f6f8, #e9edf2);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 11px;
}

.db-bar {
  width: 67%;

  height: 9px;

  border-radius: 99px;

  background: #b9c3d1;
}

.db-bar:nth-child(2) {
  width: 51%;

  background: #8ea1ba;
}

.db-bar:nth-child(3) {
  width: 73%;

  background: #6f87a5;
}

.db-bar:nth-child(4) {
  width: 42%;

  background: var(--primary);
}

/* =========================================================
   ALL PROJECTS LINK
========================================================= */

.all-projects {
  margin-top: 35px;

  text-align: right;
}

.all-projects a {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: var(--primary);

  font-size: 1.05rem;

  font-weight: 600;

  border-bottom: 1px solid rgba(37, 99, 235, 0.35);

  padding-bottom: 4px;

  transition: gap 0.25s ease;
}

.all-projects a:hover {
  gap: 14px;
}

/* =========================================================
   EXPERIENCE / JOURNEY
========================================================= */

.journey-section {
  background: #fff;
}

.timeline {
  position: relative;

  max-width: 900px;

  margin: 65px auto 0;
}

.timeline::before {
  content: "";

  position: absolute;

  top: 0;

  bottom: 0;

  left: 11px;

  width: 1px;

  background: var(--line);
}

.timeline-item {
  position: relative;

  display: grid;

  grid-template-columns:
    75px
    1fr;

  gap: 30px;

  padding-bottom: 45px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";

  position: absolute;

  left: 5px;

  top: 3px;

  width: 12px;

  height: 12px;

  border: 2px solid var(--primary);

  border-radius: 50%;

  background: #fff;

  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.06);
}

.timeline-year {
  padding-top: 1px;

  color: var(--primary);

  font-size: 0.9rem;

  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.timeline-item h3 {
  font-family: var(--display);

  color: var(--text);

  font-size: 2.1rem;

  line-height: 1.15;

  letter-spacing: -0.03em;
}

.timeline-item p {
  max-width: 720px;

  margin-top: 8px;

  color: var(--text-soft);

  font-size: 1.2rem;

  line-height: 1.7;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  padding: 130px 0;

  background: var(--bg);
}

.contact-box {
  position: relative;

  min-height: 410px;

  padding: 70px;

  display: grid;

  grid-template-columns:
    1fr
    220px;

  align-items: center;

  gap: 60px;

  overflow: hidden;

  border: 1px solid var(--line);

  border-radius: 24px;

  background: linear-gradient(135deg, #ffffff, #f3f6fb);

  box-shadow: var(--shadow-md);
}

.contact-box::before {
  content: "";

  position: absolute;

  width: 480px;

  height: 480px;

  right: -170px;

  bottom: -230px;

  border: 1px solid rgba(37, 99, 235, 0.1);

  border-radius: 50%;
}

.contact-box::after {
  content: "";

  position: absolute;

  width: 340px;

  height: 340px;

  right: -80px;

  bottom: -160px;

  border: 1px solid rgba(37, 99, 235, 0.08);

  border-radius: 50%;
}

.contact-box h2 {
  margin-top: 15px;

  font-family: var(--display);

  font-size: clamp(4.8rem, 6vw, 8rem);

  line-height: 0.92;

  letter-spacing: -0.07em;

  font-weight: 600;
}

.contact-box h2 em {
  color: var(--primary);

  font-family: Georgia, "Times New Roman", serif;

  font-weight: 400;
}

.contact-box > div:first-child > p {
  max-width: 560px;

  margin-top: 18px;

  color: var(--text-soft);

  font-size: 1.2rem;

  line-height: 1.75;
}

.contact-btn {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  margin-top: 27px;

  padding: 14px 18px;

  border-radius: 10px;

  background: var(--primary);

  color: white;

  font-size: 1rem;

  font-weight: 600;

  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.17);

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);

  background: var(--primary-dark);
}

.contact-side {
  position: relative;

  z-index: 4;

  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 15px;
}

.contact-side a {
  font-size: 1rem;

  color: var(--text-soft);

  transition: color 0.2s ease;
}

.contact-side a:hover {
  color: var(--primary);
}

.contact-mark {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 145px;

  line-height: 0.8;

  color: rgba(37, 99, 235, 0.1);

  margin-bottom: 50px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: #fff;

  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 75px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  color: var(--text-muted);

  font-size: 0.9rem;
}

.footer-inner a:hover {
  color: var(--primary);
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;

  transform: none;
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-left.visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-right.visible {
  transform: translateX(0);
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {
  .header {
    padding: 0 30px;
  }

  .home {
    grid-template-columns:
      1fr
      0.9fr;

    gap: 40px;
  }

  .home-content h1 {
    font-size: 8.5rem;
  }

  .portrait-wrap {
    height: 570px;
  }

  .section-head {
    grid-template-columns:
      0.3fr
      1fr
      0.5fr;
  }

  .project-card.featured .project-body h3 {
    font-size: 3.1rem;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 768px) {
  html {
    font-size: 60%;
  }

  .container {
    width: calc(100% - 40px);
  }

  /* ---------------- HEADER ---------------- */

  .header {
    height: 68px;

    padding: 0 20px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    position: absolute;

    top: 68px;

    left: 12px;

    right: 12px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 18px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid var(--line);

    border-radius: 14px;

    box-shadow: var(--shadow-md);
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    font-size: 1.25rem;
  }

  /* ---------------- HERO ---------------- */

  .home {
    width: calc(100% - 40px);

    min-height: auto;

    padding: 110px 0 70px;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 45px;
  }

  .home::before {
    width: 350px;

    height: 350px;

    right: -180px;

    top: 220px;
  }

  .hero-copy {
    font-size: 1.25rem;
  }

  .home-content h1 {
    font-size: 7.3rem;
  }

  .role-line {
    font-size: 2rem;
  }

  .role-line strong {
    min-width: 200px;
  }

  .hero-buttons {
    align-items: stretch;
  }

  .btn {
    min-height: 46px;
  }

  .home-visual {
    min-height: 520px;
  }

  .portrait-wrap {
    height: 500px;

    border-radius: 20px;
  }

  .badge-top {
    left: -2%;

    top: 6%;
  }

  .badge-bottom {
    right: -2%;

    bottom: 7%;
  }

  /* ---------------- INTRO ---------------- */

  .intro-grid {
    display: block;

    padding: 55px 0;
  }

  .intro-quote {
    font-size: 3.4rem;
  }

  .intro-note {
    margin-top: 25px;
  }

  /* ---------------- SECTION ---------------- */

  .section {
    padding: 90px 0;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-top: 15px;

    font-size: 5.4rem;
  }

  .section-head > p {
    margin-top: 20px;
  }

  /* ---------------- SKILLS ---------------- */

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 285px;
  }

  .skill-card h3 {
    margin-top: 110px;
  }

  /* ---------------- PROJECTS ---------------- */

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .project-card.featured .project-art {
    min-height: 300px;
  }

  .project-art {
    min-height: 230px;
  }

  .project-card.featured .project-body {
    padding: 23px;
  }

  .project-card.featured .project-body h3 {
    font-size: 2.55rem;
  }

  .project-body {
    padding: 22px;
  }

  .project-body h3 {
    font-size: 2.2rem;
  }

  .all-projects {
    text-align: left;
  }

  /* ---------------- JOURNEY ---------------- */

  .timeline {
    margin-top: 45px;
  }

  .timeline-item {
    grid-template-columns:
      55px
      1fr;

    gap: 18px;
  }

  .timeline-item h3 {
    font-size: 1.9rem;
  }

  /* ---------------- CONTACT ---------------- */

  .contact-section {
    padding: 90px 0;
  }

  .contact-box {
    display: block;

    min-height: auto;

    padding: 45px 28px;
  }

  .contact-box h2 {
    font-size: 5.7rem;
  }

  .contact-side {
    margin-top: 55px;

    align-items: flex-start;
  }

  .contact-mark {
    font-size: 95px;

    margin-bottom: 15px;
  }

  /* ---------------- FOOTER ---------------- */

  .footer-inner {
    min-height: 95px;

    align-items: flex-start;

    justify-content: center;

    flex-direction: column;

    padding: 22px 0;
  }
}

/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 430px) {
  .home-content h1 {
    font-size: 6.3rem;
  }

  .role-line {
    align-items: flex-start;

    flex-direction: column;

    gap: 5px;
  }

  .role-line strong {
    min-width: auto;
  }

  .role-line .caret {
    display: none;
  }

  .home-visual {
    min-height: 470px;
  }

  .portrait-wrap {
    height: 455px;
  }

  .badge-top {
    left: -4%;
  }

  .badge-bottom {
    right: -4%;
  }

  .section-head h2 {
    font-size: 4.8rem;
  }

  .contact-box h2 {
    font-size: 5rem;
  }
}
