: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);
}

.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-sub {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  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;
}

.primary-action {
  color: white;
  background: var(--accent);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  background: transparent;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.secondary-action:hover {
  border-color: var(--accent-dark);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  max-width: 800px;
  width: 100%;
}

.stat-card {
  flex: 1 1 160px;
  max-width: 180px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.8;
}

.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;
}

section h2 {
  margin: 0 0 20px;
  font-size: 34px;
  text-align: center;
}

.section-intro {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

#about p {
  max-width: 720px;
  margin: 12px auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

#about p strong {
  color: var(--text);
}

.building-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0;
}

.building-list li {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  background: white;
  font-weight: 600;
  font-size: 14px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  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;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: white;
  font-weight: 700;
  font-size: 12px;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-features span {
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 12px;
}

.project-card .primary-action,
.project-card .secondary-action {
  margin-top: auto;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff1e7;
  font-size: 12px;
  font-weight: 700;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.skill-category {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 20px;
}

.skill-category h3 i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-size: 14px;
}

.skill-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-category li {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  background: #fbfaf6;
  font-size: 14px;
  font-weight: 600;
}

.arch-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding: 0 20px;
}

.arch-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.arch-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.arch-step:hover .arch-icon {
  transform: scale(1.1);
}

.arch-step span {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}

.arch-arrow {
  color: var(--accent);
  font-size: 18px;
}

.status-table-wrapper {
  overflow-x: auto;
  margin-top: 34px;
}

.status-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.status-table th,
.status-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.status-table th {
  background: #fbfaf6;
  font-weight: 700;
  color: var(--text);
}

.status-table td a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.status-table td a:hover {
  text-decoration: underline;
}

.status-live {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  color: #137a3a;
  background: #e6f6ec;
  font-size: 13px;
  font-weight: 700;
}

.status-dev {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff1e7;
  font-size: 13px;
  font-weight: 700;
}

.status-placeholder {
  color: var(--muted);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.resume-actions .secondary-action {
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  background: white;
}

.resume-actions .secondary-action:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 34px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-item i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.contact-item a:hover {
  color: var(--accent-dark);
}

#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 {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: none;
  border-radius: 6px;
  color: white;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

#contact button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

#contact button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

#form-message {
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

.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);
}

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;
  }

  .stats-row {
    gap: 12px;
  }

  .stat-card {
    flex: 1 1 130px;
    max-width: 150px;
    padding: 16px 12px;
  }

  .stat-card strong {
    font-size: 18px;
  }

  .arch-flow {
    gap: 4px;
  }

  .arch-step {
    min-width: 70px;
  }

  .arch-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .arch-step span {
    font-size: 11px;
  }
}

@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);
  }

  .stat-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .arch-flow {
    flex-direction: column;
    gap: 6px;
  }

  .arch-arrow {
    transform: rotate(90deg);
  }

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

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 23px;
  }

  .status-table th,
  .status-table td {
    padding: 10px 14px;
    font-size: 14px;
  }
}
