:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --text: #f5f5f5;
  --text-muted: #b6b6b6;
  --accent: #d4a017;
  --accent-rgb: 212, 160, 23;
  --accent-dark: #a67300;
  --border: #2a2a2a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Tahoma", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.page-glow::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.25),
    transparent 70%
  );
  filter: blur(20px);
}

.page-glow::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 70%);
  filter: blur(30px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.logo {
  font-family: "Space Grotesk", "Cairo", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5vw;
  position: relative;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-family: "Space Grotesk", "Cairo", sans-serif;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 720px;
}

.section-foot {
  margin-top: 24px;
  color: var(--text-muted);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(var(--accent-rgb), 0.3);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-family: "Space Grotesk", "Cairo", sans-serif;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
}

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

.meta-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d68f;
  box-shadow: 0 0 10px rgba(0, 214, 143, 0.6);
  animation: pulse 1.6s infinite;
}

.hero-card {
  background: linear-gradient(160deg, #141414 10%, #0f0f0f 90%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.3),
    transparent 70%
  );
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 600;
}

.pill {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0;
}

.hero-list li {
  position: relative;
  padding-right: 18px;
}

.hero-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}

.hero-stats h3 {
  font-family: "Space Grotesk", "Cairo", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.about-grid,
.skills-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.info-card,
.skill-card,
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 18px;
}

.info-card h3,
.skill-card h3,
.process-card h3 {
  margin-bottom: 12px;
  font-family: "Space Grotesk", "Cairo", sans-serif;
}

.skill-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.skill-card li {
  color: var(--text-muted);
}

.highlight-banner {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1a, #101010);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.2),
    transparent 70%
  );
}

.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-body h3 {
  font-size: 1.1rem;
  font-family: "Space Grotesk", "Cairo", sans-serif;
  margin: 0;
}

.project-body p {
  color: var(--text-muted);
  flex: 1;
  margin: 0;
}

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

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: transparent;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.process-card {
  position: relative;
  overflow: hidden;
}

.process-step {
  font-family: "Space Grotesk", "Cairo", sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.form-card label {
  display: block;
  margin: 14px 0 6px;
  color: var(--text-muted);
}

.form-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Cairo", sans-serif;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: "Cairo", sans-serif;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

.image-preview {
  margin-top: 14px;
  height: 140px;
  border-radius: 16px;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(var(--accent-rgb), 0.05);
  overflow: hidden;
  text-align: center;
  padding: 10px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.form-status {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  min-height: 20px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-list {
  display: grid;
  gap: 14px;
}

.dashboard-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.dashboard-thumb {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
}

.dashboard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-info h4 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.dashboard-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dashboard-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-actions .action-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.contact-card {
  background: linear-gradient(135deg, #131313, #0b0b0b);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 20px;
}

.contact-card h2 {
  font-family: "Space Grotesk", "Cairo", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 12px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.contact-meta > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.site-footer {
  padding: 30px 5vw 50px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  justify-items: center;
}

#dashboard {
  display: none;
}

body.admin-unlocked #dashboard {
  display: block;
  padding-top: 60px;
}

body.admin-unlocked .site-header,
body.admin-unlocked .site-footer,
body.admin-unlocked .floating-whatsapp,
body.admin-unlocked main > section:not(#dashboard) {
  display: none;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-admin {
  margin-top: 4px;
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.footer-admin:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--text);
}

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: #111;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  z-index: 9;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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: 900px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

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

  .floating-whatsapp {
    left: 16px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    gap: 12px;
  }

  .nav-links {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-dot {
    animation: none;
  }
}
