* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


:root {
  --theme-color: #4B0082;
  --bg-color: #121212;
  --bg-color-dark-mode: #121212;
  --radius: 10px;
  --white-color:#FFFFFF;
  --grey-color:#707070;
  --dark-mode-card-color: #212121;
  --white-text-color: #FFF7FF;
  --bg-dark-color: #231F20;
  --bg-gradient: radial-gradient(
        circle at 30% 20%,
        #1f1f23 0%,
        #141416 40%,
        #0d0d0f 100%
    );
  --font-size-h1: 3rem;
  --font-size-h2: 1.5rem;
  --font-size-h3: 1.2rem;
  --font-size-body: 1rem;

  --content-width: 1050px;

  --padding-top: clamp(4rem, 7vw, 6rem);
  --padding-bottom: clamp(4rem, 7vw, 6rem);
  --button-padding: 0.9rem 1.5rem;
  --spacing-btw-header: 2rem;
  --space: 1rem;
}

body {
  font-family: "Google Sans", sans-serif;
  /* line-height: 1.6; */
  min-height: 100dvh;
  background-color: var(--bg-color);
}

section{
    padding-block: 2rem;
}

h1 {
  font-size: var(--font-size-h1); 
}

h2 { 
  font-size: var(--font-size-h2); 
  line-height: 1.2;
}

h3 {
  font-size: var(--font-size-h3); 
  line-height: 1.3;
}

p {
  font-size: var(--font-size-body); 
  line-height: 1.6;
}

/* Nav */
nav {
  background: var(--bg-gradient);
  color: var(--bg-dark-color);
  padding-block: 10px;
}

nav ul{
  width: 100%;
  gap: 20px;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-block: 0.8rem;
  margin: 0;
}

/* nav li{
  height: 50px;
} */

nav a{
  height: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: white;
  font-size: .8rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle{
  align-items: center;
}

nav a:hover{
  background-color: #f0f0f0;
}

.logo img {
  height: 1.4rem; 
  width: auto;
}

.sidebar{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 1000;
  background: #111;
  box-shadow: -10px 0 10px rgba(0,0,0,0.1);
  display: flex;
  transform: translateX(100%); 
  transition: transform 0.3s ease-in-out;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-inline: 2rem;
}

.sidebar.show {
  transform: translateX(0); /* slide into view */
}

.sidebar li{
  width: 100%;
  margin-bottom: 1rem;
}


.sidebar li a{
  width: 100%;
  color: white;
  font-size: var(--font-size-h2);
}


.sidebar li:first-child a {
  display: block;  
  width: 100%;  
  text-align: right; 
}


#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 999;
}

#menu-overlay.active {
  opacity: 1;
  pointer-events: all; 
}

#menu-toggle{
  display: none;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto; 
  padding-inline: 2rem;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #d79b2d;
  color: #000;
}

.btn-primary:hover {
  background: #e5a834;
  transform: translateY(-2px);
}

.btn-primary {
  box-shadow: 0 10px 25px rgba(215, 155, 45, 0.3);
}

.btn-navbar{
    padding: 10px 15px;
}

.dark-background{
  /* background-color: #150322; */
  background-color: var(--bg-color);
}

.dark-background-text * {
  color: white;
}

.spacer{
    padding-top: var(--space);
}

#home{
    background: var(--bg-gradient);
    color: white;
    display: flex;
    min-height: 90vh;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    align-items: center;
    overflow: hidden
}


.center-text {
  text-align: center;
}

.header-texts {
  max-width: 800px; 
  margin: 0 auto; 
  text-align: center; 
}

.header-texts p {
  padding-block: clamp(1.5rem, 2vw, 2rem);
}

.start-texts{
    text-align: start;
}

.start-texts p {
  padding-block: 1rem;
  color: #fafafad5;
}

.info-text p{
    font-size: 1rem;
    color: #fafafad5;
    /* color: #000; */
}

.start-texts h2 {
  padding-block: clamp(1.5rem, 2vw, 2rem);
  color: white;
}

/* #business{
    padding-block: 3rem;
} */

.stats-card-container {
    display: grid;
    justify-content: start;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding-block: 2rem;
}

.stats-card {
    padding-block: 2rem;
    padding-inline: 1.5rem;
    background-color: var(--dark-mode-card-color); 
    border-radius: var(--radius);
    border: 1px solid rgb(39, 39, 39);
    text-align: center; 
    align-items: center;
}

.stats-card p {
    font-size: 1em;
    margin-block: 1rem;
    color: rgb(200, 200, 200);
}

.stats-card h3, h2, h4 {
    color: white;
}

.stats-card .stat-header{
    font-size: 1.2em;
}

.stats-card .stat-header-h4{
    font-size: 0.9rem;
    margin-top: 0.4rem;
    font-weight: 500;
    color: rgb(200, 200, 200);
}



.apps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-block: 2rem;
}

.app-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


.app-card {
  /* background: linear-gradient(
    180deg,
    #1a1a1d 0%,
    #141416 100%
  ); */
  background-color: var(--dark-mode-card-color); 
  border-radius: var(--radius);
  border: 1px solid rgb(39, 39, 39);
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
  cursor: pointer;
}

.app-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

.app-card p {
  color: #aaa;
  line-height: 1.6;
  font-size: 14px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-icon img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}


.app-card:hover {
  transform: translateY(-8px);
}

.app-image {
  display: flex;
  justify-content: center;
  /* margin-bottom: 30px; */
  padding: 1rem;
  background: #171717;
}

.app-image img {
  width: 220px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.app-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.app-content{
    padding-top: 1rem;
    padding-bottom: 2rem;
    /* padding-block: 2rem; */
    padding-inline: 1.5rem;
}

.app-content p{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.faq-container {
  display: grid;
  padding-block: clamp(1.5rem, 2vw, 2rem);
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px; /* row gap / column gap */
  padding-block: 4rem;
}

.faq-item h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: white;
}

.faq-item p {
  color: #fafafad5;
  line-height: 1.7;
  font-size: 15px;
}

.cta-section {
  padding-block: 5rem;
  background: var(--bg-gradient);
  text-align: center;
}

.cta-container {
  margin: 0 auto;
}

.cta-section h2 {
  /* font-size: 40px; */
  margin-bottom: 20px;
  /* color: #e5e5e5; */
}

.cta-section p {
  /* font-size: 18px; */
  color: #a1a1a1;
  margin-bottom: 40px;
}


.footer {
  background: black;
  color: #fff;
  padding-top: var(--padding-top);
  padding-bottom: 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 0 auto;
}

.footer-brand {
  max-width: 250px;
}

.footer-brand p{
  margin-top: 1rem;
  font-size: .9rem;
  line-height: 1.3rem;
  color: #ccc;
}

.footer-logo {
  height: 35px;
  margin-bottom: 1.5rem;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #f3f3f3;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 1rem;
}

.footer ul a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 2rem;
  margin-top: 2rem;
  color: #aaa;
}

.footer-bottom p{
  font-size: 0.9rem;
}


/*Project Portfolio*/
#app-intro {
  min-height: 90vh;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 40px 20px;
  overflow: hidden;
}

.app-intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  gap: 50px;
}


.app-intro-left {
  flex: 1;
  max-width: 550px;
}

.title-row {
  display: flex;
  align-items: center; /* Changed to center for better alignment with logo */
  gap: 20px;
  margin-bottom: 20px;
}

.app-intro-app-icon img {
  width: 60px;
  height: auto;
  border-radius: 12px;
}

.app-intro-left h1 {
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
}

.app-intro-description {
  font-size: 1.1rem;
  color: #a0a0a0;
  line-height: 1.6;
  max-width: 450px;
}

/* --- Right Side (Phones) --- */
.app-intro-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-center {
  width: 100%;
  max-width: 400px; 
  height: auto;
  display: block;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.screens-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    margin-block: 2rem;
    padding: 0 20px; /* Gives a little breathing room on the sides */
    
    /* Enables the "snapping" effect */
    scroll-snap-type: x mandatory;
    
    /* Hide scrollbars for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbars for Chrome, Safari, and Opera */
.screens-container::-webkit-scrollbar {
    display: none;
}

.screen-img {
    flex-shrink: 0; /* CRITICAL: Prevents images from squishing */
    width: 250px;   /* Adjust this to make images larger or smaller */
    height: auto;
    border-radius: var(--radius);
    scroll-snap-align: start; /* Snaps the left edge of image to container */
    border: 1px solid #222; 
}

.client-review-content{
    margin-block: 2rem;
}

.fade-up-intro{
  animation: fadeUpIntro 0.5s;
}

@keyframes fadeUpIntro{
  0%{
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  100%{
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

.fade-down-intro{
  animation: fadeDownIntro 0.5s;
}

@keyframes fadeDownIntro{
  0%{
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }

  100%{
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

.autoShow{
  animation: text-appear both;
  animation-timeline: view();
  animation-range: entry 20% cover 100vh; 
}

@keyframes text-appear{
  from{
    opacity: 0;
    transform: translateY(100px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 900px) {
    .hideOnMobile{
        display: none;
    }
 
  nav a:hover{
   background-color: transparent;
  }

 #menu-toggle{
    display: block;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .app-intro-container {
    flex-direction: column; /* This puts the image on top */
    text-align: center;
    justify-content: center;
  }

  .title-row {
    justify-content: center; /* Centers the logo and text on mobile */
    display: block;
  }

  .app-intro-app-icon img {
    margin-bottom: 1rem;
    }


  .app-intro-description {
    margin: 0 auto;
  }

  .app-intro-right {
    width: 100%;
    /* margin-bottom: 40px; */
  }
}

@media (max-width: 450px) {
  .sidebar{
    width: 100%;
  }
}