@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-bg-color: #f7fbfd;
  --primary-accent: #0c1618;
  --secondary-accent: #6f1d1b;

  --main-text-color: #0c1618;
  --supportive-text-color: #242d2f;
  --gray-text-color: #565a5b;

  --white-color: #fff;
  --gray-color: #e9e8e8;
  --gray-color-2: #c0c0c0;
  --gray-color-3: #e6e6e6;

  --color-preloader-bg: var(--white-color);
  --color-dots: #1a1a1a;
}

/* Common styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: var(--main-text-color);
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.15px;
}

.container {
  padding: 0 32px;
  max-width: 1200px;
  /* max-width: clamp(54.5rem, 38.125rem + 81.88vw, 120rem); */
  margin: 0 auto;
}

.container-lg {
  max-width: 1600px;
}

.title {
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 54px;
}

.btn {
  display: inline-block;
  height: 52px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 52px;
  padding: 0 36px;
  margin: 0 12px 16px 0;
  color: var(--white-color);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  background-color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  transition: all 0.3s ease-in;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
  color: var(--white-color);
  outline: 0;
}

.btn:active {
  background-color: #8b4a48;
}

.btn-white {
  background: transparent;
  font-weight: 700;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  transition: all 0.3s ease-in;
}

.btn-white:hover,
.btn-white:focus {
  background: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  color: var(--white-color);
}

.btn-white:active {
  background-color: #3c4446;
}

.btn-red {
  background: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
  color: var(--white-color);
  transition: all 0.3s ease-in;
}

.btn-red:hover,
.btn-red:focus {
  background: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.btn-red:active {
  background-color: #3c4446;
}

h5 {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 23px;
  font-weight: 600;
  text-transform: uppercase;
}

.white {
  color: var(--white-color);
}

/* Header */
.header {
  z-index: 100;
  background-color: transparent;
  height: 90px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  height: 90px;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  background-color: rgba(255, 255, 255, 0.95);
  padding-top: 0;
  padding-bottom: 0;
  transition: all 0.3s ease-in-out;
}

.logo {
  position: relative;
  line-height: 1;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.011rem + 0.57vw, 1.375rem);
  color: var(--main-text-color);
}

.nav-list {
  display: flex;
  column-gap: 46px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.15px;
}

.nav-btn {
  display: none;
}

.nav-link {
  color: var(--main-text-color);
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--secondary-accent);
  text-decoration-thickness: 1.2px;
  text-underline-offset: 7px;
}

/* Hero section */
.hero {
  position: relative;
  padding-top: 180px;
  background-color: var(--primary-bg-color);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
}

.hero-content {
  text-align: left;
  align-self: center;
  padding: 20px;
  flex-grow: 1;
}

.hero-greeting {
  font-size: clamp(1rem, 0.929rem + 0.36vw, 1.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-accent);
}

.hero-heading {
  margin: 5px 0;
  font-weight: 500;
  font-size: clamp(3.25rem, 2.75rem + 2.5vw, 5rem);
  line-height: 1.2;
}

.hero-heading-subtitle {
  font-size: clamp(1.125rem, 1.054rem + 0.36vw, 1.375rem);
  font-weight: 400;
}

.hero-img {
  display: flex;
  flex: 1 1 356px;
  justify-content: flex-end;
  margin-top: auto;
}

.hero-img img {
  display: block;
  position: relative;
}

.about-social-list {
  display: flex;
}

.social-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  margin: 40px 0 40px;
  height: 24px;

  img {
    height: 24px;
    width: 24px;
  }
}

.social-links-row a {
  filter: invert(35%) sepia(11%) saturate(160%) hue-rotate(145deg)
    brightness(88%) contrast(80%);
  transition: all 0.3s ease-in-out;
}

.social-links-row a:hover {
  filter: invert(0%) sepia(0%) saturate(7500%) hue-rotate(305deg)
    brightness(97%) contrast(103%);
}

/* About section */
.about {
  padding: 7rem 0;
}

.about-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  justify-content: center;
  gap: 90px;
  margin-bottom: 80px;
  color: var(--supportive-text-color);
}

.about-descr {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 10px;
}

.skill {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.skill-title,
.skill-percent {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  /* text-transform: uppercase; */
  letter-spacing: 0px;
}

.skill-percent {
  float: right;
}
.skill-bar__progress {
  background-color: var(--gray-color);
  border-radius: 5px;
  height: 4px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.skill-bar__fill {
  background-color: var(--secondary-accent);
  height: 4px;
  width: 0; /* Initial width is 0 */
  transition: width 1.5s ease-in-out; /* Smooth transition for the fill */
}

.about-download-btn {
  margin-top: 40px;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.service-card {
  max-width: 300px;
}

.service-card-img {
  display: block;
  height: 50px;
  margin: 0 auto 20px;
  filter: invert(33%) sepia(7%) saturate(243%) hue-rotate(145deg)
    brightness(94%) contrast(81%);
}

.service-card-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: clamp(1.125rem, 1.089rem + 0.18vw, 1.25rem);
}

.service-card p {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* Works */
.projects {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
}

.projects-title {
  text-align: center;
}

.projects-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project-box {
  position: relative;
  overflow: hidden;
  display: block;
  max-width: 510px;
}

.project-box a {
  display: inline-block;
}

.project-box:hover .project-mask {
  opacity: 1;
  visibility: visible;
}

.project-box:hover .project-mask .project-caption {
  bottom: 30px;
  opacity: 1;
}

.project-box:hover .project-img {
  transform: scale(1.1);
  transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  width: 100%;
}

.project-img {
  transform: scale(1);
  width: 100%;
  transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
}

.project-mask {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.7);
  height: 100%;
  position: absolute;
  transition: all 0.5s ease-in-out 0s;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.project-mask p {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-top: 0;
  text-align: left;
}

.project-mask .project-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  padding-left: 30px;
  padding-right: 30px;
  text-align: left;
  transition: all 0.5s ease-in-out 0s;
  opacity: 0;
}

.project-mask p {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-top: 0;
  text-align: left;
}

/* Contact */
.contact {
  padding: 7rem 0;
  text-align: center;
}

.contact-content {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  color: var(--supportive-text-color);
  margin: 0 auto 20px;
}

.contact form {
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  color: var(--gray-text-color);
  border: 1px solid var(--gray-color-2);
  margin: 7px 0;
}

.contact form .input-box input {
  width: 100%;
}

.contact form textarea {
  resize: none;
}

.contact-button {
  margin-top: 20px;
}

/* Footer */
.footer {
  background-color: var(--primary-accent);
  color: var(--gray-color-3);
}

.footer-row {
  display: flex;
  flex-direction: column;
  column-gap: 20px;
  align-items: center;
  padding: 40px 0;
}

.footer-social {
  margin-top: 0;
}

.footer-social a:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.footer-copyright {
  font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
}

.response {
  position: fixed;
  display: inline-block;
  background-color: var(--primary-accent);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  min-width: 280px;
  padding: 20px 40px;
  bottom: -100px;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  z-index: 5;
}

.response.open {
  bottom: 20px;
  opacity: 1;
  visibility: visible;
}

/* "go to top" button */
.goToTop {
  z-index: 599;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: var(--gray-color);
  top: auto;
  left: auto;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border-radius: 2px;
  transition: opacity 350ms, visibility 350ms;
}

.goToTop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: invert(4%) sepia(23%) saturate(2306%) hue-rotate(148deg)
    brightness(91%) contrast(90%);
}

.goToTop img {
  height: 16px;
  width: 16px;
}

.goToTop:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.goToTop.reveal {
  display: block;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s;
}

/* Preloader with jumping dots */
#preloader {
  position: fixed;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background: var(--color-preloader-bg);
  z-index: 3000;
  height: 100vh;
  width: 100vw;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}

.jumping-dots {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  display: inline-block;
}

.jumping-dots > div {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-dots);
  border-radius: 50%;
}

.jumping-dots > div:nth-of-type(1) {
  left: 20px;
}

.jumping-dots > div:nth-of-type(3) {
  left: -20px;
}

.jumping-dots > div {
  animation: jumping-dots 1.2s infinite ease;
  animation-delay: 0.2s;
}

.jumping-dots > div:nth-of-type(1) {
  animation-delay: 0.4s;
}

.jumping-dots > div:nth-of-type(3) {
  animation-delay: 0s;
}

@keyframes jumping-dots {
  0% {
    top: 0;
  }

  40% {
    top: -6px;
  }

  80% {
    top: 0;
  }
}

/* Portfolio customization */
.hero-img {
  align-items: flex-end;
  padding: 0 20px 0 40px;
}

.hero-img img {
  width: min(430px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 70px rgba(12, 22, 24, 0.12);
  margin-bottom: 45px;
}

.about-details {
  min-width: 0;
}

.location-card,
.education-card,
.experience-card,
.certificate-card {
  background: var(--white-color);
  border: 1px solid var(--gray-color-3);
  box-shadow: 0 18px 60px rgba(12, 22, 24, 0.06);
}

.location-card {
  padding: 28px;
}

.location-card h3,
.education-card h3,
.certificate-card h3,
.experience-card h3 {
  font-size: 22px;
  line-height: 1.35;
  margin: 8px 0 10px;
  font-weight: 600;
}

.location-card p,
.education-card p,
.certificate-card p,
.experience-card p {
  color: var(--supportive-text-color);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  color: var(--secondary-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.7px;
}

.map-embed {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 4px;
  min-height: 260px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.skills-title-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.section-subtitle {
  font-size: 28px;
  font-weight: 600;
}

.skills-row {
  justify-content: center;
}

.skills-row .service-card {
  max-width: 420px;
  padding: 34px;
  border: 1px solid var(--gray-color-3);
  background: #fff;
}

.skill-icon-text {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-accent);
  color: var(--white-color);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.experience-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.experience-card {
  padding: 34px 38px;
}

.experience-card h4 {
  margin-bottom: 14px;
  color: var(--secondary-accent);
  font-size: 16px;
  font-weight: 600;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--gray-text-color);
}

.education-section,
.certificates-section {
  padding: 7rem 0;
}

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

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 980px;
  margin: 0 auto;
}

.education-card {
  padding: 34px;
}

.education-school {
  font-weight: 600;
  color: var(--main-text-color) !important;
}

.education-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray-text-color) !important;
}

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

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.certificate-card {
  overflow: hidden;
}

.certificate-card > a {
  display: block;
  background: #fff;
}

.certificate-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: block;
  padding: 12px;
  transition: transform 0.35s ease;
}

.certificate-card a:hover img {
  transform: scale(1.015);
}

.certificate-content {
  padding: 26px 28px 30px;
}

.direct-contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px auto 34px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--gray-color-2);
  color: var(--main-text-color);
  background: #fff;
  transition: 0.25s ease;
}

.contact-chip:hover {
  border-color: var(--secondary-accent);
  color: var(--secondary-accent);
}


/* Multi-page portfolio layout */
.header-inner {
  background: rgba(255, 255, 255, 0.96);
}

.page-hero {
  padding: 170px 0 80px;
  background: var(--primary-bg-color);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.75rem, 2.2rem + 2.2vw, 4.5rem);
  line-height: 1.1;
  font-weight: 600;
  margin: 10px 0 18px;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--supportive-text-color);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.15rem);
  line-height: 1.75;
}

.page-section {
  min-height: 48vh;
}

.home-sections {
  padding: 7rem 0;
  background: #fff;
}

.page-link-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-link-card,
.tool-card {
  display: block;
  padding: 32px;
  background: #fff;
  color: var(--main-text-color);
  border: 1px solid var(--gray-color-3);
  box-shadow: 0 16px 50px rgba(12, 22, 24, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-link-card:hover,
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-color-2);
  box-shadow: 0 22px 60px rgba(12, 22, 24, 0.09);
}

.page-link-card h2,
.tool-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 9px 0 10px;
}

.page-link-card p,
.tool-card p {
  color: var(--supportive-text-color);
  line-height: 1.7;
  min-height: 82px;
}

.card-arrow,
.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--secondary-accent);
  font-weight: 600;
}

.tools-section {
  padding: 7rem 0;
}

.tools-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.tools-intro h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tools-intro p {
  color: var(--supportive-text-color);
  line-height: 1.7;
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 24px;
  background: var(--primary-accent);
  color: #fff;
  font-weight: 700;
}

.tool-card-empty {
  grid-column: 1 / -1;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.tool-card-empty .tool-icon {
  margin-left: auto;
  margin-right: auto;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 auto 34px;
}

.contact-socials a {
  color: var(--secondary-accent);
  font-weight: 600;
}

/* Theme switcher */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--gray-color-2);
  border-radius: 50%;
  background: var(--surface-color, #fff);
  color: var(--main-text-color);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--secondary-accent);
  transform: translateY(-1px);
  outline: none;
}

.theme-toggle-icon {
  font-size: 20px;
  line-height: 1;
}

body,
.header-inner,
.header-sticky,
.hero,
.page-hero,
.home-sections,
.page-link-card,
.tool-card,
.skills-row .service-card,
.contact-chip,
.education-section,
.certificates-section,
.certificate-card > a,
input,
textarea {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
  --surface-color: #ffffff;
  --surface-soft: #f7fbfd;
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-sticky-bg: rgba(255, 255, 255, 0.95);
  --card-shadow: rgba(12, 22, 24, 0.05);
  --card-shadow-hover: rgba(12, 22, 24, 0.09);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary-bg-color: #111719;
  --primary-accent: #e8eef0;
  --secondary-accent: #e88782;
  --main-text-color: #f3f6f7;
  --supportive-text-color: #c6d0d3;
  --gray-text-color: #aeb9bc;
  --white-color: #f7f9fa;
  --gray-color: #273034;
  --gray-color-2: #49565b;
  --gray-color-3: #303a3e;
  --surface-color: #182023;
  --surface-soft: #111719;
  --header-bg: rgba(17, 23, 25, 0.96);
  --header-sticky-bg: rgba(17, 23, 25, 0.95);
  --card-shadow: rgba(0, 0, 0, 0.18);
  --card-shadow-hover: rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body {
  background: #0d1214;
}

.header-inner {
  background: var(--header-bg);
}

.header-sticky {
  background-color: var(--header-sticky-bg);
}

.home-sections,
.education-section {
  background: var(--surface-color);
}

.page-link-card,
.tool-card,
.skills-row .service-card,
.contact-chip {
  background: var(--surface-color);
}

.page-link-card,
.tool-card {
  box-shadow: 0 16px 50px var(--card-shadow);
}

.page-link-card:hover,
.tool-card:hover {
  box-shadow: 0 22px 60px var(--card-shadow-hover);
}

.certificate-card > a {
  background: var(--surface-color);
}

html[data-theme="dark"] .certificate-card img {
  background: #fff;
}

html[data-theme="dark"] .social-links-row img:not([src*="facebook"]),
html[data-theme="dark"] .about-social-list img {
  filter: invert(1) brightness(1.25);
}

html[data-theme="dark"] .footer .social-links-row img {
  filter: none;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  background: #182023;
  color: var(--main-text-color);
  border-color: var(--gray-color-2);
}

html[data-theme="dark"] .nav-btn img,
html[data-theme="dark"] .goToTop img {
  filter: invert(1) brightness(1.2);
}


/* Checkpoint 2: content, footer, JP brand, SEO pages and dark-mode refinements */
.brand-logo { display:flex; align-items:center; gap:10px; font-weight:600; }
.brand-logo img { width:44px; height:44px; display:block; border-radius:10px; }
.brand-logo span { white-space:nowrap; }
.hero-summary { max-width:680px; margin:22px 0 0; line-height:1.75; color:var(--supportive-text-color); }
.section-title { font-size:clamp(2rem,1.8rem + 1vw,2.7rem); line-height:1.2; font-weight:600; margin:0 0 42px; text-align:center; }
.longform-section { padding:7rem 0; background:var(--surface-soft); }
.content-narrow { max-width:900px; }
.longform-section h2 { font-size:clamp(2rem,1.8rem + 1vw,2.8rem); line-height:1.25; margin:10px 0 26px; font-weight:600; }
.longform-section h3 { font-size:1.35rem; line-height:1.35; margin:36px 0 12px; font-weight:600; color:var(--main-text-color); }
.longform-section p { color:var(--supportive-text-color); font-size:1.02rem; line-height:1.9; margin:0 0 18px; }
.about-content h2 { color:var(--main-text-color); font-size:2rem; margin-bottom:20px; }
.experience-section { padding:7rem 0; background:var(--surface-color); }

/* Cards use theme surfaces instead of hard-coded white */
.location-card,.education-card,.experience-card,.certificate-card,.skills-row .service-card,.page-link-card,.tool-card { background:var(--surface-color); border-color:var(--gray-color-3); box-shadow:0 18px 60px var(--card-shadow); }
.home-sections,.education-section { background:var(--surface-color); }
.certificate-card > a { background:var(--surface-color); }
.hero-img img { border-color:var(--portrait-border, rgba(255,255,255,.75)); box-shadow:0 24px 70px var(--portrait-shadow, rgba(12,22,24,.12)); }

/* Expanded footer replaces the separate Contact page */
.footer { background:#0c1618; color:#e6ecee; }
.footer-contact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; padding:58px 0 38px; }
.footer-block { display:flex; flex-direction:column; gap:10px; }
.footer-heading { color:#fff; font-size:1rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px; }
.footer-block a,.footer-block span { color:#d2dcdf; line-height:1.6; }
.footer-block a:hover,.footer-block a:focus { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.14); padding:24px 0 32px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.footer-brand { display:flex; align-items:center; gap:10px; color:#fff; font-weight:600; }
.footer-brand img { width:38px; height:38px; border-radius:9px; }
.footer-bottom p { color:#b8c4c7; font-size:.9rem; }

/* Better dark mode contrast */
:root { --portrait-border:rgba(255,255,255,.78); --portrait-shadow:rgba(12,22,24,.12); }
html[data-theme="dark"] { --portrait-border:rgba(232,238,240,.16); --portrait-shadow:rgba(0,0,0,.38); }
html[data-theme="dark"] body { background:#0d1214; color:var(--main-text-color); }
html[data-theme="dark"] .hero,html[data-theme="dark"] .page-hero,html[data-theme="dark"] .certificates-section { background:#111719; }
html[data-theme="dark"] .longform-section { background:#0d1214; }
html[data-theme="dark"] .location-card,html[data-theme="dark"] .education-card,html[data-theme="dark"] .experience-card,html[data-theme="dark"] .certificate-card,html[data-theme="dark"] .skills-row .service-card,html[data-theme="dark"] .page-link-card,html[data-theme="dark"] .tool-card { background:#182023; border-color:#303a3e; }
html[data-theme="dark"] .certificate-card > a { background:#f7f9fa; }
html[data-theme="dark"] .certificate-card img { background:#f7f9fa; }
html[data-theme="dark"] .skill-icon-text,html[data-theme="dark"] .tool-icon { background:#e88782; color:#111719; }
html[data-theme="dark"] .btn { background:#e8eef0; border-color:#e8eef0; color:#111719; }
html[data-theme="dark"] .btn:hover,html[data-theme="dark"] .btn:focus { background:#e88782; border-color:#e88782; color:#111719; }
html[data-theme="dark"] .btn-white { background:transparent; border-color:#e8eef0; color:#e8eef0; }
html[data-theme="dark"] .btn-white:hover,html[data-theme="dark"] .btn-white:focus { background:#e8eef0; color:#111719; }
html[data-theme="dark"] .nav-link,html[data-theme="dark"] .brand-logo { color:#f3f6f7; }
html[data-theme="dark"] .page-link-card h3,html[data-theme="dark"] .tool-card h3,html[data-theme="dark"] .education-school { color:#f3f6f7 !important; }
html[data-theme="dark"] .footer { background:#080c0e; }
html[data-theme="dark"] .social-links-row img { filter:invert(1) brightness(1.2); }

@media (max-width:977px) {
  .nav.open .nav-list { background-color:var(--surface-color); }
  .nav-link { color:var(--supportive-text-color); }
  .nav-link.active { color:var(--main-text-color); }
  html[data-theme="dark"] .nav.open .nav-list { background-color:#111719; }
  .brand-logo span { display:none; }
}
@media (max-width:720px) {
  .footer-contact-grid { grid-template-columns:1fr; gap:26px; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
  .longform-section { padding:5rem 0; }
}


/* Portfolio refinement: concise page content, reliable first paint, footer icons, WhatsApp CTA */
body, button, input, textarea, select { font-family: "Poppins", sans-serif; }

/* Core content is visible immediately; no scroll-animation dependency. */
[data-aos] { opacity: 1 !important; transform: none !important; }
.page-section { min-height: 0; }
.page-hero { padding-bottom: 72px; }

/* JP monogram visibility */
.brand-logo img, .footer-brand img { background:#0c1618; }

/* More balanced home card layout after adding Certificates */
.page-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.page-link-card { min-height: 220px; }

/* Footer contact rows with icons */
.footer-contact-grid { grid-template-columns: 1.15fr 1.35fr 1fr; }
.footer-item { display:flex; align-items:flex-start; gap:10px; }
.footer-item img { width:19px; height:19px; flex:0 0 19px; margin-top:3px; object-fit:contain; }
.footer-block > .footer-item { color:#d2dcdf; }
.footer-block a.footer-item:hover span, .footer-block a.footer-item:focus span { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.footer-block a.footer-item:hover, .footer-block a.footer-item:focus { text-decoration:none; }
.footer-block img[src*="social_icons"] { filter: invert(1) brightness(1.2); }

/* Floating WhatsApp CTA */
.whatsapp-float { position:fixed; right:28px; bottom:28px; width:58px; height:58px; border-radius:50%; display:grid; place-items:center; background:#25D366; box-shadow:0 14px 36px rgba(0,0,0,.22); z-index:1800; transition:transform .2s ease, box-shadow .2s ease; }
.whatsapp-float img { width:36px; height:36px; }
.whatsapp-float:hover, .whatsapp-float:focus { transform:translateY(-3px); box-shadow:0 18px 40px rgba(0,0,0,.28); outline:none; }
.whatsapp-tooltip { position:absolute; right:68px; background:#0c1618; color:#fff; padding:7px 10px; border-radius:6px; font-size:12px; white-space:nowrap; opacity:0; pointer-events:none; transform:translateX(5px); transition:.2s ease; }
.whatsapp-float:hover .whatsapp-tooltip, .whatsapp-float:focus .whatsapp-tooltip { opacity:1; transform:translateX(0); }
.goToTop { right:38px; bottom:100px; }

/* Dark-mode visibility fixes */
html[data-theme="dark"] .home-sections, html[data-theme="dark"] .education-section, html[data-theme="dark"] .tools-section, html[data-theme="dark"] .about.page-section, html[data-theme="dark"] .experience-section { background:#0d1214; }
html[data-theme="dark"] .page-link-card p, html[data-theme="dark"] .tool-card p, html[data-theme="dark"] .experience-card p, html[data-theme="dark"] .education-card p, html[data-theme="dark"] .certificate-content p, html[data-theme="dark"] .about-descr, html[data-theme="dark"] .location-card p, html[data-theme="dark"] .tools-intro p { color:#d2dcdf; }
html[data-theme="dark"] .section-title, html[data-theme="dark"] .section-subtitle, html[data-theme="dark"] .tools-intro h2, html[data-theme="dark"] .experience-card h4 { color:#f3f6f7; }
html[data-theme="dark"] .page-link-card, html[data-theme="dark"] .tool-card, html[data-theme="dark"] .experience-card, html[data-theme="dark"] .education-card, html[data-theme="dark"] .location-card, html[data-theme="dark"] .skills-row .service-card { background:#182023; }
html[data-theme="dark"] .header-sticky { background:rgba(13,18,20,.96); border-bottom:1px solid #263034; }
html[data-theme="dark"] .theme-toggle { color:#f3f6f7; border-color:#4b5b61; }

@media (max-width: 977px) {
  .page-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-contact-grid { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .page-link-grid { grid-template-columns:1fr; }
  .page-link-card { min-height:0; }
  .whatsapp-float { right:18px; bottom:18px; width:54px; height:54px; }
  .goToTop { right:25px; bottom:86px; }
}
