html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #202a44 0, #090b17 40%, #05060b 100%);
  color: #f5f5f5;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Navbar */
.asm-navbar {
  backdrop-filter: none;
  background: radial-gradient(circle at top left, #1d3e68 0, rgb(25 54 126 / 54%) 40%, rgba(10, 16, 40, 0.98) 85%) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}

header {
  border-bottom: none;
}

.asm-navbar .navbar-brand {
  letter-spacing: 0.05em;
  font-size: 2.9rem;
  text-transform: none;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.asm-logo {
  height: 150px;
  width: auto;
  margin-right: 0.4rem;
}

@media (max-width: 768px) {
  .asm-logo {
    height: 72px;
  }

  .asm-brand-text {
    font-size: 1.3rem;
  }
}

.asm-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  text-transform: none;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 2.9rem;
}

.navbar-subtitle {
  font-weight: 500;
  font-size: 1.6rem;
  color: #c4d0ff;
}

.asm-navbar .nav-link {
  color: #e0e4ff;
  font-weight: 500;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  position: relative;
}

.asm-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #5f5cff);
  transition: width 0.25s ease;
}

.asm-navbar .nav-link:hover::after {
  width: 100%;
}

.asm-navbar .nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.asm-navbar .nav-link.active::after {
  width: 100%;
}

/* Main wrapper */
.asm-main {
  padding-top: 0;
}

@media (min-width: 992px) {
  .asm-main {
    padding-top: 0;
  }
}

/* Hero */
.asm-hero {
  min-height: calc(100vh - 4rem);
  padding: 0rem 0 0.5rem;
  background: radial-gradient(circle at top left, #1d3e68 0, rgba(19, 32, 84, 0.95) 35%, rgba(5, 6, 11, 0.95) 80%);
  position: relative;
  overflow: hidden;
}

.asm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.12) 0, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(95, 92, 255, 0.18) 0, transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.asm-hero > .container {
  position: relative;
  z-index: 2;
  margin-top: -10rem;
}

.asm-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #9fb5ff;
}

.asm-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
}

.asm-hero-title span {
  background: linear-gradient(90deg, #00d4ff, #5f5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 992px) {
  .asm-hero-title {
    font-size: 3rem;
  }
}

.asm-hero-subtitle {
  max-width: 34rem;
  color: #cbd3ff;
}

.asm-scroll-down {
  display: inline-block;
  color: #c4d0ff;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: color 0.3s ease;
}

.asm-scroll-down:hover {
  color: #00d4ff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.asm-btn-primary {
  padding-inline: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d4ff, #5f5cff);
  border: none;
  font-weight: 600;
}

.asm-btn-primary:hover {
  filter: brightness(1.05);
}

.asm-btn-outline {
  border-radius: 999px;
  border-color: rgba(150, 173, 255, 0.5);
  color: #e0e4ff;
}

.asm-btn-outline:hover {
  background-color: rgba(10, 18, 59, 0.9);
  color: #ffffff;
}

.asm-hero-image {
  text-align: center;
}

.asm-hero-image img {
  max-width: 100%;
  height: auto;
}

.asm-hero-card {
  background: radial-gradient(circle at top, rgba(0, 212, 255, 0.06), rgba(1, 5, 19, 0.95));
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(110, 134, 255, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.asm-hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.asm-hero-card p {
  color: #d0d7ff;
  font-size: 0.95rem;
}

.asm-hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.asm-hero-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.asm-hero-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.6rem;
  color: #00d4ff;
}

.asm-hero-stats {
  max-width: 34rem;
}

.asm-stat-box {
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(145deg, rgba(7, 11, 40, 0.95), rgba(21, 32, 89, 0.95));
  border: 1px solid rgba(80, 114, 255, 0.45);
}

.asm-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.asm-stat-label {
  font-size: 0.8rem;
  color: #bcc4ff;
}

/* Sections */
.asm-section {
  padding: 1rem 0;
}

@media (min-width: 992px) {
  .asm-section {
    padding: 1.5rem 0;
  }
}

.asm-section-light {
  background: radial-gradient(circle at top left, #151a2a, #05060b);
}

#references {
  padding-bottom: 4rem !important;
}

@media (min-width: 992px) {
  #references {
    padding-bottom: 5rem !important;
  }
}

/* About section with background image */
#about {
  position: relative;
  overflow: hidden;
}

.asm-about-text {
  padding: 2rem 1rem;
}

.asm-about-solutions {
  padding: 2rem 1rem;
}

@media (min-width: 992px) {
  .asm-about-text {
    padding-left: 0;
    margin-top: 8rem;
    margin-left: -1rem;
  }

  .asm-about-text h2,
  .asm-about-text p {
    text-align: center;
    margin-left: 0;
  }

  .asm-about-solutions {
    padding-right: 0;
    padding-left: 8rem;
  }
}

.asm-hero-stats-desktop {
  margin-left: 1rem;
  margin-top: 6rem;
}

.asm-section-dark {
  background: radial-gradient(circle at top right, #080b18, #020307);
}

#contact {
  padding: 3rem 0 4rem 0 !important;
}

@media (min-width: 992px) {
  #contact {
    padding: 4rem 0 6rem 0 !important;
  }
}

.asm-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.asm-pill-card {
  background: rgba(20, 25, 45, 0.75);
  border-radius: 1rem;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 120, 200, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.asm-pill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #e0e4ff;
}

.asm-pill-card p {
  color: #c4d0ff;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.asm-section-subtitle {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  color: #c3cbff;
}

.asm-pill-card {
  background: linear-gradient(150deg, rgba(7, 12, 34, 0.6), rgba(18, 30, 78, 0.65));
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(103, 132, 255, 0.45);
  min-height: 135px;
}

.asm-pill-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.asm-pill-card p {
  font-size: 0.88rem;
  color: #c6ceff;
}

/* Services */
.asm-service-card {
  height: 100%;
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.12), rgba(7, 12, 34, 0.98));
  border: 1px solid rgba(95, 92, 255, 0.5);
  box-shadow: 0 20px 55px rgba(1, 5, 27, 0.9);
}

.asm-service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

.asm-service-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.asm-service-card li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.87rem;
  color: #c0c8ff;
  margin-bottom: 0.25rem;
}

.asm-service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d4ff, #5f5cff);
}

/* Footer */
.asm-footer {
  margin-top: 2rem;
}

/* References */
.asm-ref-card {
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  background: radial-gradient(circle at top, rgba(0, 212, 255, 0.08), rgba(10, 13, 32, 0.98));
  border: 1px solid rgba(87, 113, 255, 0.45);
}

.asm-ref-tag {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background-color: rgba(0, 212, 255, 0.16);
  color: #9be7ff;
  margin-bottom: 0.5rem;
}

.asm-ref-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.asm-ref-card p {
  font-size: 0.88rem;
  color: #d0d7ff;
}

.asm-quote-card {
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  background: linear-gradient(150deg, rgba(22, 28, 61, 0.98), rgba(10, 13, 32, 0.98));
  border: 1px solid rgba(122, 144, 255, 0.6);
  position: relative;
}

.asm-quote-card::before {
  content: "“";
  position: absolute;
  font-size: 3rem;
  color: rgba(129, 154, 255, 0.18);
  left: 0.8rem;
  top: -0.8rem;
}

.asm-quote-card p {
  font-size: 0.9rem;
  color: #dde3ff;
  margin-bottom: 0.8rem;
}

.asm-quote-author {
  font-size: 0.82rem;
  color: #9eabff;
}

/* Contact */
.asm-contact-box {
  padding: 1.2rem 1.3rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.1), rgba(6, 10, 29, 0.98));
  border: 1px solid rgba(82, 115, 255, 0.55);
  font-size: 0.9rem;
}

.asm-contact-form {
  padding: 1.4rem 1.3rem;
  border-radius: 1.1rem;
  background-color: rgba(5, 7, 17, 0.96);
  border: 1px solid rgba(65, 90, 207, 0.6);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
}

.asm-contact-form .form-label {
  font-size: 0.8rem;
  color: #c4cffc;
}

.asm-contact-form .form-control {
  background-color: rgba(10, 12, 26, 0.95);
  border-color: rgba(84, 103, 216, 0.8);
  color: #f5f7ff;
  font-size: 0.9rem;
}

.asm-contact-form .form-control::placeholder {
  color: #707aa8;
}

.asm-contact-form .form-control:focus {
  background-color: rgba(10, 12, 26, 0.98);
}

.asm-contact-note {
  font-size: 0.75rem;
  color: #9aa5df;
}

/* Footer */
.asm-footer {
  background-color: #050713;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(40, 50, 94, 0.9);
  color: #9ea6d9;
  margin-top: 2rem;
}

.asm-footer a {
  color: #c6d0ff;
  text-decoration: none;
}

.asm-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Navbar */
  .asm-navbar .navbar-brand {
    font-size: 1.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .asm-logo {
    height: 45px;
    margin-right: 0.25rem;
  }

  .asm-brand-text {
    font-size: 1rem;
  }

  .navbar-subtitle {
    font-size: 0.8rem;
  }

  .asm-navbar .navbar-nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .asm-navbar .nav-link {
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .asm-navbar .nav-link:last-child {
    border-bottom: none;
  }

  .asm-navbar .nav-link::after {
    display: none;
  }

  .asm-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
  }

  .asm-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.25);
  }

  /* Hero Section */
  .asm-hero {
    min-height: calc(100vh - 3rem);
    padding: 2rem 0 1rem;
  }

  .asm-hero > .container {
    margin-top: 0;
  }

  .asm-hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .asm-hero .btn-lg {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .asm-hero .d-flex.flex-wrap {
    flex-direction: column;
  }

  .asm-hero-stats {
    margin-left: 0 !important;
    margin-top: 2rem !important;
  }

  .asm-stat-box {
    padding: 0.7rem 0.8rem;
  }

  .asm-stat-value {
    font-size: 1rem;
  }

  .asm-stat-label {
    font-size: 0.75rem;
  }

  /* About Section */
  #about {
    min-height: auto;
    padding: 2rem 0;
    background-size: cover;
    background-position: center;
  }

  .asm-about-text {
    padding: 1.5rem 1rem !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }

  .asm-about-text h2,
  .asm-about-text p {
    text-align: left !important;
    margin-left: 0 !important;
  }

  .asm-about-solutions {
    padding: 1rem !important;
  }

  #about h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  #about p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .asm-pill-card {
    min-height: auto;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .asm-pill-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .asm-pill-card p {
    font-size: 0.85rem;
  }

  .solution-card {
    margin-bottom: 1rem;
  }

  #show-more-container {
    margin-top: 1.5rem;
  }

  #show-more-solutions {
    width: 100%;
  }

  /* Contact Section */
  #contact {
    padding: 2rem 0 6rem 0 !important;
  }

  .asm-contact-box {
    padding: 1rem;
    font-size: 0.85rem;
    margin-bottom: 2rem;
  }

  .asm-contact-box p {
    margin-bottom: 0.75rem;
  }

  .asm-contact-box .btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  /* Section Titles */
  .asm-section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .asm-section-subtitle {
    font-size: 0.9rem;
  }

  /* References */
  .asm-ref-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .asm-ref-card h3 {
    font-size: 1rem;
  }

  .asm-ref-card p {
    font-size: 0.85rem;
  }

  /* Footer */
  .asm-footer {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2rem;
  }

  /* Admin Pages */
  .asm-section-dark {
    padding-top: 1rem !important;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }

  .asm-section-title.mb-0 {
    margin-bottom: 1rem !important;
  }

  .btn-primary {
    width: 100%;
  }

  .d-flex.gap-2 {
    flex-direction: column;
  }

  .d-flex.gap-2 .btn {
    width: 100%;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .asm-hero-title {
    font-size: 1.8rem;
  }

  .asm-hero .btn-lg {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }

  .asm-logo {
    height: 60px;
  }

  .asm-brand-text {
    font-size: 1.2rem;
  }

  .asm-navbar .nav-link {
    padding: 0.5rem 0.75rem;
  }

  .asm-about-text {
    padding: 2rem 1.5rem !important;
    margin-top: 2rem !important;
  }

  .asm-about-solutions {
    padding: 2rem 1.5rem !important;
  }

  .asm-pill-card {
    padding: 1.1rem;
    min-height: 150px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .asm-hero-title {
    font-size: 2.2rem;
  }

  .asm-logo {
    height: 80px;
  }

  .asm-brand-text {
    font-size: 1.8rem;
  }

  .asm-navbar .nav-link {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .asm-about-text {
    padding: 2rem 1.5rem !important;
    margin-top: 4rem !important;
  }

  .asm-about-solutions {
    padding: 2rem 1.5rem !important;
  }

  .asm-pill-card {
    min-height: 160px;
  }

  .asm-hero .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .asm-hero-title {
    font-size: 3rem;
  }

  .asm-logo {
    height: 150px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
  .asm-hero {
    min-height: auto;
    padding: 3rem 0 2rem;
  }

  .asm-hero-title {
    font-size: 1.8rem;
  }
}

/* Print Styles */
@media print {
  .asm-navbar,
  .asm-footer,
  .asm-scroll-down,
  #show-more-container {
    display: none;
  }

  .asm-section {
    page-break-inside: avoid;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .asm-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .asm-navbar .nav-link {
    padding: 0.75rem 1rem;
  }

  .asm-btn-primary {
    padding: 0.75rem 2rem;
  }

  .asm-pill-card {
    transition: transform 0.1s;
  }

  .asm-pill-card:active {
    transform: scale(0.98);
  }
}

/* Scroll to Top Button */
.asm-scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00d4ff, #5f5cff);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0;
}

.asm-scroll-to-top:hover {
  background: linear-gradient(135deg, #00b8e6, #4d4aff);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
  transform: translateY(-3px);
}

.asm-scroll-to-top:active {
  transform: translateY(-1px);
}

.asm-scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.asm-scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Mobile adjustments for scroll to top button */
@media (max-width: 575.98px) {
  .asm-scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .asm-scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .asm-scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.75rem;
    right: 1.75rem;
  }
}