@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ─── Variables ─── */
:root {
  --bg:       #0f0f0f;
  --surface:  #161616;
  --card:     #1a1a1a;
  --border:   #2a2a2a;
  --accent:   #a855f7;
  --accent-2: #c084fc;
  --text:     #c4c4c4;
  --heading:  #f0f0f0;
  --muted:    #636363;
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  font-weight: 300;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── Navbar ─── */
.navbar {
  width: 100%;
  padding: 20px 7%;
  background: rgba(17, 17, 16, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--heading);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent);
}

.navbar ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.navbar a:hover {
  color: var(--heading);
}

/* ─── Hero ─── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 7%;
}

.hero-content {
  max-width: 700px;
}

.hero-intro {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-intro::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero h1 .name {
  color: var(--accent);
}

.hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-stack {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 40px;
  opacity: 0.8;
}

.hero-stack span {
  color: var(--accent-2);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 11px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.btn-solid {
  background: var(--accent);
  color: #0f0f0f;
}
.btn-solid:hover {
  background: #c4b0fc;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
  color: var(--heading);
}

/* Fallback for plain .btn (subpages) */
.btn:not(.btn-solid):not(.btn-ghost) {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 12px;
  padding: 9px 20px;
  border-radius: 5px;
  margin-top: 6px;
}
.btn:not(.btn-solid):not(.btn-ghost):hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.07);
}

/* ─── Sections ─── */
.section {
  padding: 88px 7%;
  max-width: 1200px;
  margin: auto;
}

.section > h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 44px;
  letter-spacing: -0.3px;
}

.section > h2::after {
  content: '.';
  color: var(--accent);
}

/* ─── Projects Grid ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: #444;
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.25);
}

.project-type {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.project-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  font-size: 11px;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.project-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.project-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.75; }

/* ─── Inner Page Cards ─── */
.project-card > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}

.project-card strong {
  color: var(--heading);
  font-weight: 500;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.meta-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-2);
  letter-spacing: 0.3px;
}

.project-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin: 30px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.65;
}

.project-card ul {
  list-style: none;
  margin-bottom: 20px;
}
.project-card ul li {
  font-size: 13px;
  color: var(--text);
  padding: 5px 0 5px 16px;
  position: relative;
}
.project-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── Media ─── */
.project-card img {
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 14px auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d0d0c;
}

video {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #000;
}

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.gallery-grid figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin: 0;
  transition: border-color 0.2s;
}
.gallery-grid figure:hover { border-color: #333333; }

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background: #0d0d0c;
  margin: 0;
  border: none;
  padding: 6px;
  max-width: none;
}

.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.3px;
}

/* ─── Wireframes ─── */
.wireframe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.wireframe-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d0d0c;
  padding: 6px;
  max-width: none;
}

/* ─── Design Section ─── */
.design-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.design-section h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.65;
}

/* ─── About ─── */
.about > p {
  font-size: 15px;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.85;
}

.about h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 18px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  list-style: none;
  max-width: 720px;
}

.skills li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.skills li:hover {
  border-color: #333333;
  color: var(--heading);
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 760px;
}

.contact-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: #333333; }

.contact-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}

.contact p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 28px 7%;
  border-top: 1px solid var(--border);
}
footer p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
footer span { color: var(--accent); }

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.1s; }
.reveal-d3 { transition-delay: 0.15s; }
.reveal-d4 { transition-delay: 0.2s; }
.reveal-d5 { transition-delay: 0.25s; }

/* ─── Hero Entrance ─── */
.hero-content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.55s forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.42s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.contact-value a {
  color: #c4b5fd; /* soft violet (match sa theme mo) */
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.contact-value a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}
/* TEXT CLARITY IMPROVEMENTS */

:root {
  --text: #d8d8d8;
  --muted: #9a9a9a;
  --heading: #ffffff;
}

body {
  font-size: 16px;
}

.navbar a {
  color: #9f9f9f;
  font-size: 14px;
}

.navbar a:hover {
  color: #ffffff;
}

.hero-desc {
  color: #b8b8b8;
  font-size: 16px;
}

.hero-stack {
  font-size: 15px;
  color: #d0d0d0;
}

.project-type {
  color: #9b9b9b;
  font-size: 12px;
}

.project-card h3 {
  color: #ffffff;
  font-size: 18px;
}

.project-card p {
  color: #d7d7d7;
  font-size: 15px;
  font-weight: 400;
}

.tag {
  color: #bdbdbd;
  font-size: 12px;
}

.project-link {
  color: #b66cff;
  font-size: 14px;
}

.about > p {
  color: #d8d8d8;
  font-size: 16px;
  font-weight: 400;
}

.skills li {
  color: #dcdcdc;
  font-size: 14px;
}

.contact-value {
  color: #dcdcdc;
  font-size: 14px;
}

.contact-value a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 500;
}

.contact-value a:hover {
  color: #ffffff;
}
/* ─── Responsive ─── */
@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 14px; padding: 14px 6%; }
  .navbar ul { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .hero { min-height: auto; padding: 60px 6%; }
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 6%; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .wireframe-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: auto; }
  .skills { grid-template-columns: 1fr 1fr; }
}