:root {
  --bg: #0D0D0D;
  --electric-purple: #8B5CF6;
  --teal-accent: #2DD4BF;
  --white: #ffffff;
  --dark-blue: #8B5CF6;
  --dark-blue-hover: #7C3AED;
  --blue: #A78BFA;
  --purple: #8B5CF6;
  --green: #2DD4BF;
  --green-hover: #14B8A6;
  --teal: #2DD4BF;
  --teal-hover: #14B8A6;
  --heading: #F5F5F7;
  --body-text: #A1A1AA;
  --card-bg: #151515;
  --border-light: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---------- Animated background gradient ---------- */
body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(139, 92, 246, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.30), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.18), transparent 55%);
  filter: blur(70px);
  animation: gradient-drift 22s ease-in-out infinite alternate;
}

@keyframes gradient-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 4%) scale(1.1); }
  100% { transform: translate(4%, -4%) scale(1); }
}

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

ul {
  list-style: none;
}

section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: var(--heading);
  font-weight: 700;
}

/* ---------- Skip links ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background-color: var(--electric-purple);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--teal-accent);
  outline-offset: 2px;
}

#main-content:focus {
  outline: none;
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--heading);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body-text);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--dark-blue);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--heading);
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--body-text);
  margin-bottom: 40px;
  max-width: 500px;
}

.neon-name {
  background: linear-gradient(90deg, var(--electric-purple), var(--teal-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: neon-pulse 2.8s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  0% {
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.7)) drop-shadow(0 0 16px rgba(45, 212, 191, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 1)) drop-shadow(0 0 28px rgba(45, 212, 191, 0.85));
  }
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-cta {
  background-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.btn-cta:hover {
  background-color: var(--green-hover);
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.45);
}

.btn-hero-cta {
  background-color: #0F766E;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn-hero-cta:hover {
  background-color: #0B5B54;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.45);
}

.btn-contact {
  background-color: #330099;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(51, 0, 153, 0.3);
}

.btn-contact:hover {
  background-color: #26007A;
  box-shadow: 0 8px 20px rgba(51, 0, 153, 0.4);
}

/* ---------- Fade-in on scroll ---------- */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Section headings ---------- */
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 48px;
  text-align: center;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.18);
}

.project-card.border-green { border-top-color: var(--green); }
.project-card.border-blue { border-top-color: var(--blue); }
.project-card.border-purple { border-top-color: var(--purple); }
.project-card.border-teal { border-top-color: var(--teal); }

.project-card-featured {
  position: relative;
  grid-column: 1 / -1;
}

.project-card-center {
  grid-column: 2;
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #0F766E;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
}

.project-card-featured .project-title h3 .project-link {
  display: inline-flex;
  vertical-align: middle;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

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

.project-title h3 {
  margin-bottom: 0;
}

.project-link {
  display: flex;
  color: var(--body-text);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.project-link:hover {
  color: var(--dark-blue);
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.project-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 20px;
}

.project-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-image-wrap:hover .project-image-overlay {
  opacity: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: rgba(139, 92, 246, 0.15);
  color: var(--blue);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.18);
}

.service-card.border-green { border-top-color: var(--green); }
.service-card.border-blue { border-top-color: var(--blue); }
.service-card.border-purple { border-top-color: var(--purple); }
.service-card.border-teal { border-top-color: var(--teal); }

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border-radius: 6px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--body-text);
  font-size: 0.85rem;
  border: 1px dashed var(--border-light);
}

.service-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border-radius: 6px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 16px;
}

.service-image-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.service-image-svg {
  width: 100%;
  height: 100%;
}

.text-link {
  color: var(--teal-accent);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--electric-purple);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--purple);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.18);
}

.testimonial-card.border-green { border-top-color: var(--green); }
.testimonial-card.border-blue { border-top-color: var(--blue); }
.testimonial-card.border-purple { border-top-color: var(--purple); }

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--dark-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: var(--heading);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--body-text);
}

/* ---------- About ---------- */
.about p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 720px;
}

.about-highlight {
  color: var(--blue);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.contact-form-wrap {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: left;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--heading);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.optional-label {
  font-weight: 400;
  color: var(--body-text);
  font-size: 0.8rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--heading);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.field-error {
  display: none;
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 6px;
}

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

.form-field.error .field-error {
  display: block;
}

.form-status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #f87171;
  display: none;
}

.form-status.show {
  display: block;
}

.contact-submit-btn {
  width: 100%;
}

.sending-graphic {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 0;
}

.sending-graphic.show {
  display: flex;
}

.sending-graphic .envelope-icon {
  color: var(--teal-accent);
  animation: envelope-fly 1.4s ease-in-out forwards;
}

.sending-graphic p {
  font-size: 0.95rem;
  color: var(--body-text);
}

@keyframes envelope-fly {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  60% { transform: translate(10px, -14px) rotate(-4deg); opacity: 1; }
  100% { transform: translate(220px, -90px) rotate(8deg); opacity: 0; }
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
  color: var(--body-text);
  border-top: 1px solid var(--border-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  section {
    padding: 70px 20px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

  .project-card-center {
    grid-column: auto;
  }

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

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

  .hero {
    text-align: left;
    align-items: flex-start;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
}

