:root {
  --accent-color: #d8d8d8;
  --accent-secondary: #ffffff;
  --accent-tertiary: #a8a8a8;
  --background-color: #050505;
  --surface-color: #141414;
  --heading-font: "Poppins", sans-serif;
  --default-font: "Inter", "Roboto", system-ui, -apple-system, sans-serif;
}

body {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.10), transparent 34rem),
    radial-gradient(circle at 86% 14%, rgba(180, 180, 180, 0.08), transparent 30rem),
    #050505;
}

.header {
  background: rgba(5, 8, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header .logo {
  gap: 12px;
}

.logo-mark {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #b9b9b9 100%);
  border-radius: 8px;
  color: #050505;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  letter-spacing: 0;
  width: 44px;
}

.header .logo h1 {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  letter-spacing: 0;
}

.navmenu a.nav-cv,
.navmenu a.nav-cv:focus {
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 42%);
  border-radius: 8px;
  color: #ffffff;
  padding: 8px 12px;
}

.navmenu .dropdown ul {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.navmenu .dropdown ul a.active {
  color: #ffffff;
}

.navmenu .dropdown ul .lang-option {
  color: var(--nav-dropdown-color);
  gap: 8px;
}

.hero.personalized-hero {
  min-height: 100vh;
  overflow: hidden;
}

.hero.personalized-hero::after {
  background: linear-gradient(90deg, rgba(5, 8, 18, 0.34), rgba(5, 8, 18, 0.05) 60%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero .container {
  max-width: 1040px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 18px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.hero h2 {
  font-size: clamp(2.9rem, 7vw, 5.7rem);
  line-height: 0.96;
  max-width: 760px;
}

.hero p {
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
}

.hero .hero-description {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.8;
  max-width: 650px;
}

.hero-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.btn-portfolio {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  padding: 12px 17px;
}

.btn-portfolio.primary {
  background: linear-gradient(135deg, #ffffff 0%, #c8c8c8 58%, #8f8f8f 100%);
  color: #050505;
}

.btn-portfolio.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.social-links a {
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  max-width: 690px;
}

.stat-item {
  border-left: 2px solid var(--accent-color);
  padding-left: 16px;
}

.stat-value {
  color: #ffffff;
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.stat-label {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 0.92rem;
}

.index-page .hero.personalized-hero::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.04) 66%);
}

.index-page .eyebrow {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.index-page .btn-portfolio.primary {
  background: #ffffff;
  color: #050505;
}

.index-page .btn-portfolio.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.index-page .stat-item {
  border-left-color: rgba(255, 255, 255, 0.72);
}

.index-page .social-links a:hover {
  background: #ffffff;
  color: #050505;
}

.page-title .heading {
  padding: 150px 0 56px;
}

.page-title h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.page-title p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.breadcrumbs {
  background: rgba(255, 255, 255, 0.04);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-page .page-title .heading {
  padding: 108px 0 30px;
}

.portfolio-page .page-title .container,
.portfolio-page .portfolio .container {
  max-width: 1320px;
}

.portfolio-page .page-title .row {
  justify-content: flex-start !important;
}

.portfolio-page .page-title .text-center {
  text-align: left !important;
}

.portfolio-page .page-title h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.portfolio-page .page-title p {
  line-height: 1.55;
  margin-inline: 0;
  max-width: 600px;
}

.portfolio-page .breadcrumbs {
  display: none;
}

.portfolio-details-page .page-title .heading {
  padding: 108px 0 32px;
}

.portfolio-details-page .page-title .container,
.portfolio-details .container {
  max-width: 1320px;
}

.portfolio-details-page .page-title .row {
  justify-content: flex-start !important;
}

.portfolio-details-page .page-title .text-center {
  text-align: left !important;
}

.portfolio-details-page .page-title h1 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.12;
  max-width: 980px;
}

.portfolio-details-page .page-title p {
  line-height: 1.55;
  margin-inline: 0;
  max-width: 620px;
}

.portfolio-details-page .breadcrumbs {
  display: none;
}

.contact-page .page-title .heading {
  padding: 112px 0 34px;
}

.contact-page .breadcrumbs {
  display: none;
}

.contact-page .contact.section {
  padding-top: 42px;
}

.profile-panel {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}

.profile-photo {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.profile-photo img {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.lead-muted {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
}

.info-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.info-list li {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
}

.info-list strong {
  color: var(--accent-color);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.focus-grid,
.skill-grid,
.portfolio-grid-custom {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.skill-card-custom,
.project-card-custom,
.contact-card,
.note-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 22px;
}

.focus-card i,
.contact-card i {
  color: var(--accent-secondary);
  font-size: 1.55rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.chip,
.tech-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  color: #f1f1f1;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 7px 10px;
}

.resume .resume-title {
  color: var(--accent-secondary);
}

.resume .resume-item {
  border-left-color: rgba(255, 255, 255, 0.22);
}

.resume .resume-item::before {
  background: var(--accent-color);
  border-color: #050505;
}

.portfolio-page .portfolio-filters li {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 7px 12px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portfolio-page .portfolio .portfolio-filters li.filter-active,
.portfolio-page .portfolio .portfolio-filters li:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: #050505;
}

.portfolio-page .portfolio.section {
  padding-top: 26px;
}

.portfolio-page .portfolio .portfolio-filters {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0 0 22px !important;
  padding: 7px;
  text-align: left;
}

.portfolio-content {
  border-radius: 8px;
  overflow: hidden;
}

.project-card-custom {
  height: 100%;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.project-card-custom:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-4px);
}

.project-card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  text-decoration: none;
}

.project-card-link:hover {
  color: inherit;
}

.project-media {
  background: #0d0d0d;
  display: block;
  overflow: hidden;
  position: relative;
}

.project-media::after {
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.58));
  content: "";
  inset: 0;
  position: absolute;
}

.project-media img {
  aspect-ratio: 16 / 7.25;
  display: block;
  filter: grayscale(0.16) saturate(0.78) contrast(1.04);
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  width: 100%;
}

.project-card-custom:hover .project-media img {
  filter: grayscale(0.04) saturate(0.92) contrast(1.08);
  transform: scale(1.035);
}

.project-index {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  bottom: 14px;
  color: #050505;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  left: 14px;
  position: absolute;
  width: 42px;
  z-index: 1;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px 15px;
}

.project-card-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.project-category {
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.project-status {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 7px;
  text-align: right;
}

.project-title {
  color: #ffffff;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: block;
  display: -webkit-box;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
}

.project-summary {
  color: rgba(255, 255, 255, 0.70);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  font-size: 0.86rem;
  line-height: 1.48;
  overflow: hidden;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card-tech span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 750;
  padding: 5px 7px;
}

.project-card-actions {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.project-link-label {
  align-items: center;
  background: rgba(5, 5, 5, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-size: 0;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.project-link-label span {
  display: none;
}

.project-link-label i {
  font-size: 1rem;
  line-height: 1;
}

.project-link-label i {
  transition: transform 0.2s ease;
}

.project-card-custom:hover .project-link-label i {
  transform: translate(3px, -3px);
}

.project-detail-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
}

.portfolio-details.section {
  padding-top: 38px;
}

.project-detail-media {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.project-detail-media img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.project-media-strip {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px;
}

.project-media-strip span:first-child {
  color: #ffffff;
  font-weight: 800;
}

.project-media-strip span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  text-align: right;
}

.project-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portfolio-details .portfolio-info,
.portfolio-details .portfolio-description {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
}

.portfolio-details .portfolio-info h3 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.portfolio-details .portfolio-info ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portfolio-details .portfolio-info li {
  display: grid;
  gap: 4px;
}

.portfolio-details .portfolio-info strong {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.portfolio-details .portfolio-info span {
  color: #ffffff;
  font-weight: 750;
}

.project-live-link,
.project-back-link {
  justify-content: center;
  width: 100%;
}

.project-live-link {
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  color: #050505;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  padding: 13px 16px;
  text-decoration: none;
}

.project-live-link:hover {
  background: #d8d8d8;
  color: #050505;
}

.project-detail-copy {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

.project-section-kicker {
  color: var(--accent-color);
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.portfolio-description p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0;
}

.tech-stack-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 0;
}

.project-contribution-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.project-contribution-list li {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.contact-card {
  height: 100%;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-top: 10px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-top: 0 !important;
  padding: 24px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.30) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  padding: 14px 16px !important;
}

.contact-form input {
  min-height: 54px;
}

.contact-form textarea {
  min-height: 145px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.42) !important;
}

.contact-hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-helper {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
  max-width: 540px;
}

.contact .contact-form button[type=submit] {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  min-width: 154px;
  padding: 12px 24px;
}

.contact .contact-form button[type=submit]:disabled {
  cursor: wait;
  opacity: 0.64;
}

.contact-form .error-message,
.contact-form .sent-message,
.contact-form .loading {
  border-radius: 8px;
  margin: 0;
  width: 100%;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1199px) {
  .navmenu a.nav-cv,
  .navmenu a.nav-cv:focus {
    border: 0;
    padding: 10px 20px;
  }
}

@media (max-width: 992px) {
  .profile-panel,
  .focus-grid,
  .skill-grid,
  .portfolio-grid-custom,
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero h2 {
    font-size: 3rem;
  }

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

  .btn-portfolio {
    justify-content: center;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .project-card-link {
    min-height: 0;
  }

  .project-card-top,
  .project-media-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-status,
  .project-media-strip span:last-child {
    text-align: left;
  }
}
