/* =========================================================
   MD MARUFUL HAQUE — PORTFOLIO
   Main Stylesheet
   ========================================================= */

/* =========================================================
   1. RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #fafaf8;
  color: #111111;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: #111111;
  color: #ffffff;
}


/* =========================================================
   2. VARIABLES
   ========================================================= */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-soft: #f4f4f1;

  --text: #111111;
  --text-soft: #5f5f5a;
  --text-muted: #85857e;

  --border: #e6e6e1;
  --border-dark: #d4d4ce;

  --black: #111111;
  --white: #ffffff;

  --max-width: 1240px;
  --content-width: 1080px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm:
    0 4px 18px rgba(0, 0, 0, 0.04);

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

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

  --transition:
    300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */

.display-garamond,
.hero-title,
.section-title,
.edu-title,
.logo-mincho {
  font-family: "Cormorant Garamond", serif;
}

.logo-mincho {
  font-family: "Zen Old Mincho", serif;
}

.hero-title {
  font-weight: 600;
  letter-spacing: -0.045em;
}

.section-title {
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
}

p {
  color: var(--text-soft);
}


/* =========================================================
   4. ACCESSIBILITY
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   5. LAYOUT
   ========================================================= */

.container {
  width: min(
    calc(100% - 48px),
    var(--max-width)
  );

  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-title {
  margin-bottom: 36px;
  font-size: clamp(42px, 6vw, 76px);
}

.small {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.lead {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
  color: var(--text-soft);
}


/* =========================================================
   6. HEADER
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;

  background: rgba(250, 250, 248, 0.88);

  border-bottom: 1px solid transparent;

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

  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 250, 248, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
}

.header-inner {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================================
   7. BRAND
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  min-width: 0;

  transition:
    opacity var(--transition),
    transform var(--transition);
}

.brand:hover {
  opacity: 0.7;
}

.brand-mark {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border-dark);
  border-radius: 50%;

  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text .logo-mincho {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-text .name {
  margin-top: 5px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}


/* =========================================================
   8. NAVIGATION
   ========================================================= */

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;

  padding: 8px 0;

  color: var(--text-muted);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  transition:
    color var(--transition);
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;

  background: var(--black);

  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;

  width: 42px;
  height: 42px;

  place-items: center;

  background: transparent;

  border: 1px solid var(--border);
  border-radius: 50%;

  color: var(--black);
}


/* =========================================================
   9. HERO
   ========================================================= */

.hero-section {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding-top: 150px;
  padding-bottom: 100px;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(400px, 0.9fr);

  align-items: center;

  gap: 90px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.kicker {
  margin-bottom: 20px;

  color: var(--text-muted);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 850px;

  margin-bottom: 22px;

  font-size: clamp(
    64px,
    8vw,
    122px
  );

  line-height: 0.88;
}

.hero-subtitle {
  min-height: 38px;

  margin-bottom: 35px;

  font-size: clamp(
    17px,
    2vw,
    22px
  );

  font-weight: 500;

  color: var(--text-soft);
}

.typing {
  display: inline-block;
}

.typing::after {
  content: "";

  display: inline-block;

  width: 2px;
  height: 1em;

  margin-left: 6px;

  vertical-align: -0.12em;

  background: var(--black);

  animation: cursorBlink 900ms infinite;
}

@keyframes cursorBlink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}


/* =========================================================
   10. HERO ACTIONS
   ========================================================= */

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

  margin-bottom: 42px;
}


/* =========================================================
   11. BUTTONS
   ========================================================= */

.btn {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 22px;

  border: 1px solid var(--border-dark);
  border-radius: 999px;

  background: var(--surface);

  color: var(--black);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

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

  border-color: var(--black);

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

.btn-primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: #2a2a2a;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
}

.btn-secondary {
  background: var(--surface-soft);
}


/* =========================================================
   12. HERO META
   ========================================================= */

.meta-list {
  display: grid;
  gap: 9px;

  max-width: 550px;
}

.meta-list li {
  display: flex;
  gap: 8px;

  color: var(--text-muted);

  font-size: 13px;
}

.meta-list strong {
  color: var(--text);
}


/* =========================================================
   13. HERO PROFILE IMAGE
   ========================================================= */

.hero-visual {
  position: relative;

  width: 100%;
  max-width: 560px;

  justify-self: end;

  overflow: hidden;

  background: var(--surface);

  border-radius: 24px;

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

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: cover;

  transition:
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 500ms ease;
}

.hero-visual:hover .profile-photo {
  transform: scale(1.035);
}


/* subtle frame */

.hero-visual::after {
  content: "";

  position: absolute;

  inset: 16px;

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

  border-radius: 16px;

  pointer-events: none;
}


/* =========================================================
   14. ABOUT
   ========================================================= */

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(300px, 0.6fr);

  gap: 90px;

  align-items: start;
}

.about-text {
  max-width: 780px;
}

.about-text .lead {
  margin-bottom: 34px;
}

.about-profile-image {
  display: none;

  width: 180px;
  height: 180px;

  margin-bottom: 30px;

  overflow: hidden;

  border-radius: 50%;

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

.about-profile-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.about-list {
  display: grid;
  gap: 12px;

  margin-bottom: 30px;
}

.about-list li {
  padding-bottom: 12px;

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

  color: var(--text-soft);

  font-size: 14px;
}

.about-list strong {
  color: var(--text);
}


/* =========================================================
   15. CARDS
   ========================================================= */

.card {
  padding: 30px;

  background: var(--bg);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

  border-color: var(--border-dark);

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

.about-aside {
  display: grid;
  gap: 18px;
}

.card-title {
  margin-bottom: 20px;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 15px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;

  overflow-wrap: anywhere;
}

.contact-list i {
  width: 18px;
  color: var(--text-muted);
}

.contact-list a {
  transition: opacity var(--transition);
}

.contact-list a:hover {
  opacity: 0.55;
}


/* =========================================================
   16. QUICK FACTS
   ========================================================= */

.quick-stats dl {
  display: grid;
  gap: 20px;
}

.fact {
  display: grid;
  gap: 5px;
}

.fact dt {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact dd {
  color: var(--text-soft);

  font-size: 13px;
}


/* =========================================================
   17. EDUCATION
   ========================================================= */

.education-section {
  background: var(--bg);
}

.cards-grid {
  display: grid;

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

  gap: 18px;
}

.edu-card {
  min-height: 250px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 30px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

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

  border-color: var(--border-dark);

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

.edu-title {
  margin-bottom: 18px;

  font-size: 28px;
  font-weight: 600;
}

.edu-sub {
  font-size: 14px;
  line-height: 1.7;
}

.edu-meta {
  padding-top: 25px;

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

  font-size: 13px;
}


/* =========================================================
   18. SKILLS
   ========================================================= */

.skills-section {
  background: var(--surface);
}

.skills-grid {
  display: grid;

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

  gap: 14px;

  margin-top: 35px;
}

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

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 12px;

  padding: 25px;

  background: var(--bg);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  text-align: center;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

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

  background: var(--surface);

  border-color: var(--border-dark);

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

.skill-icon {
  font-size: 28px;

  color: var(--black);
}

.skill-card h4 {
  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.04em;
}

.soft-skills {
  margin-top: 60px;
}

.soft-skills h4 {
  margin-bottom: 18px;

  font-family: "Cormorant Garamond", serif;

  font-size: 28px;
}

.soft-skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-skills li {
  padding: 9px 15px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text-soft);

  font-size: 12px;
}


/* =========================================================
   19. CERTIFICATES
   ========================================================= */

.certificates-section {
  background: var(--bg);
}

.cert-list {
  display: grid;
  gap: 12px;

  max-width: 900px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;

  padding: 24px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.cert-item:hover {
  transform: translateX(5px);

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

.cert-item > i {
  flex: 0 0 auto;

  margin-top: 3px;

  color: var(--black);

  font-size: 20px;
}

.cert-item strong {
  display: block;

  margin-bottom: 5px;

  font-size: 14px;
}


/* =========================================================
   20. PROJECTS
   ========================================================= */

.projects-section {
  background: var(--surface);
}

.projects-grid {
  display: grid;

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

  gap: 18px;

  margin-top: 35px;
}

.project-card {
  overflow: hidden;

  background: var(--bg);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  outline: none;

  cursor: pointer;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-8px);

  border-color: var(--border-dark);

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

.project-media {
  overflow: hidden;

  background: var(--surface);

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

.project-media svg {
  display: block;

  width: 100%;

  transition:
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .project-media svg {
  transform: scale(1.03);
}

.project-body {
  padding: 26px;
}

.project-title {
  margin-bottom: 12px;

  font-family: "Cormorant Garamond", serif;

  font-size: 28px;
  font-weight: 600;
}

.project-desc {
  margin-bottom: 20px;

  font-size: 13px;
  line-height: 1.7;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  padding: 6px 10px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* =========================================================
   21. PROJECT MODAL
   ========================================================= */

.modal {
  position: fixed;
  z-index: 2000;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.45);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 250ms ease,
    visibility 250ms ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;

  width: min(
    100%,
    680px
  );

  max-height: 90vh;

  overflow-y: auto;

  padding: 42px;

  background: var(--surface);

  border-radius: var(--radius-lg);

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

  transform: translateY(20px) scale(0.98);

  transition:
    transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.modal[aria-hidden="false"] .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;

  top: 20px;
  right: 20px;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: transparent;

  color: var(--black);

  transition:
    background var(--transition),
    color var(--transition);
}

.modal-close:hover {
  background: var(--black);
  color: var(--white);
}

.modal-header {
  padding-right: 45px;

  margin-bottom: 28px;
}

.modal-header h3 {
  margin-bottom: 8px;

  font-family: "Cormorant Garamond", serif;

  font-size: 40px;
}

.modal-content {
  padding: 25px 0;

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

.modal-desc {
  margin-bottom: 20px;
}

.modal-list {
  display: grid;
  gap: 10px;
}

.modal-list li {
  color: var(--text-soft);

  font-size: 13px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 25px;
}


/* =========================================================
   22. CONTACT
   ========================================================= */

.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: 90px;

  align-items: start;
}

.contact-large {
  display: grid;
  gap: 15px;

  margin-top: 35px;
}

.contact-large li {
  display: flex;
  align-items: center;
  gap: 14px;

  font-size: 15px;
}

.contact-large i {
  width: 20px;

  color: var(--text-muted);
}

.contact-large a {
  transition: opacity var(--transition);
}

.contact-large a:hover {
  opacity: 0.55;
}


/* =========================================================
   23. CONTACT FORM
   ========================================================= */

.contact-form {
  padding: 35px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

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

.form-row {
  display: grid;
  gap: 8px;

  margin-bottom: 20px;
}

.form-row label {
  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;

  padding: 14px 16px;

  background: var(--bg);

  border: 1px solid var(--border);
  border-radius: 9px;

  color: var(--black);

  outline: none;

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.form-row textarea {
  resize: vertical;

  min-height: 150px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a0a099;
}

.form-row input:focus,
.form-row textarea:focus {
  background: var(--surface);

  border-color: var(--black);

  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 10px;
}

.form-note {
  margin-top: 20px;
}

.form-note a {
  color: var(--black);
  text-decoration: underline;
}


/* =========================================================
   24. BACK TO TOP
   ========================================================= */

.back-to-top {
  position: fixed;

  z-index: 900;

  right: 25px;
  bottom: 25px;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border-dark);
  border-radius: 50%;

  background: var(--black);

  color: var(--white);

  opacity: 0;
  visibility: hidden;

  transform: translateY(15px);

  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    background var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  background: #333333;

  transform: translateY(-4px);
}


/* =========================================================
   25. FOOTER
   ========================================================= */

.site-footer {
  padding: 70px 0 25px;

  background: var(--black);

  color: var(--white);
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.5fr
    0.7fr
    0.7fr;

  gap: 50px;

  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo-mincho {
  margin-bottom: 12px;

  font-size: 36px;

  color: var(--white);
}

.footer-brand .small {
  max-width: 400px;

  color: #a5a5a0;
}


/* Footer profile photo */

.footer-profile-image {
  width: 54px;
  height: 54px;

  margin-bottom: 18px;

  object-fit: cover;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Footer nav */

.footer-nav {
  display: grid;
  gap: 12px;
}

.footer-nav a {
  width: max-content;

  color: #bdbdb7;

  font-size: 12px;
  font-weight: 600;

  transition:
    color var(--transition),
    transform var(--transition);
}

.footer-nav a:hover {
  color: var(--white);

  transform: translateX(4px);
}


/* Socials */

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.socials a {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid #343434;
  border-radius: 50%;

  color: #c5c5c0;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.socials a:hover {
  background: var(--white);

  border-color: var(--white);

  color: var(--black);

  transform: translateY(-3px);
}


/* Copyright */

.copyright {
  margin-top: 55px;
  padding-top: 22px;

  border-top: 1px solid #2d2d2d;
}

.copyright small {
  color: #777772;

  font-size: 11px;
}


/* =========================================================
   26. REVEAL ANIMATIONS
   ========================================================= */

.reveal-up,
.reveal-left {
  opacity: 0;

  transition:
    opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-up {
  transform: translateY(30px);
}

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

.reveal-up.is-visible,
.reveal-left.is-visible {
  opacity: 1;

  transform: translate(0);
}


/* =========================================================
   27. FOCUS STATES
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.project-card:focus-visible {
  outline: 2px solid var(--black);

  outline-offset: 4px;
}


/* =========================================================
   28. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .hero-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(320px, 0.8fr);

    gap: 55px;
  }

  .hero-title {
    font-size: clamp(
      58px,
      8vw,
      90px
    );
  }

  .about-grid {
    gap: 55px;
  }

  .contact-grid {
    gap: 50px;
  }

  .nav-list {
    gap: 17px;
  }

  .nav-link {
    font-size: 10px;
  }

}


/* =========================================================
   29. RESPONSIVE — MOBILE NAV
   ========================================================= */

@media (max-width: 850px) {

  .nav-toggle {
    display: grid;
  }

  .nav-list {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 12px 24px 20px;

    background: rgba(250, 250, 248, 0.98);

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

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

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .nav-list.open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: block;

    padding: 15px 0;

    font-size: 11px;
  }

}


/* =========================================================
   30. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .container {
    width: min(
      calc(100% - 32px),
      var(--max-width)
    );
  }

  .section {
    padding: 85px 0;
  }

  .hero-section {
    min-height: auto;

    padding-top: 125px;
    padding-bottom: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .hero-title {
    font-size: clamp(
      54px,
      15vw,
      86px
    );
  }

  .hero-visual {
    width: 100%;
    max-width: 520px;

    justify-self: center;
  }

  .meta-list {
    font-size: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .about-profile-image {
    display: block;
  }

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

  .skills-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

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

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .socials {
    justify-content: flex-start;
  }

}


/* =========================================================
   31. RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .header-inner {
    min-height: 70px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;

    font-size: 16px;
  }

  .brand-text .name {
    font-size: 9px;
  }

  .brand-text .logo-mincho {
    font-size: 9px;
  }

  .hero-title {
    font-size: 55px;

    line-height: 0.92;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

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

  .section-title {
    font-size: 48px;
  }

  .edu-card {
    min-height: 220px;
  }

  .contact-form {
    padding: 24px;
  }

  .modal {
    padding: 15px;
  }

  .modal-dialog {
    padding: 30px 22px;
  }

  .modal-header h3 {
    font-size: 34px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

}


/* =========================================================
   32. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
  }

  .reveal-up,
  .reveal-left {
    opacity: 1;
    transform: none;
  }

}


/* =========================================================
   33. DARK IMAGE PROTECTION
   ========================================================= */

.hero-visual img,
.about-profile-image img,
.footer-profile-image {
  image-rendering: auto;
}


/* =========================================================
   END
   ========================================================= */
