:root {
  --bg: #f7f7f2;
  --text: #222831;
  --muted: #646b73;
  --panel: #ffffff;
  --accent: #b6a85f;
  --accent-dark: #7d733f;
  --line: #dedbd0;
  --shadow: 0 12px 30px rgba(21, 27, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 28px;
  color: white;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(16, 19, 23, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.nav-center a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-right input {
  width: 170px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.nav-right input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.btn1,
.primary-action,
.secondary-action,
.project-card a,
.details-btn,
#contact button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn1,
.primary-action,
.project-card a,
.details-btn,
#contact button {
  color: white;
  background: var(--accent);
}

.btn1 {
  padding: 8px 15px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 90px;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(10, 12, 15, 0.64), rgba(10, 12, 15, 0.64)),
    url("../images/dd.jpeg");
  background-size: cover;
  background-position: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.04;
}

#typing-text {
  min-height: 28px;
  margin: 18px 0 0;
  padding-right: 5px;
  border-right: 2px solid var(--accent);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  padding: 11px 18px;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  background: transparent;
}

.primary-action:hover,
.secondary-action:hover,
.project-card a:hover,
.details-btn:hover,
#contact button:hover,
.btn1:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  color: var(--accent);
  font-size: 22px;
  animation: bounce 1.6s infinite;
}

section {
  padding: 82px 22px;
}

section:not(.hero) {
  max-width: 1050px;
  margin: 0 auto;
}

#about,
#skills,
#cv,
#demo,
#projects,
#contact {
  text-align: center;
}

section h2 {
  margin: 0 0 20px;
  font-size: 34px;
}

#about p,
.section-intro {
  max-width: 720px;
  margin: 12px auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: white;
  font-weight: 700;
}

.skill-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: white;
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.skill-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.skill-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.skill-card h3 {
  margin: 0;
  font-size: 24px;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.skill-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skill-stats span {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 14px;
}

.skill-stats strong {
  color: var(--accent-dark);
  font-size: 24px;
}

.cv-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.cv-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: white;
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.07);
}

.cv-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cv-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.cv-panel p,
.cv-panel li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.cv-panel p {
  margin: 0;
}

.cv-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  margin-top: 34px;
  text-align: left;
}

.demo-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.07);
}

.demo-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.voucher-builder {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.voucher-builder label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.voucher-builder select,
.panel-heading input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  color: var(--text);
  background: white;
  font-size: 15px;
  outline: none;
}

.voucher-builder select:focus,
.panel-heading input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 168, 95, 0.18);
}

.voucher-output {
  margin-top: 8px;
  padding: 16px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: #fbfaf6;
}

.output-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.voucher-output strong {
  display: block;
  color: var(--accent-dark);
  font-family: "Courier New", Courier, monospace;
  font-size: 28px;
}

.voucher-output p {
  margin: 8px 0 0;
  color: var(--muted);
}

.demo-stats {
  grid-column: span 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-grid div {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.stat-grid strong {
  color: var(--accent-dark);
  font-size: 26px;
}

.stat-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.user-monitor {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-heading h3 {
  margin: 0;
}

.panel-heading input {
  max-width: 260px;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: 1fr 120px 92px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.user-row span,
.user-row strong {
  font-size: 15px;
}

.user-row em {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.status-online {
  color: #137a3a;
  background: #e6f6ec;
}

.status-expired {
  color: #9a3412;
  background: #fff1e7;
}

.status-offline {
  color: #6b7280;
  background: #eceff3;
}

.user-row.hidden {
  display: none;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.project-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin: 0;
  font-size: 21px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.project-card a,
.details-btn {
  margin-top: auto;
  padding: 8px 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 6px 10px;
  font-size: 12px;
}

.project-details {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}

.project-details.open {
  grid-template-rows: 1fr;
}

.project-details > * {
  min-height: 0;
}

.project-card.hidden {
  display: none;
}

.search-message {
  min-height: 22px;
  margin-top: 22px;
  color: var(--muted);
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

#contact form {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 168, 95, 0.18);
}

#contact textarea {
  min-height: 130px;
  resize: vertical;
}

#contact button {
  padding: 12px;
}

#contact button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

#form-message {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
}

.conn,
.tech-stack {
  text-align: center;
}

.conn {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 28px;
}

.social-links a {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: white;
  font-size: 22px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.social-links a:nth-child(1):hover {
  color: #333;
}

.social-links a:nth-child(2):hover {
  color: #0a66c2;
}

.social-links a:nth-child(3):hover,
.whatsapp-float:hover {
  color: #25d366;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: #25d366;
  font-size: 25px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.whatsapp-float:hover {
  color: white;
  transform: translateY(-2px);
}

.tech-stack {
  color: var(--muted);
}

footer {
  padding: 22px;
  color: white;
  text-align: center;
  background: #1f242a;
}

footer p {
  margin: 0;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 12px 18px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-center {
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    background: rgba(16, 19, 23, 0.96);
  }

  .nav-center a {
    width: 100%;
    padding: 15px 20px;
    text-align: center;
  }

  .nav-center.active {
    display: flex;
  }

  .nav-right {
    display: none;
  }
}

@media (max-width: 700px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-panel {
    padding: 20px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-heading input {
    max-width: none;
  }
}

@media (max-width: 620px) {
  section {
    padding: 64px 16px;
  }

  .hero {
    padding: 110px 16px 80px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .eyebrow,
  #typing-text {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    width: min(100%, 260px);
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-card-body {
    padding: 18px;
  }

  .skill-card h3 {
    font-size: 21px;
  }

  .skill-card p {
    font-size: 15px;
  }

  .skill-stats {
    grid-template-columns: 1fr;
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-panel {
    padding: 18px;
  }

  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-panel {
    padding: 18px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-heading input {
    max-width: none;
  }

  .user-row {
    grid-template-columns: 1fr;
  }

  .user-row em {
    justify-self: start;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 23px;
  }
}
