/* =========================================================
   MD. NAIM HOSSEN — TEXTILE ENGINEER PORTFOLIO
   COMPLETE STYLESHEET
========================================================= */


/* =========================================================
   RESET
========================================================= */

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

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

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f5f6f8;
  color: #172033;
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

img {
  max-width: 100%;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   COLOR VARIABLES
========================================================= */

:root {

  --ink: #172033;
  --ink-soft: #263247;

  --text: #243047;
  --muted: #687386;
  --muted-light: #8a94a5;

  --paper: #f5f6f8;
  --white: #ffffff;

  --surface: #ffffff;
  --surface-soft: #eef1f5;

  --line: #dce1e8;

  --accent: #f4a340;
  --accent-dark: #c87918;
  --accent-soft: #fff1dc;

  --dark-bg: #0c1220;
  --dark-surface: #141c2d;
  --dark-surface-2: #1b2537;
  --dark-line: #303b50;
  --dark-text: #f5f7fb;
  --dark-muted: #aeb7c6;

  --shadow:
    0 18px 45px rgba(18, 28, 45, 0.10);

  --shadow-large:
    0 30px 70px rgba(18, 28, 45, 0.16);
}


/* =========================================================
   HEADER
========================================================= */

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

  background: rgba(245, 246, 248, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(23, 32, 51, 0.08);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nav {
  min-height: 76px;

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

  gap: 20px;
}


/* BRAND */

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

  text-decoration: none;
  color: var(--ink);

  font-family: "Manrope", sans-serif;
  font-weight: 800;

  white-space: nowrap;
}

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

  border-radius: 10px;

  display: grid;
  place-items: center;

  background: var(--ink);
  color: #ffffff;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;

  transition: 0.3s ease;
}

.brand-name {
  color: var(--ink);
  transition: color 0.3s ease;
}


/* NAVIGATION */

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

.nav-links a {
  color: var(--ink);

  text-decoration: none;

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

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-dark);
}


/* NAV ACTIONS */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* THEME BUTTON */

.theme-toggle {
  width: 38px;
  height: 38px;

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

  background: var(--surface);
  color: var(--ink);

  display: grid;
  place-items: center;

  font-size: 17px;

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

.theme-toggle:hover {
  border-color: var(--accent);
}


/* MOBILE MENU */

.menu-toggle {
  display: none;

  border: 0;
  background: transparent;

  color: var(--ink);

  font-size: 23px;
}


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

.hero {
  position: relative;

  padding: 150px 0 85px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 75% 40%,
      rgba(244, 163, 64, 0.10),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #f5f6f8 0%,
      #edf0f4 100%
    );
}

.hero-grid {
  min-height: 650px;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;

  align-items: center;

  gap: 60px;
}


/* HERO TEXT */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 24px;

  color: #667286;

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

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

.eyebrow span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 0 5px rgba(244, 163, 64, 0.18);
}


h1,
h2,
h3 {
  font-family: "Manrope", "Inter", sans-serif;

  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;

  font-size: clamp(60px, 8vw, 105px);

  line-height: 0.9;

  font-weight: 800;

  color: var(--ink);
}


/*
   IMPORTANT:
   Hossen is NOT transparent anymore.
*/

h1 strong {
  display: block;

  color: var(--accent-dark);

  font-weight: 800;
}


/* HERO DESCRIPTION */

.hero-lead {
  max-width: 590px;

  margin: 30px 0 32px;

  color: #566174;

  font-size: 18px;

  line-height: 1.65;
}


/* HERO BUTTONS */

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

  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  padding: 14px 21px;

  border-radius: 999px;

  text-decoration: none;

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

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

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

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-primary span {
  color: var(--accent);
  font-size: 18px;
}

.btn-secondary {
  border: 1px solid #cbd2dc;

  background: transparent;

  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}


/* HERO META */

.hero-meta {
  display: flex;

  gap: 32px;

  margin-top: 52px;
  padding-top: 23px;

  border-top: 1px solid #d8dee7;

  flex-wrap: wrap;
}

.hero-meta div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.hero-meta strong {
  color: #7b8596;

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.hero-meta span {
  color: var(--ink);

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


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-visual {
  height: 620px;

  position: relative;

  display: grid;
  place-items: center;
}


/* DECORATIVE CIRCLES */

.orb {
  position: absolute;

  border: 1px solid #d7dde5;

  border-radius: 50%;
}

.orb-one {
  width: 520px;
  height: 520px;
}

.orb-two {
  width: 390px;
  height: 390px;
}


/* PHOTO */

.photo-frame {
  width: min(480px, 90%);

  position: relative;

  z-index: 2;
}

.photo-frame img {
  display: block;

  width: 100%;

  /*
    IMPORTANT:
    Main image is NEVER cropped.
  */

  height: auto;

  aspect-ratio: auto;

  object-fit: contain;

  object-position: center;

  border-radius: 28px;

  background: #ffffff;

  box-shadow:
    22px 22px 0 var(--accent);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.photo-frame img:hover {
  transform: translateY(-4px);

  box-shadow:
    28px 28px 0 var(--accent);
}


/* IMAGE GLOW */

.photo-glow {
  position: absolute;

  inset: -40px;

  border-radius: 50%;

  background: rgba(244, 163, 64, 0.22);

  filter: blur(55px);

  z-index: -1;
}


/* FLOATING CARD */

.floating-card {
  position: absolute;

  left: -35px;
  bottom: 30px;

  z-index: 5;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 15px 18px;

  background: var(--white);

  border: 1px solid #e0e5ec;

  border-radius: 16px;

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

.mini-icon {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--ink);

  color: var(--accent);

  font-weight: 800;
}

.floating-card div {
  display: flex;
  flex-direction: column;
}

.floating-card strong {
  color: var(--ink);

  font-size: 12px;
}

.floating-card small {
  color: var(--muted);

  font-size: 10px;
}


/* =========================================================
   TICKER
========================================================= */

.ticker {
  overflow: hidden;

  padding: 17px 0;

  background: var(--ink);

  color: #ffffff;

  white-space: nowrap;
}

.ticker-track {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 28px;

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

  letter-spacing: 0.15em;
}

.ticker b {
  color: var(--accent);
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  padding: 120px 0;
}

.section-kicker {
  margin-bottom: 22px;

  color: #717c8e;

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

  text-transform: uppercase;

  letter-spacing: 0.15em;
}

h2 {
  color: var(--ink);

  font-size: clamp(42px, 5vw, 68px);

  line-height: 1.02;

  font-weight: 800;
}

h2 span {
  color: var(--accent-dark);
}


/* =========================================================
   ABOUT
========================================================= */

.about {
  background: #ffffff;
}

.two-col {
  display: grid;

  grid-template-columns: 1fr 1.2fr;

  gap: 90px;
}

.about-copy {
  max-width: 680px;

  padding-top: 35px;
}

.about-copy p {
  margin-bottom: 20px;

  color: var(--muted);

  font-size: 16px;
}

.about-copy .large {
  color: #263247;

  font-size: 22px;

  line-height: 1.55;
}

.signature {
  margin-top: 38px;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

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

  letter-spacing: 0.13em;
}

.signature span {
  display: block;

  margin-top: 5px;

  color: #8b95a5;

  font-family: "Inter", sans-serif;

  font-size: 9px;

  letter-spacing: 0.18em;
}


/* =========================================================
   EXPERTISE
========================================================= */

.expertise {
  background: var(--paper);
}

.section-head {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 55px;
}

.section-intro {
  max-width: 390px;

  color: var(--muted);

  font-size: 14px;
}


/* EXPERTISE CARDS */

.expertise-grid {
  display: grid;

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

  gap: 14px;
}

.expert-card {
  position: relative;

  min-height: 330px;

  padding: 27px;

  background: #ffffff;

  border: 1px solid #e0e5ec;

  border-radius: 20px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

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


/* FEATURED */

.expert-card.featured {
  background: var(--ink);

  color: #ffffff;
}

.card-number {
  position: absolute;

  top: 20px;
  right: 22px;

  color: #9ba5b5;

  font-size: 10px;
}

.featured .card-number {
  color: #8f99aa;
}

.card-icon {
  margin: 34px 0 50px;

  color: var(--accent);

  font-size: 30px;
}

.expert-card h3 {
  margin-bottom: 12px;

  color: var(--ink);

  font-size: 22px;
}

.expert-card.featured h3 {
  color: #ffffff;
}

.expert-card p {
  color: #6c7789;

  font-size: 13px;
}

.expert-card.featured p {
  color: #b9c2d0;
}


/* TAGS */

.tag-row {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 25px;
}

.tag-row span {
  padding: 5px 8px;

  border: 1px solid #dce1e8;

  border-radius: 999px;

  color: #667286;

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.07em;
}

.featured .tag-row span {
  border-color: #3d485b;

  color: #c3cad5;
}


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

.experience {
  background: var(--dark-bg);

  color: #ffffff;
}

.experience .section-kicker {
  color: #aeb8c7;
}

.experience h2 {
  color: #ffffff;
}

.experience h2 span {
  color: var(--accent);
}

.experience-layout {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 100px;
}

.experience .section-intro {
  margin-top: 25px;

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


/* TIMELINE */

.timeline {
  padding-left: 35px;

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

.timeline-item {
  position: relative;

  padding-bottom: 50px;
}

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

.timeline-dot {
  position: absolute;

  left: -41px;
  top: 6px;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 0 5px var(--dark-bg),
    0 0 0 6px #39455a;
}

.timeline-date {
  margin-bottom: 8px;

  color: var(--accent);

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

  letter-spacing: 0.15em;
}

.timeline h3 {
  color: #ffffff;

  font-size: 24px;
}

.timeline h4 {
  margin: 5px 0 13px;

  color: #aeb8c7;

  font-size: 12px;
}

.timeline p {
  max-width: 600px;

  color: #aeb8c7;

  font-size: 13px;
}


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

.skills {
  background: #ffffff;
}

.skills-intro {
  max-width: 620px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 15px;
}

.skill-list {
  margin-top: 50px;

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

.skill-row {
  display: grid;

  grid-template-columns: 2fr 35px 2fr;

  align-items: center;

  gap: 20px;

  padding: 22px 0;

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

.skill-row > span {
  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 18px;
  font-weight: 700;
}

.skill-row > b {
  color: #8b95a5;

  font-size: 10px;
}

.skill-bar {
  height: 6px;

  overflow: hidden;

  border-radius: 20px;

  background: #e6eaf0;
}

.skill-bar i {
  display: block;

  height: 100%;

  border-radius: 20px;

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


/* =========================================================
   GALLERY / SLIDER
========================================================= */

.gallery {
  background: var(--paper);
}


/*
   IMPORTANT:
   Slider is independent from hero photo.
*/

.portfolio-slider {
  position: relative;

  width: 100%;

  min-height: 620px;

  margin-top: 30px;

  overflow: hidden;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #e9edf2,
      #f8f9fb
    );

  border: 1px solid #dce2e9;

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


/* SLIDE */

.portfolio-slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  padding: 35px 80px 85px;

  display: flex;

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

  opacity: 0;

  visibility: hidden;

  transform: scale(1.015);

  transition:
    opacity 0.55s ease,
    visibility 0.55s ease,
    transform 0.55s ease;
}

.portfolio-slide.active {
  position: relative;

  opacity: 1;

  visibility: visible;

  transform: scale(1);
}


/*
   IMPORTANT:
   contain = FULL IMAGE VISIBLE
   no cropping.
*/

.portfolio-slide img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 100%;
  max-height: 500px;

  object-fit: contain;

  object-position: center;

  border-radius: 16px;

  background: transparent;

  user-select: none;

  -webkit-user-drag: none;
}


/* SLIDER BUTTONS */

.slider-button {
  position: absolute;

  top: 50%;

  z-index: 10;

  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(23, 32, 51, 0.12);

  border-radius: 50%;

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

  color: var(--ink);

  font-size: 30px;
  line-height: 1;

  box-shadow:
    0 8px 25px rgba(23, 32, 51, 0.12);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.slider-button:hover {
  background: var(--ink);

  color: #ffffff;

  transform:
    translateY(-50%)
    scale(1.05);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}


/* COUNTER */

.slider-counter {
  position: absolute;

  left: 50%;
  bottom: 24px;

  z-index: 10;

  transform: translateX(-50%);

  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(23, 32, 51, 0.90);

  color: #ffffff;

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

  letter-spacing: 0.12em;
}


/* DOTS */

.slider-dots {
  position: absolute;

  left: 50%;
  bottom: 25px;

  z-index: 11;

  display: flex;

  gap: 7px;

  transform: translateX(-50%);
}

.slider-dot {
  width: 8px;
  height: 8px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: #a9b2c0;

  opacity: 0.65;

  transition:
    width 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.slider-dot.active {
  width: 25px;

  border-radius: 999px;

  background: var(--accent-dark);

  opacity: 1;
}


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

.contact {
  padding-top: 100px;

  background: var(--accent);
}

.contact-box {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;

  align-items: end;
}

.contact .section-kicker {
  color: #5f4a2d;
}

.contact h2 {
  color: #172033;
}

.contact h2 span {
  color: #6d4a17;
}

.contact-right > p {
  max-width: 500px;

  margin-bottom: 30px;

  color: #4e432f;

  font-size: 15px;
}


/* SOCIAL LINKS */

.social-links {
  display: flex;

  flex-direction: column;
}

.social-links a {
  display: flex;

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

  padding: 15px 0;

  border-top: 1px solid rgba(23, 32, 51, 0.22);

  color: #172033;

  text-decoration: none;

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

  transition:
    color 0.2s ease,
    padding 0.2s ease;
}

.social-links a:last-child {
  border-bottom: 1px solid rgba(23, 32, 51, 0.22);
}

.social-links a:hover {
  color: #6b4915;

  padding-left: 6px;
}

.social-links a span {
  font-size: 18px;
}


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

footer {
  padding: 30px 0;

  background: var(--dark-bg);

  color: #ffffff;
}

.footer-inner {
  display: flex;

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

  gap: 20px;
}

.footer-name {
  display: flex;

  flex-direction: column;
}

.footer-name strong {
  color: #ffffff;

  font-family: "Manrope", sans-serif;
}

.footer-name span {
  color: #8e99aa;

  font-size: 10px;
}

.footer-copy {
  color: #8e99aa;

  font-size: 10px;
}

.footer-inner > a {
  color: #aeb7c6;

  text-decoration: none;

  font-size: 10px;

  transition: color 0.2s ease;
}

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


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {

  background: var(--dark-bg);

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


/* HEADER */

body.dark-mode .site-header {
  background: rgba(12, 18, 32, 0.90);

  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .brand,
body.dark-mode .brand-name,
body.dark-mode .nav-links a {
  color: #ffffff;
}

body.dark-mode .nav-links a:hover {
  color: var(--accent);
}

body.dark-mode .brand-mark {
  background: #ffffff;

  color: var(--ink);
}

body.dark-mode .theme-toggle {
  background: var(--dark-surface);

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

  color: #ffffff;
}

body.dark-mode .menu-toggle {
  color: #ffffff;
}


/* HERO */

body.dark-mode .hero {
  background:
    radial-gradient(
      circle at 75% 40%,
      rgba(244, 163, 64, 0.13),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #0c1220 0%,
      #111a2b 100%
    );
}

body.dark-mode .eyebrow {
  color: #b6c0cf;
}

body.dark-mode h1 {
  color: #ffffff;
}

/*
   IMPORTANT:
   Hossen stays visible in dark mode.
*/

body.dark-mode h1 strong {
  color: #ffbd62;
}

body.dark-mode .hero-lead {
  color: #b5bfce;
}

body.dark-mode .hero-meta {
  border-color: #303b50;
}

body.dark-mode .hero-meta strong {
  color: #8995a7;
}

body.dark-mode .hero-meta span {
  color: #ffffff;
}

body.dark-mode .orb {
  border-color: #273349;
}

body.dark-mode .photo-frame img {
  background: #ffffff;
}


/* BUTTONS */

body.dark-mode .btn-primary {
  background: #ffffff;

  color: var(--ink);
}

body.dark-mode .btn-primary:hover {
  background: #f0f3f7;
}

body.dark-mode .btn-primary span {
  color: var(--accent-dark);
}

body.dark-mode .btn-secondary {
  border-color: #465267;

  color: #ffffff;
}

body.dark-mode .btn-secondary:hover {
  border-color: var(--accent);

  color: var(--accent);
}


/* ABOUT */

body.dark-mode .about {
  background: #111827;
}

body.dark-mode .about h2,
body.dark-mode .about-copy .large {
  color: #ffffff;
}

body.dark-mode .about h2 span {
  color: #ffbd62;
}

body.dark-mode .about-copy p {
  color: #aeb8c7;
}

body.dark-mode .signature {
  color: #ffffff;
}


/* EXPERTISE */

body.dark-mode .expertise {
  background: #0f1726;
}

body.dark-mode .expertise h2 {
  color: #ffffff;
}

body.dark-mode .expertise h2 span {
  color: #ffbd62;
}

body.dark-mode .section-kicker {
  color: #9da8b8;
}

body.dark-mode .section-intro {
  color: #aeb8c7;
}

body.dark-mode .expert-card {
  background: #151e2e;

  border-color: #2b3649;
}

body.dark-mode .expert-card h3 {
  color: #ffffff;
}

body.dark-mode .expert-card p {
  color: #aeb8c7;
}

body.dark-mode .expert-card.featured {
  background: #ffffff;

  color: var(--ink);
}

body.dark-mode .expert-card.featured h3 {
  color: var(--ink);
}

body.dark-mode .expert-card.featured p {
  color: #667286;
}

body.dark-mode .featured .card-number {
  color: #8a94a4;
}

body.dark-mode .tag-row span {
  border-color: #3a4659;

  color: #b5bfce;
}

body.dark-mode .featured .tag-row span {
  border-color: #dce1e8;

  color: #667286;
}


/* SKILLS */

body.dark-mode .skills {
  background: #111827;
}

body.dark-mode .skills h2 {
  color: #ffffff;
}

body.dark-mode .skills h2 span {
  color: #ffbd62;
}

body.dark-mode .skills-intro {
  color: #aeb8c7;
}

body.dark-mode .skill-list {
  border-color: #303b50;
}

body.dark-mode .skill-row {
  border-color: #303b50;
}

body.dark-mode .skill-row > span {
  color: #ffffff;
}

body.dark-mode .skill-row > b {
  color: #8f9aac;
}

body.dark-mode .skill-bar {
  background: #293447;
}

body.dark-mode .skill-bar i {
  background: #ffbd62;
}


/* GALLERY */

body.dark-mode .gallery {
  background: #0f1726;
}

body.dark-mode .gallery h2 {
  color: #ffffff;
}

body.dark-mode .gallery h2 span {
  color: #ffbd62;
}

body.dark-mode .portfolio-slider {
  background:
    linear-gradient(
      135deg,
      #151e2e,
      #101827
    );

  border-color: #2b3649;
}

body.dark-mode .slider-button {
  background: rgba(255, 255, 255, 0.96);

  color: #172033;

  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .slider-button:hover {
  background: #ffbd62;

  color: #172033;
}

body.dark-mode .slider-counter {
  background: rgba(255, 255, 255, 0.95);

  color: #172033;
}

body.dark-mode .slider-dot {
  background: #778399;
}

body.dark-mode .slider-dot.active {
  background: #ffbd62;
}


/* CONTACT */

body.dark-mode .contact {
  background: #f4a340;
}

body.dark-mode .contact .section-kicker {
  color: #5c472a;
}

body.dark-mode .contact h2 {
  color: #172033;
}

body.dark-mode .contact h2 span {
  color: #634718;
}

body.dark-mode .contact-right > p {
  color: #493d29;
}

body.dark-mode .social-links a {
  color: #172033;

  border-color: rgba(23, 32, 51, 0.25);
}

body.dark-mode .social-links a:hover {
  color: #654715;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .nav-links {
    gap: 17px;
  }

  .nav-links a {
    font-size: 12px;
  }

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

    gap: 35px;
  }

  h1 {
    font-size: clamp(55px, 8vw, 85px);
  }

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

  .two-col {
    gap: 55px;
  }

  .experience-layout {
    gap: 60px;
  }
}


/* =========================================================
   MOBILE NAV
========================================================= */

@media (max-width: 850px) {

  .nav {
    min-height: 70px;
  }

  .nav-links {
    position: absolute;

    top: 70px;
    left: 0;

    width: 100%;

    padding: 20px 24px;

    display: none;

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

    background: var(--paper);

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

    box-shadow: 0 15px 30px rgba(20, 30, 45, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;

    padding: 12px 0;

    font-size: 14px;
  }

  body.dark-mode .nav-links {
    background: #0c1220;

    border-color: #303b50;
  }

  .menu-toggle {
    display: block;
  }

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

    gap: 30px;
  }

  .hero {
    padding-top: 115px;
  }

  .hero-content {
    max-width: 750px;
  }

  .hero-visual {
    height: 570px;
  }

  .photo-frame {
    width: min(500px, 82%);
  }

  .floating-card {
    left: 4%;
  }

  .two-col,
  .experience-layout,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .two-col {
    gap: 30px;
  }

  .about-copy {
    padding-top: 0;
  }

  .experience-layout {
    gap: 60px;
  }

  .contact-box {
    gap: 50px;
  }

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


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

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

  .brand-name {
    font-size: 13px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 105px;

    padding-bottom: 60px;
  }

  .hero-grid {
    gap: 10px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 76px);

    line-height: 0.9;
  }

  .hero-lead {
    margin-top: 25px;

    font-size: 16px;
  }

  .hero-meta {
    gap: 18px;

    margin-top: 40px;
  }

  .hero-meta div {
    min-width: 105px;
  }

  .hero-visual {
    height: 450px;
  }

  .photo-frame {
    width: 88%;
  }

  .photo-frame img {
    border-radius: 20px;

    box-shadow:
      14px 14px 0 var(--accent);
  }

  .floating-card {
    left: 0;

    bottom: 12px;

    max-width: 90%;

    padding: 12px 14px;
  }

  .orb-one {
    width: 360px;
    height: 360px;
  }

  .orb-two {
    width: 280px;
    height: 280px;
  }

  .ticker-track {
    justify-content: flex-start;

    gap: 20px;

    font-size: 9px;
  }

  .section {
    padding: 80px 0;
  }

  h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .section-head {
    align-items: flex-start;

    flex-direction: column;

    gap: 20px;

    margin-bottom: 35px;
  }

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

  .expert-card {
    min-height: 280px;
  }

  .experience-layout {
    gap: 45px;
  }

  .timeline {
    padding-left: 27px;
  }

  .timeline-dot {
    left: -33px;
  }

  .timeline h3 {
    font-size: 21px;
  }

  .skill-row {
    grid-template-columns: 1fr 30px;

    gap: 10px;
  }

  .skill-bar {
    grid-column: 1 / -1;
  }


  /* MOBILE GALLERY */

  .portfolio-slider {
    min-height: 450px;

    border-radius: 18px;
  }

  .portfolio-slide {
    padding: 20px 48px 75px;
  }

  .portfolio-slide img {
    max-height: 350px;

    border-radius: 10px;
  }

  .slider-button {
    width: 40px;
    height: 40px;

    font-size: 25px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .slider-counter {
    bottom: 16px;

    font-size: 9px;
  }

  .slider-dots {
    bottom: 18px;
  }

  .slider-dot {
    width: 7px;
    height: 7px;
  }

  .slider-dot.active {
    width: 20px;
  }


  /* CONTACT */

  .contact {
    padding-top: 80px;
  }

  .contact-box {
    gap: 40px;
  }


  /* FOOTER */

  .footer-inner {
    align-items: flex-start;

    flex-direction: column;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@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;
  }
}


/* =========================================================
   FOCUS STATES
========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(244, 163, 64, 0.55);

  outline-offset: 3px;
}


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