
/* ==========================================
   GAUSSVANPELT — PORTFOLIO
   Colors and font inherited from style.css
========================================== */

.portfolio-page {
  width: 100%;
  background: var(--bg);
  color: var(--white);
}

.portfolio-page * {
  box-sizing: border-box;
}

.portfolio-page img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 0;
}

.portfolio-page a {
  text-decoration: none;
}

.portfolio-container {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
}

.portfolio-page section {
  scroll-margin-top: 105px;
}

/* ==========================================
   HERO
========================================== */

.portfolio-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 78% 45%,
      rgba(220, 53, 69, 0.09),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 12% 100%,
      rgba(71, 99, 124, 0.12),
      transparent 55%
    ),
    var(--bg);
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 65px;
  min-height: 590px;
  padding: 95px 0 55px;
}

.portfolio-hero-content {
  position: relative;
  z-index: 2;
}

.portfolio-eyebrow,
.portfolio-section-kicker,
.portfolio-contact-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.15em;
}

.portfolio-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(220, 53, 69, 0.65);
}

.portfolio-hero h1 {
  margin: 25px 0 28px;
  font-size: clamp(4rem, 9vw, 8.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.portfolio-hero h1 span {
  color: var(--accent);
}

.portfolio-hero-description {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.portfolio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 36px;
}

.portfolio-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 54px;
  padding: 15px 24px !important;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.portfolio-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(220, 53, 69, 0.18);
}

.portfolio-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.portfolio-btn-text:hover {
  color: var(--accent);
}

/* ==========================================
   HERO — CODE ILLUSTRATION
========================================== */

.portfolio-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 390px;
}

.portfolio-art-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(220, 53, 69, 0.12);
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
}

.portfolio-art-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 490px;
  overflow: hidden;
  background: #141b22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.portfolio-hero-art:hover .portfolio-art-window {
  transform: rotate(0);
}

.portfolio-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #202b35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #8495a6;
  font-size: 0.65rem;
}

.portfolio-window-dots {
  display: flex;
  gap: 6px;
}

.portfolio-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #596774;
}

.portfolio-window-dots span:first-child {
  background: #dc3545;
}

.portfolio-window-dots span:nth-child(2) {
  background: #e5ab55;
}

.portfolio-window-dots span:nth-child(3) {
  background: #5eaf8b;
}

.portfolio-art-code {
  padding: 32px 25px;
  overflow-x: hidden;
  color: #c8d5e1;
  font-family: monospace;
  font-size: clamp(0.7rem, 1vw, 0.88rem);
  line-height: 2.25;
  white-space: nowrap;
}

.portfolio-art-code,
.portfolio-art-code * {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.portfolio-code-number {
  display: inline-block;
  width: 30px;
  color: #556676;
}

.portfolio-code-purple {
  color: #bb9af7;
}

.portfolio-code-red {
  color: #f7768e;
}

.portfolio-code-green {
  color: #9ece6a;
}

.portfolio-code-empty {
  height: 25px;
}

.portfolio-art-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #889bac;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.portfolio-status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6cbd98;
}

.portfolio-floating-label {
  position: absolute;
  z-index: 2;
  right: -12px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: #2c3844;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  color: white;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.portfolio-floating-label i {
  color: var(--accent);
  font-size: 1.15rem;
}

.portfolio-hero-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0 35px;
  color: #738391;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.portfolio-scroll-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
}

/* ==========================================
   SECTION HEADINGS
========================================== */

.portfolio-section {
  padding: 110px 0;
}

.portfolio-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 50px;
}

.portfolio-section-kicker {
  margin-bottom: 20px;
}

.portfolio-section-kicker span {
  color: var(--accent);
}

.portfolio-section-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.5vw, 4.7rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.portfolio-section-heading h2 span {
  color: var(--accent);
}

.portfolio-section-heading > p {
  max-width: 385px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

/* ==========================================
   FEATURED APPLICATION CARDS
========================================== */

.portfolio-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.portfolio-feature-card {
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.portfolio-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 53, 69, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

.portfolio-feature-visual {
  position: relative;
  height: 330px;
  overflow: hidden;
  padding: 22px 24px;
}

.portfolio-visual-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.portfolio-preview-note {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

/* Shifta interface illustration */

.portfolio-visual-shifta {
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(75, 132, 198, 0.25),
      transparent 55%
    ),
    #142333;
}

.portfolio-dashboard {
  display: flex;
  width: 92%;
  height: 265px;
  margin: 25px auto 0;
  overflow: hidden;
  background: #f2f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.portfolio-dashboard-sidebar {
  display: flex;
  flex: 0 0 55px;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  padding: 16px 8px;
  background: #192b3e;
}

.portfolio-dashboard-symbol {
  margin-bottom: 7px;
  color: white;
  font-size: 1.2rem;
}

.portfolio-sidebar-item {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: #566d84;
}

.portfolio-sidebar-item.active {
  background: #dc3545;
}

.portfolio-sidebar-item.small {
  width: 15px;
}

.portfolio-dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 24px 20px;
  color: #233447;
}

.portfolio-dashboard-heading {
  font-size: 1rem;
}

.portfolio-dashboard-subtitle {
  margin-top: 4px;
  color: #8595a5;
  font-size: 0.65rem;
}

.portfolio-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.portfolio-dashboard-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 13px 10px;
  background: white;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
}

.portfolio-dashboard-stats small {
  color: #8391a1;
  font-size: 0.55rem;
}

.portfolio-dashboard-stats strong {
  font-size: 0.65rem;
  font-weight: 400;
}

.portfolio-mini-icon {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.portfolio-mini-icon.green {
  background: #58bea0;
}

.portfolio-mini-icon.amber {
  background: #f3ba64;
}

.portfolio-mini-icon.blue {
  background: #7aaff0;
}

.portfolio-dashboard-chart {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 68px;
  margin-top: 18px;
  padding: 0 10px;
  border-bottom: 1px solid #dde3e9;
}

.portfolio-dashboard-chart span {
  flex: 1;
  height: 40%;
  background: #8dafd1;
  border-radius: 3px 3px 0 0;
}

.portfolio-dashboard-chart span:nth-child(2) {
  height: 67%;
}

.portfolio-dashboard-chart span:nth-child(3) {
  height: 48%;
}

.portfolio-dashboard-chart span:nth-child(4) {
  height: 80%;
  background: #dc3545;
}

.portfolio-dashboard-chart span:nth-child(5) {
  height: 57%;
}

.portfolio-dashboard-chart span:nth-child(6) {
  height: 93%;
}

.portfolio-dashboard-chart span:nth-child(7) {
  height: 70%;
}

.portfolio-dashboard-chart span:nth-child(8) {
  height: 85%;
  background: #dc3545;
}

.portfolio-dashboard-chart span:nth-child(9) {
  height: 62%;
}

/* Custodian mobile illustration */

.portfolio-visual-custodian {
  background:
    radial-gradient(
      circle at 50% 70%,
      rgba(111, 124, 255, 0.25),
      transparent 65%
    ),
    #181f37;
}

.portfolio-phone {
  position: relative;
  width: 194px;
  height: 345px;
  margin: 10px auto 0;
  padding: 9px;
  background: #0c1120;
  border: 4px solid #444b67;
  border-radius: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.portfolio-phone-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 65px;
  height: 14px;
  background: #0c1120;
  border-radius: 15px;
  transform: translateX(-50%);
}

.portfolio-phone-content {
  height: 100%;
  padding: 24px 12px 15px;
  background: #f6f7fb;
  border-radius: 19px;
  color: #1c2440;
}

.portfolio-phone-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  background: #6978ee;
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
}

.portfolio-phone-title {
  font-size: 1rem;
}

.portfolio-phone-subtitle {
  margin-top: 4px;
  color: #77809c;
  font-size: 0.48rem;
  line-height: 1.6;
}

.portfolio-phone-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 9px 10px;
  background: #e9ecf4;
  border-radius: 6px;
  color: #838aa5;
  font-size: 0.5rem;
}

.portfolio-phone-label {
  margin-top: 15px;
  color: #8a91a8;
  font-size: 0.45rem;
  letter-spacing: 0.08em;
}

.portfolio-phone-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 5px;
  background: white;
  border: 1px solid #e9ebf1;
  border-radius: 7px;
  font-size: 0.54rem;
}

.portfolio-phone-contact i {
  margin-left: auto;
  color: #a3aac1;
  font-size: 0.45rem;
}

.portfolio-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  color: white;
  font-size: 0.55rem;
}

.avatar-one {
  background: #6f7cff;
}

.avatar-two {
  background: #34b7bd;
}

.avatar-three {
  background: #f4ad2e;
}

/* Featured project descriptions */

.portfolio-feature-info {
  padding: 32px;
}

.portfolio-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #90a2b2;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.portfolio-feature-info h3 {
  margin: 22px 0 14px;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.1;
}

.portfolio-feature-info h3 span {
  color: var(--accent);
}

.portfolio-feature-info > p {
  min-height: 105px;
  margin: 0;
  color: #b5c1cc;
  font-size: 0.94rem;
  line-height: 1.85;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.portfolio-tags span {
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #c6d0da;
  font-size: 0.7rem;
}

.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ==========================================
   WEBSITES
========================================== */

.portfolio-web-section {
  background: #f6f7f8;
  color: #141b22;
}

.portfolio-web-section .portfolio-section-heading h2 {
  color: #141b22;
}

.portfolio-web-section .portfolio-section-heading > p {
  color: #687583;
}

.portfolio-web-section .portfolio-section-kicker {
  color: #71808e;
}

.portfolio-web-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.portfolio-web-card {
  min-width: 0;
}

.portfolio-web-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 340px;
  padding: 30px;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.portfolio-web-card:hover .portfolio-web-preview {
  transform: translateY(-4px);
}

.portfolio-web-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
}

.portfolio-web-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin: auto 0;
}

.portfolio-web-center small {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

.portfolio-web-center strong {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.portfolio-web-center > span {
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.portfolio-web-mehr {
  background: linear-gradient(130deg, #e8dfd1, #c9aa94);
  color: #4b342f;
}

.portfolio-web-otana {
  background: linear-gradient(135deg, #1e242b, #626065);
  color: #f7f2ec;
}

.portfolio-web-decoration {
  position: absolute;
  right: -75px;
  bottom: -125px;
  width: 350px;
  height: 350px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

.portfolio-web-decoration::after {
  content: "";
  position: absolute;
  inset: 35px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.portfolio-web-info {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 5px 0;
}

.portfolio-card-category {
  color: #dc3545;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.portfolio-web-info h3 {
  margin: 12px 0;
  color: #17212b;
  font-size: 1.7rem;
  font-weight: 400;
}

.portfolio-web-info p {
  max-width: 470px;
  margin: 0;
  color: #6c7885;
  font-size: 0.9rem;
  line-height: 1.8;
}

.portfolio-project-mark {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid #d9dee3;
  border-radius: 50%;
  color: #dc3545;
}

.portfolio-section-note {
  margin: 30px 0 0;
  color: #808994;
  font-size: 0.72rem;
  text-align: center;
}

/* ==========================================
   CODING EXPERIMENTS
========================================== */

.portfolio-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-lab-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.portfolio-lab-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 53, 69, 0.45);
}

.portfolio-lab-image {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: #111820;
}

.portfolio-lab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-lab-card:hover .portfolio-lab-image img {
  transform: scale(1.06);
}

.portfolio-lab-open {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(20, 27, 34, 0.9);
  border-radius: 8px;
  color: white;
  font-size: 0.8rem;
}

.portfolio-lab-info {
  padding: 22px 18px;
}

.portfolio-lab-info > span {
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.portfolio-lab-info h3 {
  margin: 12px 0;
  color: white;
  font-size: 1.25rem;
  font-weight: 400;
}

.portfolio-lab-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* ==========================================
   CERTIFICATIONS
========================================== */

.portfolio-certs-section {
  background: #18212a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-cert-details {
  overflow: hidden;
  background: #25313c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.portfolio-cert-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 30px;
  cursor: pointer;
  list-style: none;
}

.portfolio-cert-details summary::-webkit-details-marker {
  display: none;
}

.portfolio-cert-summary-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portfolio-cert-summary-left > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(220, 53, 69, 0.12);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.3rem;
}

.portfolio-cert-summary-left > span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.portfolio-cert-summary-left strong {
  font-size: 1.1rem;
  font-weight: 400;
}

.portfolio-cert-summary-left small {
  color: var(--muted);
  font-size: 0.73rem;
}

.portfolio-cert-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: transform 0.3s;
}

.portfolio-cert-details[open] .portfolio-cert-chevron {
  transform: rotate(180deg);
}

.portfolio-cert-content {
  padding: 10px 30px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-cert-content h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 35px 0 22px;
  font-size: 1.4rem;
  font-weight: 400;
}

.portfolio-cert-content h3 i {
  color: var(--accent);
}

.portfolio-cert-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(180px, 100%), 1fr)
  );
  gap: 18px;
}

.portfolio-cert-grid a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: #1b2630;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.portfolio-cert-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 53, 69, 0.5);
}

.portfolio-cert-grid img {
  width: 100%;
  height: 135px;
  padding: 8px;
  background: white;
  border-radius: 5px;
  object-fit: contain;
}

.portfolio-cert-grid a span {
  color: #c9d2db;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ==========================================
   CONTACT CTA
========================================== */

.portfolio-contact-section {
  padding: 100px 0;
  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(220, 53, 69, 0.11),
      transparent 40%
    ),
    var(--bg);
}

.portfolio-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.portfolio-contact-kicker {
  color: var(--accent);
}

.portfolio-contact-inner h2 {
  margin: 20px 0;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.portfolio-contact-inner h2 span {
  color: var(--accent);
}

.portfolio-contact-inner p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.portfolio-contact-inner .portfolio-btn-primary {
  flex-shrink: 0;
}

/* ==========================================
   RESPONSIVENESS
========================================== */

@media (max-width: 1050px) {
  .portfolio-hero-grid {
    gap: 30px;
  }

  .portfolio-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-feature-info {
    padding: 25px;
  }

  .portfolio-feature-info > p {
    min-height: 0;
  }
}

@media (max-width: 800px) {
  .portfolio-container {
    width: min(100% - 48px, 680px);
  }

  .portfolio-hero-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 75px 0 30px;
  }

  .portfolio-hero h1 {
    font-size: clamp(4rem, 13vw, 7rem);
  }

  .portfolio-hero-art {
    min-height: 310px;
  }

  .portfolio-art-window {
    max-width: 440px;
  }

  .portfolio-section {
    padding: 75px 0;
  }

  .portfolio-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
  }

  .portfolio-section-heading > p {
    max-width: 540px;
  }

  .portfolio-featured-grid,
  .portfolio-web-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-web-preview {
    height: 320px;
  }

  .portfolio-contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .portfolio-container {
    width: calc(100% - 36px);
  }

  .portfolio-hero-grid {
    padding-top: 65px;
  }

  .portfolio-hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.7rem);
  }

  .portfolio-hero-description {
    font-size: 0.91rem;
  }

  .portfolio-hero-actions {
    gap: 20px;
  }

  .portfolio-btn-primary {
    gap: 12px;
    font-size: 0.8rem;
  }

  .portfolio-art-window {
    transform: none;
  }

  .portfolio-floating-label {
    right: 0;
    bottom: 0;
    padding: 11px;
    font-size: 0.55rem;
  }

  .portfolio-art-code {
    padding: 25px 15px;
    font-size: 0.65rem;
  }

  .portfolio-hero-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }

  .portfolio-section-heading h2 {
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }

  .portfolio-feature-visual {
    height: 310px;
    padding: 18px;
  }

  .portfolio-dashboard {
    width: 100%;
  }

  .portfolio-dashboard-main {
    padding: 20px 10px;
  }

  .portfolio-dashboard-stats {
    gap: 5px;
  }

  .portfolio-dashboard-stats > div {
    padding: 10px 5px;
  }

  .portfolio-dashboard-stats small,
  .portfolio-dashboard-stats strong {
    font-size: 0.5rem;
  }

  .portfolio-feature-info h3 {
    font-size: 2.1rem;
  }

  .portfolio-card-meta {
    font-size: 0.6rem;
  }

  .portfolio-web-preview {
    height: 280px;
    padding: 22px;
  }

  .portfolio-web-center strong {
    font-size: 2.5rem;
  }

  .portfolio-web-info h3 {
    font-size: 1.4rem;
  }

  .portfolio-lab-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-lab-image {
    height: 210px;
  }

  .portfolio-cert-details summary {
    padding: 20px 15px;
  }

  .portfolio-cert-summary-left {
    gap: 12px;
  }

  .portfolio-cert-summary-left > i {
    width: 43px;
    height: 43px;
  }

  .portfolio-cert-summary-left strong {
    font-size: 0.95rem;
  }

  .portfolio-cert-content {
    padding: 10px 15px 30px;
  }

  .portfolio-contact-section {
    padding: 70px 0;
  }

  .portfolio-contact-inner h2 {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.portfolio-page a:focus-visible,
.portfolio-cert-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-page *,
  .portfolio-page *::before,
  .portfolio-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}



/* ==========================================
   WEBSITE SHOWCASE — ADDITIONAL PROJECTS
========================================== */

/* ViralMind */

.portfolio-web-viralmind {
  background:
    radial-gradient(
      circle at 85% 25%,
      rgba(69, 205, 189, 0.28),
      transparent 45%
    ),
    linear-gradient(135deg, #101d2c, #153b43);
  color: #f4faf9;
}

.portfolio-web-viralmind .portfolio-web-decoration {
  right: -55px;
  bottom: -145px;
  width: 390px;
  height: 390px;
  opacity: 0.3;
}

/* Shifta Secretary Portal */

.portfolio-web-shifta {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(85, 152, 218, 0.3),
      transparent 50%
    ),
    linear-gradient(135deg, #122236, #294766);
  color: #ffffff;
}

.portfolio-web-shifta .portfolio-web-decoration {
  right: -125px;
  bottom: -125px;
  width: 410px;
  height: 410px;
  opacity: 0.22;
}

/* Casa by Daniele */

.portfolio-web-casa {
  background:
    radial-gradient(
      circle at 82% 70%,
      rgba(208, 166, 110, 0.12),
      transparent 45%
    ),
    linear-gradient(135deg, #1d2327, #3a3531);
  color: #f5ebdc;
}

.portfolio-web-casa .portfolio-web-topbar {
  color: #dfc5a1;
}

.portfolio-web-casa .portfolio-web-center > span {
  color: #dfc5a1;
}

.portfolio-web-casa .portfolio-web-decoration {
  border-color: #dfc5a1;
}

/* RealFanX */

.portfolio-web-realfanx {
  background:
    radial-gradient(
      circle at 82% 65%,
      rgba(189, 73, 119, 0.32),
      transparent 55%
    ),
    linear-gradient(135deg, #171421, #38223a);
  color: #fff6fa;
}

.portfolio-web-realfanx .portfolio-web-decoration {
  border-color: #d17caa;
  opacity: 0.3;
}

/* ==========================================
   WEBSITE LINKS AND STATUS
========================================== */

.portfolio-web-visit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 21px;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(220, 53, 69, 0.4);
  color: #dc3545 !important;
  font-size: 0.83rem;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    gap 0.3s ease;
}

.portfolio-web-visit:hover {
  gap: 17px;
  color: #af2635 !important;
  border-color: #af2635;
}

.portfolio-web-visit i {
  font-size: 0.75rem;
}

.portfolio-web-offline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 21px;
  color: #7a828b;
  font-size: 0.8rem;
}

.portfolio-web-offline i {
  color: #ba945e;
}

/* ==========================================
   CONSISTENT CARD HEIGHTS
========================================== */

.portfolio-web-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portfolio-web-info {
  flex: 1;
}

.portfolio-web-info > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio-web-info p {
  flex: 1;
}

.portfolio-web-visit,
.portfolio-web-offline {
  margin-top: 24px;
}

/* ==========================================
   HOVER REFINEMENTS
========================================== */

.portfolio-web-preview {
  isolation: isolate;
}

.portfolio-web-center {
  transition: transform 0.4s ease;
}

.portfolio-web-card:hover .portfolio-web-center {
  transform: translateY(-5px);
}

.portfolio-web-decoration {
  transition: transform 0.6s ease;
}

.portfolio-web-card:hover .portfolio-web-decoration {
  transform: scale(1.08) rotate(-8deg);
}


/* ==========================================
   WEB PROJECTS — FEATURED LAYOUT
========================================== */

/* First two projects: Shifta and ViralMind */

.portfolio-web-card:nth-child(-n + 2) {
  grid-column: span 2;
}

.portfolio-web-card:nth-child(-n + 2) .portfolio-web-preview {
  height: 370px;
}

.portfolio-web-card:nth-child(-n + 2) .portfolio-web-center strong {
  font-size: clamp(2.7rem, 4vw, 4.3rem);
}

.portfolio-web-card:nth-child(-n + 2) .portfolio-web-info h3 {
  font-size: 1.8rem;
}

/* Remaining four projects */

.portfolio-web-card:nth-child(n + 3) {
  grid-column: span 1;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-preview {
  height: 220px;
  padding: 20px;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-topbar {
  font-size: 0.58rem;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-center {
  gap: 10px;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-center strong {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-center small,
.portfolio-web-card:nth-child(n + 3) .portfolio-web-center > span {
  font-size: 0.53rem;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-info {
  padding: 20px 2px 0;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-info h3 {
  font-size: 1.22rem;
  line-height: 1.3;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-info p {
  font-size: 0.8rem;
  line-height: 1.7;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-visit,
.portfolio-web-card:nth-child(n + 3) .portfolio-web-offline {
  font-size: 0.75rem;
}


/* ==========================================
   TABLET — WEBSITE GRID
========================================== */

@media (max-width: 1100px) {
  .portfolio-web-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  /* Keep Shifta and ViralMind side by side */
  .portfolio-web-card:nth-child(-n + 2) {
    grid-column: span 1;
  }

  /* Remaining websites in two columns */
  .portfolio-web-card:nth-child(n + 3) {
    grid-column: span 1;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {
  .portfolio-web-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .portfolio-web-card:nth-child(n) {
    grid-column: span 1;
  }

  .portfolio-web-card:nth-child(-n + 2) .portfolio-web-preview {
    height: 300px;
  }

  .portfolio-web-card:nth-child(n + 3) .portfolio-web-preview {
    height: 230px;
  }

  .portfolio-web-card:nth-child(n + 3) .portfolio-web-center strong {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
}


/* ==========================================
   SMALL SCREEN ADJUSTMENTS
========================================== */

@media (max-width: 480px) {
  .portfolio-web-topbar {
    font-size: 0.63rem;
  }

  .portfolio-web-center strong {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .portfolio-web-info {
    padding-top: 22px;
  }

  .portfolio-web-visit,
  .portfolio-web-offline {
    font-size: 0.78rem;
  }
}


/* Custodian */

.portfolio-web-custodian {
  background:
    radial-gradient(
      circle at 82% 22%,
      rgba(111, 124, 255, 0.28),
      transparent 50%
    ),
    linear-gradient(135deg, #161b33, #252d52);
  color: #f6f7ff;
}

.portfolio-web-custodian .portfolio-web-decoration {
  right: -90px;
  bottom: -120px;
  width: 390px;
  height: 390px;
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 0.26;
}


/* ==========================================
   PORTFOLIO — REAL WEBSITE SCREENSHOTS
========================================== */

.portfolio-web-preview--screenshot {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 24px 0;
}

.portfolio-web-preview--screenshot .portfolio-web-topbar {
  flex-shrink: 0;
  margin-bottom: 20px;
}

/* Browser window */

.portfolio-browser-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

/* Browser toolbar */

.portfolio-browser-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  padding: 0 12px;
  background: #e9edf2;
  border-bottom: 1px solid #d6dce4;
  color: #697686;
}

.portfolio-browser-dots {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
}

.portfolio-browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.portfolio-browser-dots span:nth-child(1) {
  background: #ff605c;
}

.portfolio-browser-dots span:nth-child(2) {
  background: #ffbd44;
}

.portfolio-browser-dots span:nth-child(3) {
  background: #00ca4e;
}

.portfolio-browser-address {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #697686;
  font-size: 0.58rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-browser-bar > i {
  flex-shrink: 0;
  font-size: 0.58rem;
}

/* Screenshot image */

.portfolio-web-preview--screenshot .portfolio-browser-frame img {
  position: absolute;
  top: 30px;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: calc(100% - 30px);
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}

/* Hover */

.portfolio-web-card:hover .portfolio-browser-frame {
  transform: translateY(-5px);
}

/* Mobile */

@media (max-width: 480px) {
  .portfolio-web-preview--screenshot {
    padding: 16px 16px 0;
  }

  .portfolio-browser-address {
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-browser-frame {
    transition: none;
  }
}

/* ==========================================
   SMALL WEBSITE CARDS — SCREENSHOT TUNING
========================================== */

.portfolio-web-card:nth-child(n + 3) .portfolio-web-preview--screenshot {
  padding: 16px 16px 0;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-preview--screenshot .portfolio-web-topbar {
  margin-bottom: 12px;
  font-size: 0.58rem;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-browser-frame {
  border-radius: 10px 10px 0 0;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-browser-bar {
  height: 26px;
  padding: 0 10px;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-browser-dots span {
  width: 7px;
  height: 7px;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-browser-address {
  font-size: 0.5rem;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-browser-bar > i {
  font-size: 0.5rem;
}

.portfolio-web-card:nth-child(n + 3) .portfolio-web-preview--screenshot .portfolio-browser-frame img {
  top: 26px;
  height: calc(100% - 26px);
  object-fit: cover;
  object-position: center top;
}


/* ==========================================
   CERTIFICATE LIGHTBOX
========================================== */

.cert-lightbox {
  box-sizing: border-box;
  width: min(1050px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  background: #17212b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

/* Dark backdrop */

.cert-lightbox::backdrop {
  background: rgba(5, 9, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Container */

.cert-lightbox-shell {
  padding: 22px;
}

/* Header */

.cert-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 20px;
}

.cert-lightbox-heading {
  min-width: 0;
}

.cert-lightbox-eyebrow {
  color: #dc3545;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.cert-lightbox-heading h3 {
  margin: 9px 0 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
}

/* Close button */

.cert-lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.cert-lightbox-close:hover {
  background: #dc3545;
  transform: rotate(90deg);
}

/* ==========================================
   IMAGE VIEWER
========================================== */

.cert-lightbox-viewer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 250px;
  padding: 16px;
  background: #e9edf1;
  border-radius: 12px;
}

/* Certificate image */

.cert-lightbox-viewer img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 65dvh;
  margin: 0 auto;
  background: white;
  border-radius: 7px;
  object-fit: contain;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

/* Navigation arrows */

.cert-lightbox-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #d5dce4;
  border-radius: 50%;
  color: #17212b;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}

.cert-lightbox-arrow:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
  transform: scale(1.06);
}

/* ==========================================
   FOOTER
========================================== */

.cert-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 20px;
}

.cert-lightbox-footer > span {
  color: #91a0af;
  font-size: 0.75rem;
}

.cert-lightbox-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #dc3545;
  font-size: 0.8rem;
  transition: color 0.25s;
}

.cert-lightbox-footer a:hover {
  color: #f04b5c;
}

/* Keyboard focus */

.cert-lightbox button:focus-visible,
.cert-lightbox a:focus-visible {
  outline: 2px solid #dc3545;
  outline-offset: 4px;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {
  .cert-lightbox {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .cert-lightbox-shell {
    padding: 15px;
  }

  .cert-lightbox-header {
    margin-bottom: 15px;
  }

  .cert-lightbox-viewer {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
    min-height: 170px;
    padding: 8px;
  }

  .cert-lightbox-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .cert-lightbox-viewer img {
    max-height: 58dvh;
  }

  .cert-lightbox-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .cert-lightbox-footer > span {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-lightbox-close,
  .cert-lightbox-arrow {
    transition: none;
  }
}
