:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #bbbbbb;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 26px;
  --radius-sm: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, rgba(255,255,255,.07), transparent 25%), var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
}
button { cursor: pointer; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.bg-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .08;
  pointer-events: none;
}
.glow-1 { background: #fff; top: -10rem; left: -8rem; }
.glow-2 { background: #fff; right: -10rem; top: 25rem; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: .55rem .95rem;
  font-size: .82rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5,5,5,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #9b9b9b);
  color: #000;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.nav a {
  color: var(--muted);
  transition: .25s ease;
}
.nav a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.menu-btn {
  display: none;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--white);
  border-radius: 14px;
  padding: .7rem .9rem;
}

.hero {
  padding-top: 7rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: .98;
  margin: 0 0 1rem;
  letter-spacing: -0.05em;
}
.hero-copy p {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.8;
}
.eyebrow {
  color: #ddd;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: .74rem;
  margin-bottom: 1rem;
}
.hero-cta,
.form-actions,
.project-actions,
.footer-wrap,
.projects-top,
.contact-list {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.hero-stats div,
.panel,
.hero-card,
.project-card,
.timeline-card,
.side-panel,
.modal-card,
.project-admin-banner,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-stats div {
  padding: 1.15rem;
}
.hero-stats strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: .35rem;
}
.hero-stats span,
.timeline-card p,
.feature-list p,
.contact-points,
.contact-list a,
.project-description,
.form-note,
.auth-note,
.upload-status,
.empty-state p,
.site-footer p,
.muted {
  color: var(--muted);
}

.hero-card {
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.screen-header {
  display: flex;
  gap: .4rem;
  padding: .3rem 0 .9rem;
}
.screen-header span {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.hero-panel-grid {
  display: grid;
  gap: 1rem;
}
.mini-card,
.ticker-card {
  border-radius: 22px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.1);
}
.pulse-card {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  animation: floatUpDown 5s ease-in-out infinite;
}
.outline-card {
  background: rgba(255,255,255,.02);
}
.mini-card label,
.project-category {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e0e0e0;
  margin-bottom: .8rem;
}
.mini-card h3 { margin: 0 0 .4rem; font-size: 1.4rem; }
.mini-card ul { margin: 0; padding-left: 1rem; color: var(--muted); }
.ticker-card {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.ticker-card span,
.project-tags span {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .55rem .8rem;
  font-size: .76rem;
  color: #e2e2e2;
  background: rgba(255,255,255,.03);
}

.panel {
  padding: 1.5rem;
}
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.feature-list {
  display: grid;
  gap: 1rem;
}
.feature-list article {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.02);
}
.section-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}
.section-head h2,
.projects-top h2,
.panel h2 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; }
.section-head p,
.projects-top p,
.panel p { line-height: 1.8; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.skill-card {
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.skill-card h3 { margin-top: 0; }
.skill-card p { color: var(--muted); line-height: 1.7; }

.project-tools {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.project-card {
  overflow: hidden;
}
.project-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-image {
  transform: scale(1.06);
}
.project-overlay {
  position: absolute;
  inset: auto .8rem .8rem .8rem;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
}
.project-category,
.project-price {
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.66);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
}
.project-price {
  color: var(--white);
  font-weight: 700;
  font-size: .86rem;
}
.project-card-body {
  padding: 1.1rem;
}
.project-title {
  font-size: 1.15rem;
  margin: 0 0 .6rem;
}
.project-description { line-height: 1.75; min-height: 5.25rem; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.timeline-card {
  padding: 1.3rem;
}
.timeline-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-list {
  flex-direction: column;
}
.contact-list a {
  padding: .95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.contact-points {
  display: grid;
  gap: .8rem;
  padding-left: 1.1rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-wrap {
  justify-content: space-between;
  align-items: center;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: .95rem 1.2rem;
  transition: .25s ease;
}
.primary-btn {
  background: linear-gradient(145deg, #ffffff, #d2d2d2);
  color: #000;
  font-weight: 800;
}
.primary-btn:hover { transform: translateY(-2px); }
.secondary-btn,
.ghost-btn {
  background: rgba(255,255,255,.03);
  color: var(--white);
}
.ghost-btn.light {
  background: rgba(255,255,255,.08);
}
.ghost-btn.small {
  padding: .8rem 1rem;
}
.full { width: 100%; justify-content: center; display: inline-flex; }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.05rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
  font-weight: 800;
}
.whatsapp-float::before {
  content: '✆';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
}

.modal,
.side-panel {
  position: fixed;
  z-index: 80;
}
.modal { inset: 0; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 1.4rem;
}
.side-panel {
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100vh;
  padding: 1.2rem;
  overflow-y: auto;
  border-radius: 0;
  border-left: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.94);
}
.side-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal-close {
  border: none;
  background: rgba(255,255,255,.08);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.4rem;
}

.project-form,
.admin-auth-form {
  display: grid;
  gap: .85rem;
}
label {
  color: #f0f0f0;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color: var(--white);
  padding: .95rem 1rem;
}
input::placeholder,
textarea::placeholder { color: #989898; }
textarea { resize: vertical; min-height: 130px; }

.project-admin-banner,
.empty-state {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.empty-state { flex-direction: column; text-align: center; padding: 2.5rem 1rem; }

.auth-message {
  min-height: 1.2rem;
  color: #f7cece;
}
.upload-status { min-height: 1rem; }
.hidden { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: 78px;
    left: 1rem;
    right: 1rem;
    background: rgba(8,8,8,.96);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    display: none;
  }
  .nav.show { display: flex; }
  .menu-btn { display: inline-flex; }
  .hero-copy h1 { font-size: clamp(2.35rem, 10vw, 4rem); }
  .projects-grid,
  .skill-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .hero { padding-top: 5.5rem; }
  .brand small { display: none; }
  .whatsapp-float span { display: none; }
}
