/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior: none;
    position: fixed;
    width: 100%;
    height: 100%;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100vw;
    width: 100%;
    height: 100%;
    position: relative;
    overscroll-behavior-y: none;
    touch-action: pan-y;
}

body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

html.menu-open {
    overflow: hidden !important;
}

#header-section {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #5b399f;
}

/* Selection Styles */
::selection {
    background-color: #e2e2e2;
    color: #5b399f;
}

::-webkit-selection {
    background-color: #e2e2e2;
    color: #5b399f;
}

/* Global Font Smoothing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.loader {
  width: 200px;
  height: auto;
  max-width: 90%;
}

.loader video {
  width: 100%;
  height: auto;
  display: block;
}

body {
    font-family: "Satoshi-Regular", "Satoshi-Medium", sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    position: relative;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -10;
    pointer-events: none;
}

main {
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

header {
    position: relative;
    z-index: 2;
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 120px;
}

.scroll-anchor {
    scroll-margin-top: 120px;
}

h1 {
    font-family: "Satoshi-Bold", sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

/* AI Chat Widget Mobile Override */
@media screen and (max-width: 599px) {
    .ai-chat-widget .chat-button-mobile {
        margin-bottom: 33px !important;
        bottom: 13px !important;
        right: 21px !important;
    }
}

/* Homepage (mobile): extra 15px of space on each side of the content sections.
   Hero, logo marquee and testimonials are left out because they are full-width by design. */
@media (max-width: 768px) {
    #stats-section,
    #ai-services-section,
    #process-section,
    #frosted-cards-section,
    #faq-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}
