/* ============================================
   QubitTech — Brand Styles
   Colors: #000000, #FFFFFF, #0066FF, #1E1E1E
   Fonts: Space Grotesk (display), Inter (body)
   ============================================ */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --blue: #0066FF;
  --graphite: #1E1E1E;
  --graphite-light: #2A2A2A;
  --gray: #888888;
  --gray-light: #AAAAAA;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-height: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader__logo {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.loader__bar {
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--blue);
  border-radius: 2px;
  animation: loaderBar 1s ease-in-out infinite;
}

@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.btn--primary:hover {
  background: #0052CC;
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.5);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 102, 255, 0.05);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.nav__logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.nav__cta { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 1024px) {
  .nav__cta { display: inline-flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 102, 255, 0.12);
  top: -200px;
  right: -100px;
  animation: glowFloat 8s ease-in-out infinite;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 102, 255, 0.08);
  bottom: -100px;
  left: -100px;
  animation: glowFloat 8s ease-in-out infinite reverse;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #00FF88;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue), #66AAFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-light);
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.hero__stat { text-align: center; }

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
}

.hero__stat-suffix {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
}

.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Sections ---- */
.section {
  padding: 120px 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--gray-light);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ---- Services ---- */
.services { background: var(--black); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 36px;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.1);
}

.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 20px;
}

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

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.service-card__tags li {
  padding: 4px 12px;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 500;
}

/* ---- About ---- */
.about { background: var(--graphite); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__logo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__logo {
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 2;
  animation: logoFloat 4s ease-in-out infinite;
  object-fit: contain;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about__orbit {
  position: absolute;
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 50%;
}

.about__orbit--1 {
  width: 100%;
  height: 100%;
  animation: orbitSpin 20s linear infinite;
}

.about__orbit--2 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  border-style: dashed;
  animation: orbitSpin 30s linear infinite reverse;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.about__text {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--blue);
}

.value__icon svg {
  display: block;
}

.value h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.value p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- Process ---- */
.process { background: var(--black); }

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.3;
}

.process__step {
  text-align: center;
  padding: 24px 16px;
}

.process__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.3;
  margin-bottom: 16px;
  transition: opacity var(--transition);
}

.process__step:hover .process__number { opacity: 1; }

.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process__step p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 0, 0, 0));
  border-top: 1px solid rgba(0, 102, 255, 0.2);
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner__text p {
  color: var(--gray-light);
  font-size: 1.05rem;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Contact ---- */
.contact { background: var(--graphite); }

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

.contact__desc {
  color: var(--gray-light);
  margin-bottom: 40px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact__item:hover {
  border-color: rgba(0, 102, 255, 0.3);
  background: rgba(0, 102, 255, 0.05);
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 10px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact__item-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 2px;
}

.contact__item-value {
  font-weight: 500;
  font-size: 0.95rem;
}

.contact__form {
  padding: 40px;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ---- Footer ---- */
.footer {
  padding: 64px 0 0;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.footer__brand p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.6;
}

.footer__links h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--blue); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--gray);
}

.footer__tagline {
  color: var(--blue);
  font-weight: 500;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--graphite);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__menu.open { right: 0; }

  .nav__toggle { display: flex; }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .process__timeline::before { display: none; }

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

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }

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

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

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__actions {
    justify-content: center;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact__form { padding: 28px; }

  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta-banner__actions { flex-direction: column; width: 100%; }
  .cta-banner__actions .btn { width: 100%; justify-content: center; }
}
