:root {
  --ink: #1b1b1b;
  --muted: #5b4a4f;
  --brand: #782f40;
  --brand-dark: #5e2432;
  --accent: #ceb888;
  --surface: #faf6ee;
  --surface-strong: #f3ecdc;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(120, 47, 64, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #f8f1de 0%, #faf6ee 36%, #f4e6e1 100%);
  overscroll-behavior-y: auto;
}

html {
  background: #0b1320;
  overflow-y: auto;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100%;
  overflow-y: visible;
  position: static;
}

h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", "Georgia", serif;
  color: #0b1320;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at top, #f8f1de 0%, #faf6ee 36%, #f4e6e1 100%);
}

main {
  flex: 1 0 auto;
  padding-top: 84px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar .navbar-brand {
  font-weight: 600;
  color: var(--ink);
}

.navbar .nav-link {
  color: var(--muted);
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: var(--brand);
}

.navbar-toggler {
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.navbar-toggler-icon {
  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\");
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.35);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: none;
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.35);
}

.btn-brand:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-outline-light {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: var(--ink);
}

.hero-section {
  padding: 6rem 0 4rem;
}

.hero-title {
  font-size: 1.8rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--brand-dark);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.hero-card {
  background: var(--card);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
}

.hero-card-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-dark);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.text-link i {
  margin-left: 0.35rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.hero-badges span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--surface);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.education-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0 0.9rem;
}

.info-card,
.project-card,
.contact-card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  height: 100%;
}

.info-card i {
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.skill-card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.skill-tag {
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 0.35rem;
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.15);
}

.experience-logo {
  width: 170px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 0.7rem;
}

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

.contact-list {
  display: grid;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.contact-list i {
  color: var(--brand);
  margin-right: 0.5rem;
}

.contact-card {
  background: linear-gradient(145deg, #ffffff 0%, #f2f6f7 100%);
}

.form-control {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.2);
}

.form-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-form {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.site-footer {
  padding: 2.5rem 0;
  background: #5e2432;
  color: #e5e7eb;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-note {
  color: rgba(229, 231, 235, 0.7);
  margin-top: 0.35rem;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-links a {
  color: #e5e7eb;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  pointer-events: auto;
}

.footer-links a:hover {
  color: #ceb888;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 4.5rem;
  }

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

  .navbar .navbar-collapse {
    padding: 1rem 0;
  }
}

/* Safety override: keep cards visible even if stale reveal CSS/JS is cached in production. */
.hero-card,
.info-card,
.project-card,
.skill-card,
.contact-card {
  opacity: 1 !important;
  transform: none !important;
}
