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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #020617;
  color: #e5e7eb;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background glow */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.16), transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 60%);
  opacity: 0.75;
  z-index: -1;
  animation: bgShift 22s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-4%, -2%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(3%, 4%, 0) scale(1.02);
  }
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  position: relative;
  padding: 2.5rem 3.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow:
    0 0 40px rgba(56, 189, 248, 0.5),
    0 0 90px rgba(30, 64, 175, 0.6);
}

.loader-logo {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e0f2fe;
}

.loader-glow {
  margin-top: 0.75rem;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e, #6366f1, #0ea5e9);
  background-size: 200% 100%;
  animation: loaderBar 1.4s ease-in-out infinite;
}

@keyframes loaderBar {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 75% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0.5rem;
}

.nav-logo {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #e0f2fe;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.23);
}

.nav-links {
  list-style: none;
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #cbd5f5;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #e0f2fe;
}

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

.nav-toggle {
  background: transparent;
  border: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 1.5rem 0 3.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

.hero-text {
  max-width: 34rem;
}

.hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #f9fafb;
  letter-spacing: 0.08em; /* add space between characters */
  word-spacing: 0.25rem;
 
}
.hero-title-letters {
  display: inline-block;
   white-space: pre-wrap;
width:550px;

}

.hero-title-letters span {
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  display: inline-block;
}

.hero-title-letters span.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.hero-subtitle {
  color: #cbd5f5;
  font-size: 0.95rem;
  max-width: 28rem;
  margin-bottom: 1.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero-instagram {
  font-size: 0.85rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-instagram a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

.hero-instagram a:hover,
.hero-instagram a:focus-visible {
  text-decoration: underline;
}

.hero-social-divider {
  color: #6b7280;
  font-weight: 300;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 220px;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit-ring {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 10%, rgba(248, 250, 252, 0.35), transparent 60%),
    conic-gradient(
      from 0deg,
      rgba(56, 189, 248, 0.1),
      rgba(96, 165, 250, 0.9),
      rgba(129, 140, 248, 0.3),
      rgba(56, 189, 248, 0.1)
    );
  filter: blur(1px);
  animation: orbitGlow 16s linear infinite;
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.6),
    0 0 90px rgba(15, 23, 42, 1);
}

.hero-orbit-core {
  position: absolute;
  width: 85px;
  height: 130px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 0%, #f9fafb, #38bdf8 55%, #1e293b 100%);
  box-shadow:
    0 0 26px rgba(56, 189, 248, 0.9),
    0 0 60px rgba(15, 23, 42, 1);
}

.hero-tagline-card {
  position: absolute;
  bottom: 0;
  right: 0.2rem;
  width: max-content;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.65);
}

.hero-tagline-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
  display: block;
}

.hero-tagline-metric {
  font-size: 0.8rem;
  color: #e5e7eb;
}

@keyframes orbitGlow {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(90deg) scale(1.02);
  }
  100% {
    transform: rotate(180deg) scale(1);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #0ea5e9, #6366f1);
  color: #f9fafb;
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.65),
    0 0 52px rgba(37, 99, 235, 0.85);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 24px rgba(56, 189, 248, 0.8),
    0 0 70px rgba(37, 99, 235, 0.95);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-1px) scale(1.02);
  background: rgba(15, 23, 42, 0.96);
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

/* Sections */
.section {
  padding: 3.5rem 0 3.25rem;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.4rem;
}

.section-lead {
  font-size: 0.95rem;
  color: #cbd5f5;
  margin-bottom: 1.6rem;
}

.accent {
  color: #38bdf8;
}

/* About */
.about .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.about-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: block;
  box-shadow:
    0 0 30px rgba(56, 189, 248, 0.5),
    0 0 90px rgba(15, 23, 42, 1);
}

.about-text p + p {
  margin-top: 0.7rem;
}

.about-quote {
  margin-top: 1rem;
  font-weight: 600;
  color: #e0f2fe;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.service-card {
  padding: 1.3rem 1.25rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow:
    0 0 18px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(37, 99, 235, 0.55);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 24px rgba(37, 99, 235, 0.75),
    0 0 70px rgba(15, 23, 42, 1);
  border-color: rgba(56, 189, 248, 0.9);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.service-card p {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  background: radial-gradient(circle at 30% 0, #e0f2fe, #38bdf8 60%, #0f172a 100%);
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.7),
    0 0 40px rgba(15, 23, 42, 1);
}

/* Simple icon shapes */
.icon-pulse,
.icon-grid,
.icon-bolt {
  display: inline-block;
}

.icon-pulse {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #0f172a;
  border-top: 0;
  border-left: 0;
  transform: skewX(-12deg);
}

.icon-grid {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #0f172a;
}

.icon-grid::before,
.icon-grid::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  border: 1px solid #0f172a;
}

.icon-bolt {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 14px solid #0f172a;
  transform: skewX(-5deg);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

.portfolio-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow:
    0 0 20px rgba(15, 23, 42, 0.9),
    0 0 55px rgba(37, 99, 235, 0.6);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.portfolio-item:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.95);
  box-shadow:
    0 0 26px rgba(37, 99, 235, 0.85),
    0 0 90px rgba(15, 23, 42, 1);
}

.portfolio-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #020617;
}

/* Glowing running border */
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.1rem;
  padding: 2px;
  background:
    conic-gradient(
      from 0deg,
      rgba(56, 189, 248, 0.2),
      rgba(56, 189, 248, 1),
      rgba(129, 140, 248, 0.7),
      rgba(56, 189, 248, 0.2)
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderRun 4.5s linear infinite;
}

@keyframes borderRun {
  0% {
    transform: rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.9;
  }
}

/* Embedded video */
.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Subtitle overlay */
.video-subtitle-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.3rem;
  margin: 0 0.4rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.7rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

.portfolio-item h3 {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: #e5e7eb;
}

.portfolio-caption {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.pricing-card {
  padding: 1.5rem 1.4rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow:
    0 0 20px rgba(15, 23, 42, 0.9),
    0 0 55px rgba(37, 99, 235, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pricing-card.highlight {
  border-color: rgba(56, 189, 248, 0.95);
  box-shadow:
    0 0 24px rgba(56, 189, 248, 0.85),
    0 0 80px rgba(37, 99, 235, 0.9);
}

.pricing-card h3 {
  font-size: 1.05rem;
  color: #e5e7eb;
}

.pricing-price {
  font-size: 0.9rem;
  color: #a5b4fc;
}

.pricing-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.88rem;
  color: #cbd5f5;
}

.pricing-list li + li {
  margin-top: 0.3rem;
}

.pricing-btn {
  margin-top: 0.8rem;
  align-self: flex-start;
}

/* Contact */
.contact-layout {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

.contact-card {
  padding: 1.8rem 1.6rem;
  border-radius: 1.3rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.8);
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.7),
    0 0 80px rgba(15, 23, 42, 1);
  max-width: 600px;
  width: 100%;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin-bottom: 1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-btn {
  width: 100%;
  text-align: center;
}

.contact-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #cbd5f5;
  text-align: center;
}

/* Footer */
.footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Accessibility focus outline */
:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

/* Responsive */
@media (min-width: 640px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

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

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

  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about .section-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: center;
  }
}

@media (max-width: 639px) {
  .nav-links {
    position: absolute;
    top: 3.3rem;
    right: 1.2rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
      0 0 16px rgba(15, 23, 42, 0.9),
      0 0 35px rgba(37, 99, 235, 0.6);
    flex-direction: column;
    gap: 0.75rem;
    display: none;
    z-index: 10;
  }

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