/* =============================================================================
   THAT AI GUY — styles.css
   ============================================================================= */

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

/* Custom Properties */
:root {
  --bg:        #0a0f1e;
  --bg2:       #1a2540;
  --cyan:      #0ff0fc;
  --purple:    #7b8cde;
  --white:     #ffffff;
  --muted:     rgba(255, 255, 255, 0.6);
  --border:    rgba(15, 240, 252, 0.18);
  --glow:      rgba(15, 240, 252, 0.07);
  --font-d:    'Space Grotesk', system-ui, sans-serif;
  --font-b:    'Inter', system-ui, sans-serif;
  --max-w:     1100px;
  --gap:       clamp(3rem, 7vw, 5rem);
  --r:         0.75rem;
  --t:         0.2s ease;
  --nav-h:     4rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--cyan); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; color: var(--purple); margin-bottom: 0.5rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--cyan); text-decoration: none; transition: opacity var(--t); }
a:hover { opacity: 0.75; }
strong { color: var(--white); font-weight: 600; }
em { color: var(--muted); font-style: italic; }

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--gap) 0; }
.section--alt { background-color: var(--bg2); }
.text-center { text-align: center; }

.content-block { max-width: 780px; }
.content-block h2 { margin-bottom: 1.25rem; }

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__brand span { color: var(--cyan); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--t);
}
.nav__links a:hover { color: var(--cyan); opacity: 1; }

.btn-nav {
  background: var(--cyan) !important;
  color: var(--bg) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r);
  font-weight: 700 !important;
  font-size: 0.9rem;
  transition: opacity var(--t) !important;
}
.btn-nav:hover { opacity: 0.82 !important; color: var(--bg) !important; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}

@media (max-width: 680px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0;
  }
  .nav__links.is-open { display: flex; }

  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 0.75rem 1.5rem; font-size: 1rem; }

  .btn-nav {
    margin: 0.5rem 1.5rem !important;
    display: inline-block !important;
    width: auto !important;
    text-align: center;
    padding: 0.6rem 1rem !important;
  }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t);
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.82; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: var(--r);
  border: 2px solid var(--cyan);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  text-decoration: none;
}
.btn-secondary:hover { background: var(--cyan); color: var(--bg); opacity: 1; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  padding-top: calc(var(--nav-h) + var(--gap));
  padding-bottom: var(--gap);
  position: relative;
  overflow: hidden;
}

.hero--home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(15,240,252,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(123,140,222,0.07) 0%, transparent 55%);
}

.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,240,252,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,240,252,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero--inner {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3rem;
  background: linear-gradient(180deg, rgba(15,240,252,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.hero__content { max-width: 800px; position: relative; }
.hero__content h1 { margin-bottom: 1.25rem; }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Page Image
   ------------------------------------------------------------------------- */

.image-section {
  padding: var(--gap) 0;
  display: flex;
  justify-content: center;
}

.image-section--alt { background-color: var(--bg2); }

.page-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
}

.page-image--logo {
  max-width: 260px;
  border-radius: 1.25rem;
  box-shadow: 0 0 50px rgba(15,240,252,0.18), 0 0 0 1px var(--border);
}

.page-image--about {
  max-width: 320px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 0 60px rgba(123,140,222,0.22), 0 0 0 3px var(--border);
}

/* -------------------------------------------------------------------------
   Services list (home)
   ------------------------------------------------------------------------- */

.services-list {
  margin-bottom: 2rem;
}
.services-list li {
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.5rem;
  background: var(--bg2);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Service cards (services page)
   ------------------------------------------------------------------------- */

.service-cards { max-width: 820px; }

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: border-color var(--t), box-shadow var(--t);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: var(--r) 0 0 var(--r);
}
.service-card:hover {
  border-color: rgba(15,240,252,0.38);
  box-shadow: 0 0 30px rgba(15,240,252,0.06);
}
.service-card h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.service-card p { color: rgba(255,255,255,0.8); font-size: 0.98rem; }

.service-cta {
  margin-top: 2.5rem;
  padding: 2rem 2.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  max-width: 820px;
}
.service-cta p { margin-bottom: 0; color: rgba(255,255,255,0.8); }
.service-cta a[href] { color: var(--cyan); font-weight: 600; }

/* -------------------------------------------------------------------------
   About page
   ------------------------------------------------------------------------- */

.about-photo-wrap {
  display: flex;
  justify-content: center;
  padding: var(--gap) 0;
}

/* -------------------------------------------------------------------------
   Contact form
   ------------------------------------------------------------------------- */

.form-wrap {
  max-width: 640px;
}

form { margin-top: 2rem; }

form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

form label span {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-d);
  letter-spacing: 0.01em;
}

form input,
form select,
form textarea {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: calc(var(--r) - 0.2rem);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  padding: 0.72rem 1rem;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
  -webkit-appearance: none;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(15,240,252,0.1);
}
form input::placeholder,
form textarea::placeholder { color: rgba(255,255,255,0.3); }

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

form select { cursor: pointer; }
form select option { background: var(--bg2); color: var(--white); }

form button[type="submit"] {
  display: inline-block;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.75rem;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t);
  margin-top: 0.5rem;
}
form button[type="submit"]:hover:not(:disabled) {
  opacity: 0.82;
  transform: translateY(-2px);
}
form button[type="submit"]:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

[data-baf-status] {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--r) - 0.2rem);
  font-size: 0.93rem;
  font-weight: 500;
}
.baf-ok {
  background: rgba(0,200,100,0.1);
  color: #4dffc3;
  border: 1px solid rgba(0,200,100,0.28);
}
.baf-err {
  background: rgba(255,80,80,0.1);
  color: #ff8888;
  border: 1px solid rgba(255,80,80,0.28);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.75rem;
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.footer__brand .nav__brand {
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}
.footer__tagline {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer__nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--t);
}
.footer__nav a:hover { color: var(--cyan); opacity: 1; }

.footer__copy {
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer__copy p { margin-bottom: 0.3rem; }

.baf-attribution { margin-top: 0.2rem; }
.baf-attribution a {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  transition: color var(--t);
}
.baf-attribution a:hover { color: var(--cyan); opacity: 1; }

@media (max-width: 680px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer__nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer__copy { text-align: center; }
}
