/* MOD PROJECTS - Minimal Redesign */
:root {
  --bg: #0b0f13;
  --panel: #11161d;
  --ink: #eef2f5;
  --muted: #a5b1bd;
  --accent: #5fe3c6;
  --accent-2: #7cb2ff;
  --ring: rgba(95, 227, 198, 0.35);
  --maxw: 1000px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

/* Subtle gradient overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(95, 227, 198, 0.06), transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(124, 178, 255, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

h1, h2, h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 8px;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === SECTIONS === */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 140px) 24px;
}

.container {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.hero-inner {
  max-width: 600px;
  animation: fadeUp 0.7s ease both;
}

.hero-logo {
  width: min(50vw, 160px);
  height: auto;
  margin: 0 auto 24px;
}

.hero-title {
  font-size: clamp(42px, 8vw, 72px);
  margin: 0 0 12px;
}

.hero-title span {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions {
  margin-bottom: 40px;
}

.scroll-hint {
  appearance: none;
  border: none;
  background: rgba(95, 227, 198, 0.12);
  color: var(--ink);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(95, 227, 198, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.scroll-hint:hover {
  transform: translateY(3px);
  background: rgba(95, 227, 198, 0.2);
}

/* === LOGO COMET ANIMATION === */
.animated-logo .logo-base {
  opacity: 1;
}

.animated-logo .golf-ball {
  opacity: 0;
}

.animated-logo .ball-1 {
  animation: cometFlyIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.animated-logo .ball-2 {
  animation: cometFlyIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.animated-logo .comet-trail {
  opacity: 0;
  transform-origin: center center;
  animation: trailFade 1.6s ease-out 0.25s forwards;
}

/* Ball flies in from the RIGHT, lands in the C notch */
@keyframes cometFlyIn {
  0% {
    transform: translateX(100px) scale(0.3);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  60% {
    transform: translateX(2px) scale(1.1);
    opacity: 1;
  }
  75% {
    transform: translateX(-1px) scale(0.95);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Trail stretches horizontally from the right (the C is the wake) */
@keyframes trailFade {
  0% {
    opacity: 0;
    transform: translateX(80px) scaleX(0.1);
  }
  12% {
    opacity: 0.9;
    transform: translateX(40px) scaleX(1.5);
  }
  45% {
    opacity: 0.4;
    transform: translateX(10px) scaleX(0.8);
  }
  100% {
    opacity: 0;
    transform: translateX(0) scaleX(0);
  }
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animated-logo .golf-ball,
  .animated-logo .comet-trail,
  .hero-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.service-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.service-card i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.service-card h3 {
  color: var(--ink);
  margin-bottom: 4px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* === PROJECT GRID === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: fadeUp 0.6s ease both;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }

.project-card:hover {
  border-color: rgba(95, 227, 198, 0.5);
  transform: translateY(-2px);
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.project-card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.project-card-teaser {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* === CONTACT === */
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px;
  max-width: 600px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 4px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  gap: 12px;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
}

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

label {
  color: var(--muted);
  font-size: 0.92rem;
}

input, textarea {
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-actions {
  margin-top: 8px;
}

.hp-wrapper {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-details {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-details i {
  color: var(--accent);
  width: 20px;
  margin-right: 8px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001012;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: var(--muted);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* === UTILITIES === */
.muted { color: var(--muted); }

.more-link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(95, 227, 198, 0.5);
  transition: border-color 0.2s ease;
}

.more-link a:hover {
  border-bottom-style: solid;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* === PAGE SHELL (for capabilities.html, post.html) === */
.page-shell .section {
  min-height: auto;
  padding: 60px 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.page-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
}

.page-brand-logo {
  width: 36px;
  height: auto;
}

.page-back {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(95, 227, 198, 0.4);
}

.page-back:hover {
  color: var(--ink);
  border-bottom-style: solid;
}

/* Capability cards on homepage link styling */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.hero-cards a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-media {
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #050608;
  aspect-ratio: 16 / 9;
}

.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-caption {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* Capability detail page styles */
.capability-article {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.capability-article:last-child {
  border-bottom: none;
}

.capability-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}

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

.capability-body {
  line-height: 1.8;
}

.capability-body p {
  margin: 1.5em 0;
}

.capability-body ul {
  margin: 1.5em 0 1.5em 1.2em;
}

.capability-body li {
  margin: 0.5em 0;
}

/* Post detail page */
.post-hero img,
.post-gallery-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.post-body {
  margin-top: 20px;
  line-height: 1.7;
}

.post-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 24px;
}

/* Form states */
.contact-form.is-sending {
  opacity: 0.6;
  pointer-events: none;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-status.form-status--active {
  opacity: 1;
  transform: translateY(0);
}

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

/* === IMPACT RIPPLE ANIMATION === */
.animated-logo .impact-ripple {
  opacity: 0;
  transform-origin: center center;
}

.animated-logo .ripple-1 {
  animation: rippleExpand 1s ease-out 1.2s forwards;
}

.animated-logo .ripple-2 {
  animation: rippleExpand 1s ease-out 1.35s forwards;
}

@keyframes rippleExpand {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* === ROTATING TAGLINES === */
.hero-taglines {
  position: relative;
  height: 32px;
  margin-bottom: 24px;
}

.hero-taglines .hero-tagline {
  position: absolute;
  width: 100%;
  left: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin: 0;
}

.hero-taglines .hero-tagline.active {
  opacity: 1;
  transform: translateY(0);
}

/* === HERO STATS === */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* === HERO ACTIONS === */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(95, 227, 198, 0.1);
}

/* === SERVICE CARDS WITH IMAGES === */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.service-card-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform 0.3s ease;
}

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

.service-card-content {
  padding: 20px;
  text-align: center;
}

.service-card-content i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

/* === PROJECT CARDS WITH THUMBNAILS === */
.project-card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* === TESTIMONIALS / SOCIAL PROOF === */
.section-dark {
  background: rgba(0, 0, 0, 0.3);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.testimonial {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
}

.testimonial p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 16px;
  font-style: italic;
  color: var(--ink);
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--accent);
  font-style: normal;
}

.proof-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge i {
  font-size: 1.4rem;
  color: var(--accent);
}

/* === CONTACT METHODS === */
.contact-details h3 {
  font-size: 1rem;
  margin: 0 0 16px;
  color: var(--ink);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-method:hover {
  border-color: var(--accent);
  background: rgba(95, 227, 198, 0.1);
}

.contact-method i {
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-method.whatsapp:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.contact-method.whatsapp i {
  color: #25d366;
}

.contact-location {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.contact-location i {
  color: var(--accent);
  margin-right: 6px;
}

/* === FORM VALIDATION === */
.form-field {
  position: relative;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: #ff6b6b;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-field.has-error .field-error {
  opacity: 1;
  transform: translateY(0);
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #ff6b6b;
}

.form-field.is-valid input,
.form-field.is-valid textarea {
  border-color: var(--accent);
}

.required {
  color: #ff6b6b;
}

/* === MORE LINK WITH ICON === */
.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.more-link a i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.more-link a:hover i {
  transform: translateX(3px);
}

/* === RESPONSIVE ADDITIONS === */
@media (max-width: 600px) {
  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

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

  .proof-badges {
    gap: 20px;
  }

  .contact-methods {
    flex-direction: column;
  }

  .contact-method {
    justify-content: center;
  }

  .service-card-img {
    height: 100px;
  }
}

/* Reduced motion for new animations */
@media (prefers-reduced-motion: reduce) {
  .animated-logo .impact-ripple,
  .hero-taglines .hero-tagline {
    animation: none;
    transition: none;
  }

  .hero-taglines .hero-tagline:first-child {
    opacity: 1;
    transform: none;
  }
}
