/* ============ Base & Theme ============ */
:root {
  --bg: #0b0d12;
  --bg-soft: #0f121a;
  --card: #0f1420;
  --text: #e6eaf2;
  --muted: #aab3c5;
  --brand: #6ee7f9;
  /* cyan */
  --brand-2: #a78bfa;
  /* violet */
  --accent: #34d399;
  /* green */
  --danger: #ef4444;
  /* red */
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}


body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, rgba(167, 139, 250, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(110, 231, 249, .10), transparent 60%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

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

/* ============ Utilities ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0d12;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 20px rgba(167, 139, 250, .25);
  transition: transform .2s ease, filter .2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: none;
}

.tag {
  display: inline-block;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--muted);
  font-size: .8rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform .35s cubic-bezier(.21, .98, .6, .99),
    border-color .35s ease, background .35s ease;
}

.card:hover {
  transform: translateY(-6px) rotateZ(-.2deg);
  border-color: rgba(167, 139, 250, .35);
  background: linear-gradient(180deg, rgba(167, 139, 250, .06), rgba(110, 231, 249, .04));
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(.98);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11, 13, 18, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  letter-spacing: .4px;
}

.brand .logo {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  color: #0b0d12;
  box-shadow: 0 10px 25px rgba(110, 231, 249, .25);
  transform: rotateZ(8deg);
  animation: spinFloat 14s linear infinite;
}

@keyframes spinFloat {
  0% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(188deg) translateY(-2px);
  }

  100% {
    transform: rotate(368deg) translateY(0);
  }
}

.nav-links {
  display: none;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: .35rem .4rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  transition: width .3s;
}

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

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

.menu-btn {
  border: 1px solid rgba(255, 255, 255, .15);
  background: transparent;
  color: var(--text);
  padding: .55rem .7rem;
  border-radius: 12px;
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 auto auto;
  top: 64px;
  right: 12px;
  width: calc(100% - 24px);
  max-width: 380px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 1rem;
  display: none;
  box-shadow: var(--shadow);
}

.mobile-drawer a {
  display: block;
  padding: .9rem;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: .6rem;
}

.mobile-drawer a:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, .35);
  transform: translateX(4px);
}

@media (min-width: 920px) {
  .menu-btn {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .mobile-drawer {
    display: none !important;
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.hero .orb {
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  filter: blur(35px);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(110, 231, 249, .45), transparent 60%);
  animation: float 10s ease-in-out infinite;
}

.hero .orb-2 {
  inset: -140px auto auto -120px;
  background: radial-gradient(circle at 70% 50%, rgba(167, 139, 250, .42), transparent 60%);
  animation-duration: 12s;
}

@keyframes float {
  0% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-18px)
  }

  100% {
    transform: translateY(0)
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 .8rem;
  letter-spacing: -.02em;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}

.actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

/* ============ Marquee ============ */
.marquee {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  padding: .9rem 0;
  will-change: transform;
  animation: ticker 30s linear infinite;
}

.marquee-track span {
  color: var(--muted);
  opacity: .85;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ============ Sections ============ */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  margin: 0 0 .2rem;
}

section .lead {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

/* Services */
.service {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .9rem;
  align-items: start;
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: .5px;
  color: #0b0d12;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 30px rgba(110, 231, 249, .25);
  transform: rotate(-3deg);
  transition: transform .3s ease;
}

.card:hover .icon {
  transform: rotate(3deg) scale(1.02);
}

/* Work */
.work-card {
  overflow: hidden;
}

.work-img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform .6s ease;
}

.work-card:hover .work-img img {
  transform: scale(1.1) rotate(.6deg);
}

/* Process */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: .8rem;
  top: .6rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b0d12;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(110, 231, 249, .2);
}

/* Testimonials */
.testimonial p {
  font-style: italic;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(167, 139, 250, .07), rgba(110, 231, 249, .05));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 2rem 0 4rem;
  color: var(--muted);
}

/* ============ Media Queries ============ */
@media (min-width: 880px) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 1.4rem;
  }
}

/* ============ Scroll To Top ============ */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0d12;
  font-weight: 900;
  border: none;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px) scale(.9);
  transition: all .25s ease;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Error highlight for required fields */
input:invalid, textarea:invalid {
    border: 1px solid red;
}

/* Success and error messages */
#formStatus {
    font-weight: 500;
    margin-top: 0.8rem;
    min-height: 1.4em;
}
#formStatus.success {
    color: green;
}
#formStatus.error {
    color: red;
}

/* Loading state for button */
#contactForm button.loading {
    background: #ccc;
    cursor: not-allowed;
}




