
/* =========================================
   ZAFAR WEB PORTFOLIO
   STEP 1: GLOBAL STYLES & DESIGN TOKENS
========================================= */

/* ---------- Color Palette ---------- */

:root {
  --color-bg: #102b2a;
  --color-bg-soft: #173b39;
  --color-surface: #1b4542;
  --color-surface-light: #234e4a;

  --color-accent: #ff7138;
  --color-accent-hover: #f45f26;

  --color-text: #f5f4ef;
  --color-text-soft: #c5d3ce;
  --color-text-muted: #91aaa3;

  --color-border: rgba(220, 239, 231, 0.13);
  --color-border-strong: rgba(220, 239, 231, 0.23);

  --color-success: #55d6a2;

  --font-main: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-width: 1160px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.18);
  --shadow-accent: 0 10px 28px rgba(255, 113, 56, 0.18);

  --transition: 0.25s ease;
}


/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}

button,
input,
select,
textarea {
  color: inherit;
}


/* ---------- Shared Layout ---------- */

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

  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

::selection {
  color: #ffffff;
  background: var(--color-accent);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}


/* ---------- Common Typography ---------- */

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

  margin-bottom: 18px;

  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-divider {
  color: var(--color-text-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;

  border-radius: 50%;
  background: var(--color-success);

  box-shadow: 0 0 0 4px rgba(85, 214, 162, 0.12);
}

.text-accent {
  color: var(--color-accent);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 16px;
}


/* ---------- Shared Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 50px;
  padding: 0 23px;

  border: 1px solid transparent;
  border-radius: var(--radius-sm);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;

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

.button-primary {
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.button-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 113, 56, 0.24);
}

.button-outline {
  color: var(--color-text);
  background: transparent;
  border-color: var(--color-border-strong);
}

.button-outline:hover {
  color: #ffffff;
  background: var(--color-surface);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}


/* ---------- Accessibility & Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* =========================================
   STEP 2: PREMIUM DARK TEAL NAVBAR
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: #123f3d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);

  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);

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

.header-inner {
  position: relative;

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

  min-height: 82px;
}


/* ---------- Brand ---------- */

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

  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;

  color: #ffffff;
  background: linear-gradient(
    145deg,
    #2c7770,
    #1c514d
  );

  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;

  line-height: 1.25;
}

.brand-text strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: #b9d0c9;
  font-size: 12px;
  font-weight: 500;
}


/* ---------- Desktop Navigation ---------- */

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav > a:not(.button) {
  position: relative;

  padding: 10px 0;

  color: #c6d8d2;
  font-size: 14px;
  font-weight: 600;

  transition: color var(--transition);
}

.primary-nav > a:not(.button)::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;

  height: 2px;
  border-radius: 2px;

  background: var(--color-accent);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform var(--transition);
}

.primary-nav > a:not(.button):hover {
  color: #ffffff;
}

.primary-nav > a:not(.button):hover::after {
  transform: scaleX(1);
}


/* ---------- Navbar CTA ---------- */

.primary-nav .nav-cta {
  min-height: 43px;
  padding: 0 19px;

  border-radius: 9px;
  font-size: 13px;
}

.primary-nav .nav-cta:hover {
  transform: translateY(-2px);
}


/* ---------- Mobile Menu Toggle ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  width: 44px;
  height: 44px;
  padding: 10px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;

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

  cursor: pointer;
}

.nav-toggle span {
  display: block;

  width: 20px;
  height: 2px;

  border-radius: 2px;
  background: #ffffff;

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

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------- Navbar Responsive ---------- */

@media (max-width: 760px) {

  .header-inner {
    min-height: 72px;
    gap: 16px;
  }

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

  .brand-text strong {
    font-size: 14px;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;

    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;

    padding: 12px 22px 22px;

    background: #123f3d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 16px 16px;

    box-shadow: 0 22px 35px rgba(0, 0, 0, 0.24);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav > a:not(.button) {
    padding: 14px 2px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);

    color: #e0ebe6;
  }

  .primary-nav > a:not(.button)::after {
    display: none;
  }

  .primary-nav .nav-cta {
    margin-top: 16px;
    justify-content: center;
  }
}


/* ---------- Small Mobile ---------- */

@media (max-width: 420px) {

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

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

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 11px;
  }
}

/* =========================================
   STEP 3: HERO SECTION
========================================= */

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 96px 0 104px;

  background:
    radial-gradient(
      circle at 82% 35%,
      rgba(58, 117, 106, 0.24),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #102b2a 0%,
      #143735 55%,
      #173e3a 100%
    );

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}


/* ---------- Hero Content ---------- */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.hero-content .eyebrow {
  margin-bottom: 24px;
}

.hero-content h1 {
  max-width: 700px;
  margin-bottom: 24px;

  color: #f8f8f2;

  font-size: clamp(40px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.hero-content .text-accent {
  color: var(--color-accent);
}

.hero-description {
  max-width: 540px;
  margin-bottom: 0;

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

  font-size: 17px;
  line-height: 1.9;
}


/* ---------- Hero Action Buttons ---------- */

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

  margin-top: 32px;
}

.hero-actions .button {
  min-height: 52px;
}

.hero-actions .button-outline {
  background: rgba(255, 255, 255, 0.035);
}

.hero-actions .button-outline:hover {
  background: rgba(255, 255, 255, 0.09);
}


/* ---------- Technology Trust Line ---------- */

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;

  margin-top: 32px;

  color: #c2d2cb;
  font-size: 12px;
  font-weight: 600;
}

.hero-trust span:not(:last-child)::after {
  content: "·";
  margin: 0 12px;

  color: var(--color-accent);
  font-weight: 800;
}


/* ---------- Portrait Area ---------- */

.hero-visual {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  min-width: 0;
  min-height: 460px;

  isolation: isolate;
}

.portrait-decoration {
  position: absolute;
  z-index: -1;

  width: 330px;
  height: 390px;

  border: 1px solid rgba(180, 215, 201, 0.18);
  border-radius: 32px;

  transform: rotate(9deg);
}

.portrait-decoration::before {
  content: "";

  position: absolute;
  inset: 14px;

  border: 1px solid rgba(180, 215, 201, 0.10);
  border-radius: 26px;
}


/* ---------- Portrait Frame ---------- */

.portrait-frame {
  position: relative;

  width: min(78%, 310px);
  padding: 10px;

  border: 1px solid rgba(223, 241, 231, 0.45);
  border-radius: 28px;

  background: #e8eee8;

  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.32),
    0 0 0 8px rgba(221, 239, 229, 0.035);

  transform: rotate(-2deg);

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

.portrait-frame:hover {
  transform: rotate(0deg) translateY(-4px);

  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.36),
    0 0 0 8px rgba(221, 239, 229, 0.05);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 270 / 331;

  object-fit: cover;
  object-position: center 25%;

  border-radius: 20px;
  background: #d8e1dc;
}


/* ---------- Floating Information Cards ---------- */

.floating-card {
  position: absolute;
  z-index: 3;

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

  padding: 13px 16px;

  border: 1px solid rgba(224, 239, 231, 0.16);
  border-radius: 13px;

  color: #f5f7f3;
  background: #1d4844;

  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);

  white-space: nowrap;
}

.floating-card strong {
  display: block;

  color: #ffffff;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.floating-card small {
  display: block;
  margin-top: 3px;

  color: #bdd0c8;

  font-size: 10px;
  line-height: 1.4;
}

.floating-icon {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  border-radius: 10px;

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

  font-size: 18px;
}

.floating-card-top {
  top: 15%;
  left: -7%;
}

.floating-card-bottom {
  right: -3%;
  bottom: 13%;
}

.floating-card-bottom .status-dot {
  background: var(--color-success);
}


/* ---------- Tablet Layout ---------- */

@media (max-width: 960px) {

  .hero-section {
    padding: 76px 0 82px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .hero-visual {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;

    min-height: 430px;
  }

  .portrait-frame {
    width: min(68%, 290px);
  }

  .floating-card-top {
    left: 1%;
  }

  .floating-card-bottom {
    right: 1%;
  }
}


/* ---------- Mobile Layout ---------- */

@media (max-width: 760px) {

  .hero-section {
    padding: 58px 0 66px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-content .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .hero-content h1 {
    font-size: clamp(36px, 8.5vw, 50px);
    line-height: 1.12;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 26px;
    gap: 10px;
  }

  .hero-actions .button {
    min-height: 48px;
    padding-inline: 17px;
    font-size: 13px;
  }

  .hero-trust {
    margin-top: 26px;
    font-size: 11px;
  }

  .hero-trust span:not(:last-child)::after {
    margin-inline: 8px;
  }

  .hero-visual {
    min-height: 390px;
    margin-top: 4px;
  }

  .portrait-frame {
    width: min(64%, 260px);
    padding: 8px;
    border-radius: 24px;
  }

  .portrait-frame img {
    border-radius: 17px;
  }

  .portrait-decoration {
    width: 260px;
    height: 320px;
    border-radius: 24px;
  }

  .floating-card {
    gap: 8px;
    padding: 10px 11px;
    border-radius: 11px;
  }

  .floating-card strong {
    font-size: 10px;
  }

  .floating-card small {
    font-size: 9px;
  }

  .floating-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 15px;
  }

  .floating-card-top {
    top: 10%;
    left: 0;
  }

  .floating-card-bottom {
    right: 0;
    bottom: 9%;
  }
}


/* ---------- Small Mobile ---------- */

@media (max-width: 420px) {

  .hero-section {
    padding-top: 46px;
  }

  .hero-content h1 {
    font-size: 35px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .portrait-frame {
    width: 64%;
  }

  .portrait-decoration {
    width: 220px;
    height: 270px;
  }

  .floating-card {
    padding: 9px;
  }

  .floating-card-top {
    left: -2px;
  }

  .floating-card-bottom {
    right: -2px;
  }
}
/* =========================================
   STEP 4: PROJECTS SECTION
   Refined spacing and more compact project cards
========================================= */

.projects-section {
  position: relative;
  padding: 62px 0 76px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Section Heading ---------- */

.projects-section .section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
}

.projects-section .section-heading h2 {
  color: var(--color-text);
}

.projects-section .section-heading > p:last-child {
  color: var(--color-text-soft);
}

/* ---------- Project Grid ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1080px;
  margin-inline: auto;
}

/* ---------- Project Card ---------- */

.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;

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

  background: var(--color-surface);
  box-shadow: var(--shadow-card);

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

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 113, 56, 0.38);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.23);
}

/* ---------- Project Screenshot ---------- */

.project-image {
  position: relative;
  display: block;

  margin: 11px 11px 0;
  overflow: hidden;

  aspect-ratio: 16 / 9;

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

  background: #214744;
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top center;

  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

/* ---------- Project Open Icon ---------- */

.project-open {
  position: absolute;
  top: 10px;
  right: 10px;

  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;

  color: #ffffff;
  background: rgba(16, 43, 42, 0.9);

  font-size: 16px;

  opacity: 0;
  transform: translateY(4px);

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

.project-card:hover .project-open,
.project-image:focus-visible .project-open {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Project Details ---------- */

.project-content {
  padding: 18px 20px 21px;
}

.project-category {
  margin-bottom: 7px;

  color: var(--color-accent);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 8px;

  color: var(--color-text);

  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.project-content > p:not(.project-category) {
  margin-bottom: 0;

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

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

/* ---------- Project Link ---------- */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-top: 15px;

  color: #ff966d;

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

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

.text-link:hover {
  gap: 10px;
  color: #ffb18f;
}

.text-link-muted {
  color: var(--color-text-muted);
  cursor: default;
}

/* ---------- Placeholder Project ---------- */

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;

  aspect-ratio: 16 / 9;
  margin: 11px 11px 0;
  padding: 20px;

  border: 1px dashed rgba(193, 219, 207, 0.25);
  border-radius: 9px;

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

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(56, 111, 102, 0.23),
      transparent 65%
    ),
    #173b39;

  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.placeholder-symbol {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 113, 56, 0.35);
  border-radius: 12px;

  color: var(--color-accent);
  background: rgba(255, 113, 56, 0.08);

  font-size: 23px;
  font-weight: 400;
}

.project-card-placeholder:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}

.project-card-placeholder .text-link-muted {
  margin-top: 15px;
}

/* ---------- Project Responsive ---------- */

@media (max-width: 760px) {
  .projects-section {
    padding: 58px 0 64px;
  }

  .projects-section .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

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

  .project-content {
    padding: 19px 18px 21px;
  }

  .project-content h3 {
    font-size: 19px;
  }

  .project-open {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Small Mobile ---------- */

@media (max-width: 420px) {
  .projects-section {
    padding: 50px 0 56px;
  }

  .project-image,
  .project-placeholder {
    margin: 9px 9px 0;
  }

  .project-content {
    padding: 17px 16px 19px;
  }

  .project-content h3 {
    font-size: 18px;
  }

  .project-content > p:not(.project-category) {
    font-size: 13px;
  }
}

/* =========================================
   STEP 5: SKILLS & TECHNOLOGIES
========================================= */

.skills-section {
  position: relative;
  overflow: hidden;

  padding: 92px 0 100px;

  background: #102f2d;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Section Heading ---------- */

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

.skills-section .section-heading h2 {
  color: var(--color-text);
}

.skills-section .section-heading > p:last-child {
  color: var(--color-text-soft);
}


/* ---------- Skills Grid ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;

  max-width: 1060px;
  margin-inline: auto;
}


/* ---------- Skill Card ---------- */

.skill-card {
  position: relative;
  overflow: hidden;

  min-height: 190px;
  padding: 26px 25px;

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

  background: linear-gradient(
    145deg,
    #19413e 0%,
    #163936 100%
  );

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);

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


/* Subtle decorative accent */

.skill-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 25px;

  width: 38px;
  height: 3px;

  border-radius: 0 0 4px 4px;

  background: var(--color-accent);

  opacity: 0.85;

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


/* ---------- Skill Card Hover ---------- */

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

  border-color: rgba(255, 113, 56, 0.32);

  background: linear-gradient(
    145deg,
    #204a45 0%,
    #19413d 100%
  );

  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.19);
}

.skill-card:hover::before {
  width: 58px;
  opacity: 1;
}


/* ---------- Skill Number ---------- */

.skill-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  margin-bottom: 22px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;

  color: var(--color-accent);
  background: rgba(255, 113, 56, 0.09);

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


/* ---------- Skill Titles & Descriptions ---------- */

.skill-card h3 {
  margin-bottom: 9px;

  color: #f6f7f1;

  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.skill-card p {
  max-width: 280px;
  margin-bottom: 0;

  color: #bfd0c9;

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


/* ---------- Tablet ---------- */

@media (max-width: 900px) {

  .skills-section {
    padding: 78px 0 84px;
  }

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

  .skill-card {
    min-height: 175px;
    padding: 23px;
  }

  .skill-number {
    margin-bottom: 18px;
  }
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .skills-section {
    padding: 66px 0 72px;
  }

  .skills-section .section-heading {
    margin-bottom: 32px;
    text-align: left;
  }

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

  .skill-card {
    min-height: auto;
    padding: 22px 21px;
  }

  .skill-number {
    width: 33px;
    height: 33px;
    margin-bottom: 15px;
  }

  .skill-card h3 {
    font-size: 17px;
  }

  .skill-card p {
    font-size: 13px;
  }
}


/* ---------- Small Mobile ---------- */

@media (max-width: 420px) {

  .skills-section {
    padding: 56px 0 62px;
  }

  .skill-card {
    padding: 20px;
  }
}

/* =========================================
   STEP 6: CONTACT SECTION
========================================= */

.contact-section {
  position: relative;
  overflow: hidden;

  padding: 100px 0;

  background:
    radial-gradient(
      circle at 5% 15%,
      rgba(50, 105, 95, 0.17),
      transparent 34%
    ),
    #123432;

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


/* ---------- Contact Layout ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(38px, 6vw, 82px);
}


/* ---------- Contact Introduction ---------- */

.contact-content {
  padding-top: 10px;
}

.contact-content .eyebrow {
  margin-bottom: 20px;
}

.contact-content h2 {
  max-width: 500px;
  margin-bottom: 20px;

  color: var(--color-text);

  font-size: clamp(32px, 4vw, 45px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.contact-content > p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 30px;

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

  font-size: 15px;
  line-height: 1.85;
}


/* ---------- Contact Detail Links ---------- */

.contact-links {
  display: grid;
  gap: 12px;

  max-width: 470px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 15px;

  min-width: 0;
  padding: 16px 18px;

  border: 1px solid var(--color-border);
  border-radius: 13px;

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

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

.contact-link:hover {
  transform: translateX(4px);

  border-color: rgba(255, 113, 56, 0.34);
  background: rgba(255, 255, 255, 0.065);
}


/* ---------- Contact Icons ---------- */

.contact-icon {
  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;
  flex: 0 0 43px;

  border: 1px solid rgba(255, 113, 56, 0.24);
  border-radius: 12px;

  color: var(--color-accent);
  background: rgba(255, 113, 56, 0.09);

  font-size: 15px;
  font-weight: 800;
}


/* ---------- Contact Link Text ---------- */

.contact-link > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 0;
}

.contact-link small {
  color: var(--color-text-muted);

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

.contact-link strong {
  overflow-wrap: anywhere;

  color: var(--color-text);

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


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

.contact-form {
  min-width: 0;
  padding: 32px;

  border: 1px solid rgba(225, 240, 231, 0.13);
  border-radius: 20px;

  background: linear-gradient(
    145deg,
    #1c4541 0%,
    #193e3b 100%
  );

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.20);
}


/* ---------- Form Heading ---------- */

.form-heading {
  margin-bottom: 26px;
}

.form-heading h3 {
  margin-bottom: 9px;

  color: var(--color-text);

  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.form-heading p {
  margin-bottom: 0;

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

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


/* ---------- Form Fields ---------- */

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

  margin-bottom: 19px;
}

.form-field label {
  color: #eaf1ec;

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


/* ---------- Inputs, Select & Textarea ---------- */

.form-field input,
.form-field select,
.form-field textarea {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 48px;

  padding: 12px 14px;

  border: 1px solid rgba(218, 237, 226, 0.19);
  border-radius: 10px;

  outline: none;

  color: #f5f7f2;
  background: #153733;

  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.5;

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8fa9a0;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(218, 237, 226, 0.32);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);

  background: #173b37;

  box-shadow: 0 0 0 3px rgba(255, 113, 56, 0.12);
}


/* ---------- Select Options ---------- */

.form-field select {
  cursor: pointer;
}

.form-field select option {
  color: #f5f7f2;
  background: #153733;
}


/* ---------- Message Field ---------- */

.form-field textarea {
  min-height: 145px;

  resize: vertical;
}


/* ---------- Honeypot Spam Field ---------- */

.form-honeypot {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;
  border: 0 !important;
}


/* ---------- Submit Button ---------- */

.form-submit {
  width: 100%;
  min-height: 51px;

  margin-top: 3px;
}

.form-note {
  margin: 15px 0 0;

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

  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}


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

@media (max-width: 900px) {

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

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

  .contact-content {
    padding-top: 0;
  }

  .contact-content h2 {
    max-width: 620px;
  }

  .contact-content > p:not(.eyebrow) {
    max-width: 600px;
  }

  .contact-links {
    max-width: 600px;
  }

  .contact-form {
    width: 100%;
    max-width: 680px;
  }
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .contact-section {
    padding: 66px 0 72px;
  }

  .contact-grid {
    gap: 30px;
  }

  .contact-content h2 {
    font-size: clamp(30px, 7vw, 38px);
  }

  .contact-content > p:not(.eyebrow) {
    font-size: 14px;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-link {
    gap: 12px;
    padding: 13px;
  }

  .contact-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .contact-form {
    padding: 23px 19px;
    border-radius: 16px;
  }

  .form-heading {
    margin-bottom: 23px;
  }

  .form-heading h3 {
    font-size: 22px;
  }

  .form-field {
    margin-bottom: 17px;
  }
}


/* ---------- Small Mobile ---------- */

@media (max-width: 420px) {

  .contact-section {
    padding: 56px 0 62px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 13px;
  }
}

/* =========================================
   STEP 7: PREMIUM DARK TEAL FOOTER
========================================= */

.site-footer {
  position: relative;
  overflow: hidden;

  padding: 66px 0 0;

  color: var(--color-text-soft);
  background: #0d2927;

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


/* ---------- Subtle Footer Decoration ---------- */

.site-footer::before {
  content: "";

  position: absolute;
  top: -190px;
  right: -110px;

  width: 340px;
  height: 340px;

  border: 1px solid rgba(185, 216, 201, 0.08);
  border-radius: 50%;

  box-shadow:
    0 0 0 28px rgba(185, 216, 201, 0.025),
    0 0 0 58px rgba(185, 216, 201, 0.018);

  pointer-events: none;
}


/* ---------- Footer Main Layout ---------- */

.footer-main {
  position: relative;

  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.9fr;
  gap: 38px;

  padding-bottom: 48px;
}


/* ---------- Footer Brand ---------- */

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand .brand-mark {
  background: linear-gradient(
    145deg,
    #34776e,
    #1b514b
  );
}

.footer-brand .brand-text strong {
  color: #ffffff;
}

.footer-brand .brand-text small {
  color: #a9c2b8;
}

.footer-brand > p {
  max-width: 300px;
  margin-bottom: 0;

  color: #a9c2b8;

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


/* ---------- Footer Link Columns ---------- */

.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.footer-column h3 {
  margin-bottom: 7px;

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-column a {
  color: #afc3ba;

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

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

.footer-column a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}


/* ---------- Footer Bottom Bar ---------- */

.footer-bottom {
  position: relative;

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

  min-height: 70px;

  border-top: 1px solid rgba(220, 239, 231, 0.11);
}

.footer-bottom p {
  margin-bottom: 0;

  color: #8fa99f;

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

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #b9cec4;

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

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

.back-to-top:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}


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

@media (max-width: 900px) {

  .site-footer {
    padding-top: 54px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 42px;

    padding-bottom: 38px;
  }

  .footer-brand {
    max-width: 360px;
  }
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .site-footer {
    padding-top: 44px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;

    padding-bottom: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-brand > p {
    max-width: 360px;
  }

  .footer-column {
    gap: 11px;
  }

  .footer-column h3 {
    font-size: 13px;
  }

  .footer-column a {
    font-size: 12px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;

    padding: 20px 0 24px;
  }
}


/* ---------- Small Mobile ---------- */

@media (max-width: 360px) {

  .footer-main {
    gap: 28px 15px;
  }

  .footer-column a {
    overflow-wrap: anywhere;
  }

  .footer-bottom p {
    font-size: 10px;
  }
}

/* =========================================
   FINAL POLISH 1: CONSISTENCY & ACCESSIBILITY
   Keep this block at the end of style.css
========================================= */

/* ---------- Consistent Anchor Behavior ---------- */

html {
  scroll-padding-top: 96px;
}

section[id] {
  scroll-margin-top: 96px;
}


/* ---------- Consistent Interactive Transitions ---------- */

.project-card,
.skill-card,
.contact-link,
.button,
.primary-nav a,
.footer-column a,
.back-to-top {
  -webkit-tap-highlight-color: transparent;
}


/* ---------- Clear Keyboard Focus ---------- */

.site-header a:focus-visible,
.hero-section a:focus-visible,
.project-card a:focus-visible,
.contact-section a:focus-visible,
.site-footer a:focus-visible,
.nav-toggle:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}


/* ---------- Project Image Rendering ---------- */

.project-image img,
.portrait-frame img {
  display: block;
  max-width: 100%;
}


/* ---------- Prevent Unnecessary Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-image img,
  .skill-card,
  .contact-link,
  .button,
  .primary-nav a,
  .footer-column a,
  .back-to-top,
  .portrait-frame {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================
   FINAL POLISH: BRAND LOGO & POWERED BY
========================================= */

/* ---------- Header and Footer Logo ---------- */

.site-header .brand-mark,
.site-footer .brand-mark {
  color: #ffffff;
  background: #F45F26;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(244, 95, 38, 0.18);
}

/* ---------- Powered By Link ---------- */

.powered-by {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.powered-by a {
  color: #F45F26;
  font-weight: 800;
  text-decoration: none;
  transition: color var(--transition);
}

.powered-by a:hover {
  color: #FF966D;
  text-decoration: underline;
}

.powered-by a:focus-visible {
  outline: 2px solid #F45F26;
  outline-offset: 3px;
}
