@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;700&display=swap");

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

:root {
  --navy: #0a0f1e;
  --slate: #1e2a4a;
  --blue: #3b82ff;
  --purple: #9b5cff;
  --blue-dim: rgba(59, 130, 255, 0.15);
  --purple-dim: rgba(155, 92, 255, 0.15);
  --white: #f0f4ff;
  --muted: #8899bb;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Background glow */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 600px;
  height: 600px;
  background: rgba(155, 92, 255, 0.12);
  top: -100px;
  left: -100px;
}

body::after {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 255, 0.1);
  bottom: -80px;
  right: -80px;
}

/* Moving background canvas */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Keep webpage content above the moving background */
header,
nav,
.hero,
.section,
footer {
  position: relative;
  z-index: 10;
}

/* Navigation */
nav {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 30, 0.95) 0%,
    rgba(10, 15, 30, 0.4) 60%,
    transparent 100%
  );
}
/* Logo area */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  width: 150px;
  height: auto;
  object-fit: contain;
}
/* Navigation links */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--white) !important;
  border: 1px solid rgba(155, 92, 255, 0.4);
  padding: 8px 18px;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cta:hover {
  border-color: var(--purple);
  background: var(--purple-dim);
}

/* Hero section */
.hero {
  position: relative;
  z-index: 20;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20% 25px;
  

opacity: 0;
transform: translateY(16px);
animation: fadeUp 0.8s ease 0.2s forwards;
}
/* Eyebrow text */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(155, 92, 255, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(155, 92, 255, 0.06);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse 2s infinite;
}
/* Hero heading */
h1 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 900px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--purple) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Hero subheading */
.sub {
  margin-top: 28px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}
/* Hero action buttons */
.actions {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}
/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 36px rgba(155, 92, 255, 0.35);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--slate);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--muted);
}

/* Main content sections */
.section {
  position: relative;
  z-index: 10;
  padding: 90px 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}

.section p {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

/* Service cards */
.cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* This is the outside card */
.card {
  flex: 1;
  min-width: 250px;
  background: rgba(30, 42, 74, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* This is the inside clickable card */
.card-button {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: rgba(30, 42, 74, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* This makes the inside square move */
.card-button:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 92, 255, 0.45);
  background: rgba(155, 92, 255, 0.12);
}

.card-button:active {
  transform: translateY(-2px) scale(0.98);
}

.card h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--white);
  font-size: 24px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 16px;
}

/* Image gallery */
.image-gallery {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  /*fading in the image*/
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.gallery-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

/* Contact links */
#contact a {
  color: #7ddcff;
  font-weight: 700;
  text-decoration: none;
}

#contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  background: rgba(10, 15, 30, 0.75);
}

/* Contact page */
.contact-hero {
  padding-bottom: 45px;
}

.contact-page {
  padding-top: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info-card,
.contact-form {
  background: rgba(30, 42, 74, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

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

.contact-detail {
  margin-top: 28px;
}

.contact-detail h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--white);
  font-size: 22px;
  margin-bottom: 8px;
}

.contact-detail a {
  color: #7ddcff;
  font-weight: 700;
  text-decoration: none;
}

.contact-detail a:hover {
  color: var(--white);
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 30, 0.75);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  outline: none;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  justify-content: center;
  margin-top: 4px;
}

.form-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}

/* About page */
.about-hero {
  padding-bottom: 45px;
}

.about-page {
  padding-top: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card,
.mission-box {
  background: rgba(30, 42, 74, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.about-card h2,
.mission-box h2 {
  margin-bottom: 18px;
}

.about-card p,
.mission-box p {
  margin-bottom: 18px;
}

.mission-box {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.mission-box .btn-primary {
  margin-top: 18px;
}

/* =========================================
   SIMPLE DARK AI CHAT BOX
   ========================================= */

.ai-chat-box {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  padding: 24px;

  background: #2f2f2f;
  border: 1px solid #494949;
  border-radius: 16px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);

  font-family: Aptos, "Segoe UI", Arial, sans-serif;
}

/* User text box */
.ai-chat-box textarea {
  width: 100%;
  min-height: 130px;

  padding: 16px;

  color: #ffffff;
  background: #3a3a3a;

  border: 1px solid #565656;
  border-radius: 12px;
  outline: none;

  resize: vertical;

  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.ai-chat-box textarea::placeholder {
  color: #b5b5b5;
}

.ai-chat-box textarea:focus {
  border-color: #8b6cff;

  box-shadow:
    0 0 0 3px rgba(139, 108, 255, 0.2);
}

/* Send button */
.ai-chat-box #sendButton {
  display: block;

  width: auto;
  min-width: 110px;

  margin: 14px 0 0 auto;
  padding: 12px 24px;

  color: #ffffff;
  background: #6d4aff;

  border: none;
  border-radius: 10px;

  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
}

.ai-chat-box #sendButton:hover {
  background: #7d5cff;
}

.ai-chat-box #sendButton:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Area holding all AI responses */
#response {
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin-top: 24px;
}

/* One individual response box */
.ai-response-box {
  position: relative;

  padding: 48px 20px 20px;

  color: #ffffff;
  background: #343434;

  border: 1px solid #505050;
  border-radius: 14px;

  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Small title at the top of the response */
.ai-response-title {
  position: absolute;
  top: 14px;
  left: 18px;

  color: #c5c5c5;

  font-size: 14px;
  font-weight: 600;
}

/* Copy button */
.copy-response-button {
  position: absolute;
  top: 10px;
  right: 12px;

  padding: 7px 12px;

  color: #e8e8e8;
  background: #454545;

  border: 1px solid #606060;
  border-radius: 8px;

  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 13px;

  cursor: pointer;
}

.copy-response-button:hover {
  color: #ffffff;
  background: #555555;
}

/* Thinking message */
.ai-thinking-box {
  color: #cfcfcf;
  font-style: italic;
}

/* Error response */
.ai-error-box {
  border-color: #a74b4b;
}

/* Phone screens */
@media (max-width: 700px) {
  .ai-chat-box {
    padding: 16px;
  }

  .ai-chat-box textarea {
    min-height: 110px;
  }

  .ai-response-box {
    padding: 50px 16px 18px;
    font-size: 16px;
  }
}

.learn-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  min-width: 100px;

  margin-top: 20px;
  padding: 12px 24px;

  background: linear-gradient(135deg, #3b82ff, #9b5cff);
  color: white;

  text-decoration: none;
  font-weight: 600;

  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 130, 255, 0.3);
}

/* About page mobile layout */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .mission-box {
    padding: 24px;
  }
}

/* Contact page mobile layout */
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card,
  .contact-form {
    padding: 24px;
  }
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* Phone/tablet layout */
@media (max-width: 300px) {
  nav {
    padding: 18px 24px;
  }

  .logo-area img {
    width: 115px;
  }

  nav ul {
    display: none;
  }

  .hero {
    padding-top: 140px;
  }

  .cards {
    flex-direction: column;
  }

  .section {
    padding: 70px 24px;
  }
}

/* Configure page prompt box */
.prompt-box {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(59, 130, 255, 0.25);
  border-radius: 24px;
  background: rgba(30, 42, 74, 0.55);
  box-shadow: 0 0 30px rgba(59, 130, 255, 0.12);
}

.prompt-box p {
  margin-bottom: 1rem;
  color: var(--white);
}

.prompt-box strong {
  color: var(--blue);
}

.contact-section {
  text-align: center;
}