/* ===================================
   Austin App Solutions — Styles
   =================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-navy: #0b1a2e;
  --color-navy-light: #122240;
  --color-navy-mid: #0f2847;
  --color-blue: #2d7ff9;
  --color-blue-dark: #1a5fd1;
  --color-blue-glow: rgba(45, 127, 249, 0.15);
  --color-purple: #7c3aed;
  --color-purple-glow: rgba(124, 58, 237, 0.1);
  --color-white: #ffffff;
  --color-gray-50: #f8f9fc;
  --color-gray-100: #eef1f6;
  --color-gray-200: #d8dde6;
  --color-gray-400: #8892a4;
  --color-gray-600: #4a5568;
  --color-gray-800: #1a202c;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 40px rgba(45, 127, 249, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  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);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section--alt {
  background: var(--color-gray-50);
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section--dark .section__title {
  color: var(--color-white);
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.section--dark .section__subtitle {
  color: var(--color-gray-400);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn--primary:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 127, 249, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--small {
  font-size: 0.875rem;
  padding: 10px 22px;
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn--small:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 127, 249, 0.3);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ===================================
   Header / Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(11, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  transition: opacity var(--transition);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  position: relative;
}

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

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--color-white);
}

.nav__link.active::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--color-blue);
  color: var(--color-white) !important;
  padding: 8px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 127, 249, 0.3);
}

/* 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(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================
   Hero
   =================================== */
.hero {
  background: linear-gradient(135deg, #0b1a2e 0%, #0f2847 40%, #132d52 70%, #1a1040 100%);
  padding: 180px 0 140px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(45, 127, 249, 0.12);
  animation-delay: 0s;
}

.hero__orb--2 {
  bottom: -15%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.08);
  animation-delay: -3s;
}

.hero__orb--3 {
  top: 40%;
  right: 25%;
  width: 250px;
  height: 250px;
  background: rgba(45, 127, 249, 0.06);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero__content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-blue), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Services
   =================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-glow);
  color: var(--color-blue);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.card:hover .card__icon {
  background: var(--color-blue);
  color: var(--color-white);
  transform: scale(1.05);
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.card__text {
  font-size: 0.925rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ===================================
   Process
   =================================== */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process__grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blue-glow), var(--color-blue), var(--color-blue-glow), transparent);
  opacity: 0.3;
}

.process__step {
  position: relative;
  text-align: center;
}

.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-blue);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.process__step:hover .process__number {
  background: var(--color-blue);
  color: var(--color-white);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(45, 127, 249, 0.3);
}

.process__step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.process__step-text {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.65;
}

/* ===================================
   Products
   =================================== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), #10b981);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.product-card__badge--soon {
  background: linear-gradient(135deg, var(--color-gray-400), #6b7280);
}

.product-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.product-card__domain {
  font-size: 0.875rem;
  color: var(--color-blue);
  font-weight: 500;
  margin-bottom: 12px;
}

.product-card__text {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-card--coming-soon {
  border-style: dashed;
  border-color: var(--color-gray-200);
  background: transparent;
}

.product-card--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.product-card--coming-soon::after {
  display: none;
}

/* ===================================
   About
   =================================== */
.about__content {
  max-width: 680px;
}

.about__content p {
  font-size: 1.05rem;
  color: var(--color-gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about__content p strong {
  color: var(--color-navy);
}

.about__stats {
  list-style: none;
  display: flex;
  gap: 48px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--color-gray-100);
}

.about__stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
  margin-bottom: 4px;
}

.about__stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* ===================================
   Contact
   =================================== */
.contact {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0f2847 50%, #1a1040 100%);
}

.contact .section__title {
  color: var(--color-white);
}

.contact .section__subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.contact__content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact__detail svg {
  color: var(--color-blue);
  flex-shrink: 0;
}

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

.contact__link:hover {
  color: #60a5fa;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-navy);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-white);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

.footer__link {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--color-primary);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
  .services__grid,
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid::before {
    display: none;
  }
}

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

  .section__title {
    font-size: 1.85rem;
  }

  .hero {
    padding: 140px 0 100px;
    min-height: auto;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .services__grid,
  .process__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process__grid::before {
    display: none;
  }

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

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

  .footer__content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 26, 46, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    text-align: center;
    margin-top: 12px;
    border-bottom: none;
    border-radius: var(--radius);
  }

  /* Hamburger active state */
  .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 (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
  }

  .container {
    padding: 0 16px;
  }
}
