/* ============================================================
   Vergel Emmanuel Mata | Bookkeeping VA — Style Sheet
   ============================================================ */

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --neutral-900: #111111;
  --neutral-800: #1a1a1a;
  --neutral-700: #2a2a2a;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #c7c7c7;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-5: rgba(255, 255, 255, 0.05);
  --white-30: rgba(255, 255, 255, 0.3);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

ul { list-style: none; }

button { cursor: pointer; font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- TYPOGRAPHY COMMON ----- */
.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 15px;
  color: var(--neutral-400);
  line-height: 1.7;
  max-width: 440px;
}

.section {
  padding: 96px 0;
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

.link-underline {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--white-20);
  transition: color 0.3s;
}

.link-underline:hover { color: var(--neutral-300); }

/* ============================================================
   SECTION FADE-IN ON SCROLL
   ============================================================ */
.section .section-label,
.section .section-title,
.section .section-desc,
.section .about-grid,
.section .service-grid,
.section .process-grid,
.section .skills-grid,
.section .certs-grid,
.section .project-grid,
.section .contact-desc,
.section .contact-form,
.section .section-footer,
.section .contact-note {
  opacity: 0;
}

.section.in-view .section-label { animation: fadeInUp 0.6s ease-out 0s forwards; }
.section.in-view .section-title { animation: fadeInUp 0.6s ease-out 0.15s forwards; }
.section.in-view .section-desc,
.section.in-view .contact-desc { animation: fadeInUp 0.6s ease-out 0.3s forwards; }
.section.in-view .about-grid,
.section.in-view .service-grid,
.section.in-view .process-grid,
.section.in-view .skills-grid,
.section.in-view .certs-grid,
.section.in-view .project-grid,
.section.in-view .contact-form { animation: fadeInUp 0.6s ease-out 0.45s forwards; }
.section.in-view .section-footer,
.section.in-view .contact-note { animation: fadeInUp 0.6s ease-out 0.6s forwards; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--white-5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 640px) {
  .logo-text { display: block; }
}

.nav-links {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-400);
  transition: color 0.3s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-outline {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--white-20);
  border-radius: 999px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-shop {
  display: none;
}

@media (min-width: 640px) {
  .btn-shop { display: inline-block; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(0,0,0,0.97);
  border-top: 1px solid var(--white-5);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-400);
  padding: 10px 0;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--white); }

.mobile-menu .btn-outline {
  margin-top: 8px;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 24px 96px;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin-bottom: 24px;
  opacity: 0;
}

.hero.in-view .hero-label {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--white);
  opacity: 0;
}

.hero.in-view .hero-title {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-accent {
  color: var(--neutral-400);
  font-weight: 900;
}

.hero-desc {
  margin-top: 24px;
  font-size: 16px;
  color: var(--neutral-400);
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
}

.hero.in-view .hero-desc {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 18px; }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  opacity: 0;
}

.hero.in-view .hero-buttons {
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.btn-primary {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 32px;
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  border: none;
  font-weight: 600;
  transition: background 0.3s;
  font-family: inherit;
}

.btn-primary:hover { background: var(--neutral-200); }

.btn-ghost {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 1px solid var(--white-20);
  border-radius: 999px;
  transition: background 0.3s;
}

.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--white-10);
  opacity: 0;
}

.hero.in-view .hero-stats {
  animation: fadeInUp 0.8s ease-out 1.0s forwards;
}

@media (min-width: 640px) {
  .hero-stats { gap: 48px; }
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neutral-500);
  z-index: 2;
  animation: bounce 2s infinite;
}

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

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee-section {
  overflow: hidden;
  background: var(--neutral-900);
  border-top: 1px solid var(--white-5);
  border-bottom: 1px solid var(--white-5);
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
}

.marquee-content span {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neutral-400);
}

.marquee-content .sep {
  color: var(--neutral-600);
  margin-left: 32px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   ABOUT ME
   ============================================================ */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--black);
}

.about-image-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 0;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.about-bio {
  font-size: 15px;
  color: var(--neutral-400);
  line-height: 1.8;
  margin-top: 16px;
}

.about-text .section-title {
  margin-bottom: 8px;
}

.about-cta {
  margin-top: 24px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .services-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.service-card {
  padding: 32px 24px;
  background: var(--neutral-800);
  border: 1px solid var(--white-5);
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--white-20);
}

.service-icon {
  margin-bottom: 20px;
  color: var(--neutral-300);
}

.service-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 13px;
  color: var(--neutral-400);
  line-height: 1.7;
  flex: 1;
}

.service-price {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--white-10);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
  background: rgba(26,26,26,0.5);
}

.process-grid {
  display: grid;
  gap: 32px;
  margin-top: 64px;
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

.process-card {
  display: flex;
  flex-direction: column;
}

.process-number {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  margin-bottom: 24px;
  transition: color 0.3s;
}

.process-card:hover .process-number {
  color: rgba(255,255,255,0.15);
}

.process-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 14px;
  color: var(--neutral-400);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.process-metric {
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.metric-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-top: 4px;
}

/* ============================================================
   SKILLS & TOOLS
   ============================================================ */
.skills-section {
  background: var(--black);
}

.skills-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .skills-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-badge {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--white-10);
  border-radius: 999px;
  color: var(--neutral-300);
  transition: all 0.3s;
}

.skill-badge:hover {
  border-color: var(--white-30);
  background: rgba(255,255,255,0.05);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-section {
  background: rgba(26,26,26,0.3);
}

.certs-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .certs-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .certs-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--neutral-800);
  border: 1px solid var(--white-5);
  transition: border-color 0.3s;
  cursor: pointer;
}

.cert-card:hover .cert-image {
  border-color: var(--white-20);
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  cursor: pointer;
}

.cert-card:hover .cert-image img {
  transform: scale(1.05);
}

.cert-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin-top: 16px;
}

/* ============================================================
   EXAMPLE PROJECTS
   ============================================================ */
.project-grid {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card.project-download,
  .project-card.project-centered {
    grid-column: 1 / 3;
  }
}

.project-centered .project-info {
  text-align: center;
}

.project-centered .project-bio {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

@media (min-width: 640px) {
  .project-info { padding: 32px; }
}

.project-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin-bottom: 8px;
}

.project-name {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.project-bio {
  font-size: 13px;
  color: var(--neutral-300);
  margin-top: 8px;
  max-width: 360px;
}

.project-card .link-underline {
  display: inline-block;
  margin-top: 16px;
  border-bottom-color: var(--white-30);
}

/* Download portfolio card */
.project-download {
  background: var(--neutral-800);
}

.download-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  z-index: 2;
}

.download-content .project-name {
  margin: 8px 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: rgba(26,26,26,0.5);
}

.contact-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-desc {
  font-size: 15px;
  color: var(--neutral-400);
  line-height: 1.7;
  margin: 24px auto 32px;
  max-width: 420px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  font-size: 14px;
  color: var(--white);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--neutral-600);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--white-30);
}

.btn-submit {
  width: 100%;
  text-align: center;
  padding: 14px 32px;
}

.contact-note {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--neutral-600);
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--white-5);
}

.footer-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neutral-500);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--white); }

.footer-col-title {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--neutral-400);
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--white); }

.region-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--neutral-400);
  transition: color 0.3s;
}

.region-link:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--white-5);
  font-size: 12px;
  color: var(--neutral-600);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--neutral-600);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--neutral-400); }

.zoomable {
  cursor: pointer;
}

.zoom-trigger {
  cursor: pointer;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--white-10);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE SECTION PADDING
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 639px) {
  .section { padding: 64px 0; }

  .service-card { padding: 24px 20px; }
  .service-name { font-size: 15px; }
  .service-desc { font-size: 12px; }
}
