@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --border: #2a2a2a;
  --red: #e11d2e;
  --red-bright: #ff2e3f;
  --red-dark: #8b0f1a;
  --glow: rgba(225, 29, 46, 0.35);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* Background glow */
.page-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.7s ease both;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-name {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 2px;
}

.brand-name span {
  color: var(--red);
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  transition: color var(--transition);
}

.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.social-links a:hover {
  color: var(--red-bright);
}

.social-links a:hover::after {
  transform: scaleX(1);
}

/* Sections */
main {
  position: relative;
  z-index: 1;
}

main section {
  margin-top: 52px;
}

.section-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.intro p,
.contact-intro {
  max-width: 72ch;
  color: var(--muted);
}

.services-note {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}

.skill-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.skill-list li {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition), transform var(--transition);
}

.skill-list li:hover {
  border-color: var(--red);
  transform: translateX(6px);
}

.skill-list strong {
  color: var(--text);
}

/* Rates */
.rates-intro {
  max-width: 72ch;
  color: var(--muted);
  margin-bottom: 26px;
}

.rate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.rate-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(225, 29, 46, 0.18);
}

.rate-card-header {
  margin-bottom: 18px;
}

.rate-name {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}

.rate-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 72ch;
}

.rate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.rate-option {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition);
}

.rate-option:hover {
  border-color: var(--red-dark);
}

.rate-option-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.rate-option-desc {
  color: var(--muted);
  font-size: 0.84rem;
  flex: 1;
}

.rate-price {
  margin-top: 8px;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--red-bright);
}

.rate-price .currency {
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 2px;
}

.rate-price .dash {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.rate-price .plus-hosting {
  display: block;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.rates-note {
  margin-top: 6px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}

/* How I Work */
.process-intro,
.trust-intro,
.payment-intro {
  max-width: 72ch;
  color: var(--muted);
  margin-bottom: 26px;
}

.process-steps {
  list-style: none;
  display: grid;
  gap: 16px;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.process-step:hover {
  border-color: var(--red);
  transform: translateX(6px);
}

.process-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(225, 29, 46, 0.6);
}

.process-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Trust */
.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.trust-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.trust-list li:hover {
  border-color: var(--red);
  transform: translateY(-6px);
}

.trust-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.trust-list p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Payment options */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.payment-option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.payment-option:hover {
  border-color: var(--red);
  transform: translateY(-6px);
}

.payment-badge {
  display: inline-block;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.payment-badge.gcash {
  background: #0076c6;
}

.payment-badge.qrph {
  background: var(--red);
}

/* Payment terms */
.terms-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.terms-item {
  text-align: center;
}

.terms-pct {
  display: block;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--red-bright);
  margin-bottom: 10px;
  text-shadow: 0 0 16px rgba(225, 29, 46, 0.5);
}

.terms-item p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.7s ease both;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--red);
  box-shadow: 0 14px 40px rgba(225, 29, 46, 0.18);
}

.project-card.php-card {
  border: 1px solid var(--red-dark);
  background: linear-gradient(180deg, rgba(225, 29, 46, 0.08), var(--surface) 40%);
  animation: fadeInUp 0.7s ease both, phpPulse 2.5s ease-in-out infinite;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

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

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.project-name {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.php-badge {
  background: var(--red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(225, 29, 46, 0.6);
  animation: badgeGlow 1.8s ease-in-out infinite;
}

.project-role {
  font-size: 0.85rem;
  color: var(--red-bright);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-description {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  background: var(--surface-2);
  color: #d1d1d1;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.project-card:hover .tech-chip {
  border-color: var(--red-dark);
  color: var(--text);
}

.php-card .tech-chip {
  background: rgba(225, 29, 46, 0.12);
  color: #ffb3ba;
  border-color: var(--red-dark);
}

.project-links {
  display: flex;
  gap: 12px;
  padding-top: 6px;
}

.project-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid var(--red);
  transition: color var(--transition), border-color var(--transition);
}

.project-links a:hover {
  color: var(--red-bright);
  border-color: var(--red-bright);
}

.loading,
.empty {
  color: var(--muted);
}

.email-link {
  color: var(--red-bright);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--red);
  transition: color var(--transition), border-color var(--transition);
}

.email-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 540px;
  margin-top: 20px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15);
}

.submit-btn {
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: fit-content;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
}

.submit-btn:hover:not(:disabled) {
  background: var(--red-bright);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.form-status {
  min-height: 24px;
  font-size: 0.9rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #ff6b6b;
}

.form-status.sending {
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phpPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(225, 29, 46, 0.2);
  }
  50% {
    box-shadow: 0 0 24px rgba(225, 29, 46, 0.35);
  }
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(225, 29, 46, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(225, 29, 46, 0.9);
  }
}

/* Responsive - tablets and small desktop */
@media (max-width: 768px) {
  .rates-intro,
  .rate-desc,
  .process-intro,
  .trust-intro,
  .payment-intro,
  .intro p,
  .contact-intro {
    max-width: 100%;
  }

  .rate-options {
    grid-template-columns: 1fr;
  }
}

/* Responsive - phones */
@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 14px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .social-links {
    gap: 22px;
  }

  .social-links a {
    font-size: 1.05rem;
    padding: 8px 0;
  }

  .section-title {
    font-size: 1.2rem;
  }

  main section {
    margin-top: 40px;
  }

  .skill-list li {
    padding: 14px 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card img {
    height: 200px;
  }

  .rate-card {
    padding: 18px;
  }

  .rate-name {
    font-size: 1rem;
  }

  .rate-option {
    padding: 14px 16px;
  }

  .rate-price {
    font-size: 1.05rem;
  }

  .project-card:hover,
  .rate-card:hover,
  .trust-list li:hover,
  .payment-option:hover {
    transform: none;
  }

  .process-step:hover {
    transform: none;
  }

  .process-step {
    padding: 16px;
  }

  .trust-list,
  .payment-grid,
  .terms-box {
    grid-template-columns: 1fr;
  }

  .terms-box {
    padding: 18px;
  }

  .terms-pct {
    font-size: 1.4rem;
  }

  .contact-form {
    max-width: 100%;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .submit-btn {
    width: 100%;
    padding: 15px 24px;
  }
}

/* Responsive - very small phones */
@media (max-width: 380px) {
  .brand-name {
    font-size: 1.2rem;
  }

  .project-card img {
    height: 160px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
