/* =========================================================
   ZAS AGENCY — MAIN STYLES (WITH ALWAYS-GLOW CONNECT BUTTON)
   ========================================================= */

:root {
  --bg: #050505;
  /* Slightly lighter deep black for "softer" contrast */
  --yellow: #FFD400;
  --muted: #b0b0b0;
  /* Sharper muted text */
  --container: 1200px;
  font-family: "Poppins", sans-serif;
}

/* RESET & BODY */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: #fff;
  background: var(--bg);
  color: #fff;
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
}



#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

/* NAVIGATION */
.main-nav a {
  color: var(--muted);
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--yellow);
}

/* CONNECT BUTTON — ALWAYS HIGHLIGHTED */
.btn-cta {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  /* Slightly larger targets */
  border-radius: 12px;
  /* Softer radius */
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Smoother easing */
  box-shadow: 0 0 20px rgba(255, 212, 0, 0.4), 0 0 40px rgba(255, 212, 0, 0.1);
  border: none;
  animation: pulseGlow 4s infinite ease-in-out;
  /* Slower, more subtle pulse */
}

/* Subtle glowing animation */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 212, 0, 0.6), 0 0 25px rgba(255, 212, 0, 0.15);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 45px rgba(255, 212, 0, 0.3);
  }
}

.btn-cta:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 212, 0, 0.8);
  transform: scale(1.07);
}

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

/* === CYBER-KATANA ANIME GLITCH HERO === */
.logo-container {
  /* Reset */
  transform-style: flat;
  perspective: none;
  position: relative;
  width: auto;
  /* Allow growth */
  max-width: 90vw;
  /* Prevent overflow on mobile */
  height: min(250px, 50vw);
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(255, 212, 0, 0.4));
  /* Anime Glow */
}

.cyber-glitch {
  display: inline-block;
  /* Shrink-wrap to text width */
  position: relative;
  padding-right: 0.25em;
  /* PADDING FOR ITALIC SLANT */
  margin-right: -0.25em;
  /* Re-center correction */

  font-family: 'Orbitron', sans-serif;
  /* Anime Font */
  font-size: clamp(6rem, 20vw, 15rem);
  font-weight: 900;
  line-height: 0.8;
  font-style: italic;
  /* Speed */
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: -5px;
  transform: scale(0.8);
  /* Initial scale */

  /* Hard shadow for contrast */
  text-shadow: 4px 4px 0px #000;

  /* Solid Color */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;

  transition: transform 0.1s ease-out;
  /* Smooth snap for slice */
}

/* === SWORD SLICE STATE === */
.cyber-glitch.slice-active {
  /* Top-Left Half */
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 65%);
  transform: translate(-15px, -10px) scale(0.85);
  /* Pull apart */
}

.cyber-glitch.slice-active::before {
  /* Bottom-Right Half */
  opacity: 1;
  clip-path: polygon(0 65%, 100% 45%, 100% 100%, 0 100%);
  transform: translate(15px, 10px);
  /* Pull apart */
  text-shadow: none;
  /* Clean yellow, no glitch colors */
  background: transparent;
  z-index: 1;
  animation: none;
  /* Stop glitching during slice */
  color: var(--yellow);
}

.cyber-glitch.slice-active::after {
  opacity: 0 !important;
  /* Hide secondary glitch layer */
}

/* Glitch Layers */
.cyber-glitch::before,
.cyber-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Matches parent width (including padding!) */
  height: 100%;
  background: var(--bg);
  /* Match bg to hide main text partially */
  overflow: hidden;
  clip-path: inset(50% 0 50% 0);
  /* Hidden by default */
  opacity: 0;
  /* Hidden by default to prevent "left behind" static look */
}

.cyber-glitch::before {
  left: 3px;
  text-shadow: -2px 0 #ff00c1;
  /* Cyber Pink Offset */
  animation: glitch-anim-1 4s infinite linear alternate-reverse;
  /* Slower, less chaotic */
  z-index: -1;
}

.cyber-glitch::after {
  left: -3px;
  text-shadow: -2px 0 #00fff9;
  /* Cyber Cyan Offset */
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
  z-index: -2;
}

/* Glitch Keyframes (Rapid sliced movement) */
/* Modified to be invisible (opacity 0) most of the time, causing only brief flashes */
@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(20% 0 80% 0);
    opacity: 0;
  }

  19% {
    clip-path: inset(20% 0 80% 0);
    opacity: 0;
  }

  20% {
    clip-path: inset(60% 0 10% 0);
    opacity: 1;
  }

  /* Flash */
  21% {
    clip-path: inset(60% 0 10% 0);
    opacity: 0;
  }

  39% {
    clip-path: inset(40% 0 50% 0);
    opacity: 0;
  }

  40% {
    clip-path: inset(40% 0 50% 0);
    opacity: 1;
  }

  /* Flash */
  41% {
    clip-path: inset(40% 0 50% 0);
    opacity: 0;
  }

  59% {
    clip-path: inset(80% 0 5% 0);
    opacity: 0;
  }

  60% {
    clip-path: inset(80% 0 5% 0);
    opacity: 1;
  }

  /* Flash */
  61% {
    clip-path: inset(80% 0 5% 0);
    opacity: 0;
  }

  100% {
    clip-path: inset(30% 0 20% 0);
    opacity: 0;
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(10% 0 60% 0);
    opacity: 0;
  }

  29% {
    clip-path: inset(30% 0 20% 0);
    opacity: 0;
  }

  30% {
    clip-path: inset(30% 0 20% 0);
    opacity: 1;
  }

  /* Flash */
  31% {
    clip-path: inset(30% 0 20% 0);
    opacity: 0;
  }

  69% {
    clip-path: inset(50% 0 30% 0);
    opacity: 0;
  }

  70% {
    clip-path: inset(50% 0 30% 0);
    opacity: 1;
  }

  /* Flash */
  71% {
    clip-path: inset(50% 0 30% 0);
    opacity: 0;
  }

  100% {
    clip-path: inset(5% 0 80% 0);
    opacity: 0;
  }
}

.hero-tagline {
  /* Enforce single line */
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 20px;

  font-size: clamp(1.5rem, 4vw, 5rem);
  /* Adjusted for better fit */
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 40px;
  line-height: 1;
  z-index: 10;
  width: 100%;
}

/* Gold to White Animation */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  background: linear-gradient(120deg, #fff, #FFD400, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 4s linear infinite;
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

.cta-group {
  opacity: 0;
  transform: translateY(20px);
}

.subtext {
  color: #ccc;
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 30px;
}

.cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.yellow {
  background: var(--yellow);
  color: #000;
}

.outline {
  border: 1px solid #fff;
  color: #fff;
}

.btn:hover {
  transform: translateY(-5px);
}

/* ================= SECTIONS BASE ================= */
.section {
  padding: 100px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.section h2 {
  font-size: 2.4rem;
  color: var(--yellow);
  margin-bottom: 20px;
}

/* ================= ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-img img {
  width: 100%;
  border-radius: 20px;
  /* Softer */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Deeper shadow */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Sharp definition */
}

.about-text p {
  color: #b3b3b3;
  margin-bottom: 15px;
  line-height: 1.6;
}

.about-points {
  list-style: none;
  padding: 0;
}

.about-points li {
  color: #ddd;
  margin: 10px 0;
}

/* ================= SERVICES ================= */
.services {
  background: transparent;
  padding: 120px 20px;
  text-align: center;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3rem);
  color: var(--yellow);
  margin-bottom: 12px;
  font-weight: 800;
}

.services .lead {
  color: #aaa;
  max-width: 850px;
  margin: 0 auto 70px;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* SERVICE GRID */
.service-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-box {
  background: rgba(20, 20, 20, 0.6);
  /* More transparency for glass feel */
  backdrop-filter: blur(12px);
  /* Softer glass effect */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Sharper border */
  border-radius: 24px;
  /* Softer corners */
  padding: 40px 30px;
  text-align: left;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.service-box:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 212, 0, 0.15);
}

.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 212, 0, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-box:hover::before {
  opacity: 1;
}

.service-box .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--yellow);
}

.service-box h3 {
  color: var(--yellow);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.service-box p {
  color: #ccc;
  /* Sharper text */
  font-size: 1rem;
  margin-bottom: 16px;
}

.service-box ul {
  list-style: none;
  padding: 0;
}

.service-box li {
  color: #eaeaea;
  margin: 8px 0;
  font-size: 1.05rem;
  line-height: 1.6;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
}

.service-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--yellow);
}

.service-box li:hover {
  color: var(--yellow);
  transform: translateX(4px);
}

/* ================= CAPABILITIES ================= */
.capabilities {
  margin-top: 100px;
}

.cap-header {
  font-size: 1.8rem;
  color: var(--yellow);
  margin-bottom: 40px;
}

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

.cap-item {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px 20px;
  color: #ddd;
  text-align: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cap-item:hover {
  background: var(--yellow);
  color: #000;
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 212, 0, 0.25);
}

/* ================= WORK ================= */
.work {
  padding: 120px 20px;
  text-align: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
  border-radius: 20px;
}

.work-item:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 15px;
}

.overlay h3 {
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.work-item:hover .overlay {
  opacity: 1;
}

.work-item:hover .overlay h3 {
  transform: translateY(0);
}

/* Subtle Lift Effect */
.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 212, 0, 0.15);
}


/* ================= CONTACT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

input,
textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  /* Softer */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 212, 0, 0.1);
}

button {
  background: var(--yellow);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
}

/* FORM STATUS MESSAGE */
.form-status {
  margin-top: 25px;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(10px);
}

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

.form-status.success {
  color: #00ff7f;
  background: rgba(0, 255, 127, 0.05);
  border-left: 3px solid #00ff7f;
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-block;
}

.form-status.error {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.05);
  border-left: 3px solid #ff5c5c;
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-block;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  color: #777;
  padding: 40px 0;
  border-top: 1px solid #111;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {

  /* Tablet adjustments */
  .hero h1 {
    font-size: 5rem;
  }

  .service-categories {
    grid-template-columns: repeat(2, 1fr);
    /* Ensure 2 columns on tablet */
  }
}

@media (max-width: 900px) {

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .main-nav a {
    margin-left: 0;
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 20px;
  }

  .hero {
    padding-top: 140px;
    /* Extra space for stacked header */
  }

  .service-categories,
  .work-grid {
    grid-template-columns: 1fr;
    /* Stack cards on mobile */
  }

  /* Improve manual contact spacing on mobile */
  .manual-contact {
    margin-top: 20px !important;
    text-align: center;
  }

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