/* Basic Reset and Root Variables */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(240 4% 28%);
  --primary: hsl(205 84% 48%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary-bg: hsl(0 0% 95%);
  --muted-foreground: hsl(0 0% 47%);
  --accent: hsl(174 70% 46%);
  --border: hsl(0 0% 90%);
  --input-bg: hsl(0 0% 95%);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Base font size for rem calculations */
}

body {
  font-family: 'PT Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  height: 100vh;
  overflow-y: visible;
  overflow-x: hidden;
  position: relative;
}

/* Container for all sections */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile-first responsive typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* Scroll-triggered animation base classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.animate-on-scroll.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.slide-left {
  opacity: 0;
  transform: translate3d(-100px, 0, 0);
}

.animate-on-scroll.slide-right {
  opacity: 0;
  transform: translate3d(100px, 0, 0);
}

.animate-on-scroll.slide-left.fade-in,
.animate-on-scroll.slide-right.fade-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.animate-on-scroll.scale-up {
  opacity: 0;
  transform: scale3d(0.95, 0.95, 1);
}

.animate-on-scroll.scale-up.fade-in {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* Section transitions */
.section-enter {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-enter.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Parallax depth classes */
.depth-1 {
  transform: translateZ(-10px) scale(2);
}

.depth-2 {
  transform: translateZ(-5px) scale(1.5);
}

.depth-3 {
  transform: translateZ(-3px) scale(1.3);
}

.depth-4 {
  transform: translateZ(-1px) scale(1.1);
}

/* Smooth reveal classes */
.reveal-up {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  opacity: 0;
  transform: scale3d(0.9, 0.9, 1);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* Parallax base */
.parallax-wrapper {
  position: relative;
  overflow: hidden;
}

.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -1;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

/* Hero Section - Mobile First */
.hero-section {
  min-height: 100vh;
  text-align: center;
  display: flex;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 2rem 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.01) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.hero-section:hover::after {
  opacity: 1;
}

/* Company logo (hero) */
.company-logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 200px;
  width: 60%;
  height: auto;
}

@media (min-width: 768px) {
  .company-logo {
    max-width: 380px;
    width: 340px;
    margin-bottom: 1rem;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.05em;
}

.hero-title .font-normal {
  font-weight: 400;
  color: #4A4A4A;
}

.hero-title .font-bold {
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(to right, #1A9EDB, #24C7B8, #50E3C2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 90%;
  margin: 1rem auto 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #757575;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  max-width: 250px;
}

@media (min-width: 640px) {
  .button {
    width: auto;
    padding: 0.75rem 2rem;
  }
}

.button-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.button-primary:hover {
  background-color: hsl(205 84% 43%);
}

.button-secondary {
  background-color: var(--secondary-bg);
  color: var(--foreground);
  border-color: var(--border);
}

.button-secondary:hover {
  background-color: hsl(0 0% 90%);
}

.button-lg {
  padding: 0.8rem 2.5rem;
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background-color: var(--secondary-bg);
}

@media (min-width: 768px) {
  .about-section {
    padding: 6rem 0;
  }
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.about-content p {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--muted-foreground);
}

/* New Timeline for About Section */
.about-section .timeline-main {
  min-width: 300px;
  max-width: 600px;
  margin: 3rem auto 0;
  counter-reset: section;
  /* Initialize the counter */
}

.about-section .timeline-main p {
  font-size: 1em;
  line-height: 1.75em;
  border-top: 3px solid;
  border-image: linear-gradient(to right, var(--primary), var(--accent));
  border-image-slice: 1;
  border-width: 3px;
  margin: 0;
  padding: 40px;
  counter-increment: section;
  position: relative;
  color: var(--foreground);
  /* For animation */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* Animation visible state */
.about-section .timeline-main p.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section .timeline-main p strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--foreground);
}

.about-section .timeline-main p::before {
  content: counter(section);
  position: absolute;
  border-radius: 50%;
  padding: 10px;
  height: 1.25em;
  width: 1.25em;
  background-color: var(--foreground);
  text-align: center;
  line-height: 1.25em;
  color: var(--background);
  font-size: 1em;
  font-family: 'Poppins', sans-serif;
}

.about-section .timeline-main p:nth-child(odd) {
  border-right: 3px solid;
  padding-left: 0;
}

.about-section .timeline-main p:nth-child(odd)::before {
  left: 100%;
  margin-left: -20px;
}

.about-section .timeline-main p:nth-child(even) {
  border-left: 3px solid;
  padding-right: 0;
}

.about-section .timeline-main p:nth-child(even)::before {
  right: 100%;
  margin-right: -20px;
}

.about-section .timeline-main p:first-child {
  border-top: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

.about-section .timeline-main p:last-child {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}


/* Services Section */
.services-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .services-section {
    padding: 6rem 0;
  }
}

.services-header {
  text-align: center;
}

.services-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.services-header p {
  margin-top: 1rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--muted-foreground);
}

.services-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-8px);
}

.card-icon-wrapper {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: hsla(var(--primary), 0.1);
}

@media (min-width: 768px) {
  .card-icon-wrapper {
    width: 4rem;
    height: 4rem;
  }
}

.card:hover .card-icon-wrapper {
  background-color: hsla(var(--primary), 0.2);
}

.card-icon-wrapper svg {
  color: var(--primary);
}

.card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted-foreground);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: var(--secondary-bg);
}

@media (min-width: 768px) {
  .contact-section {
    padding: 6rem 0;
  }
}

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
}

.contact-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.contact-header p {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--muted-foreground);
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 1.5rem;
}

.form-item label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-item input,
.form-item textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  font-size: 1rem;
  font-family: inherit;
}

.form-item input:focus,
.form-item textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(var(--primary), 0.2);
}

.form-message {
  font-size: 0.875rem;
  color: #dc2626;
  min-height: 1.25rem;
}

.form-submit {
  text-align: center;
}

.form-submit .button {
  width: 100%;
}

@media (min-width: 640px) {
  .form-submit .button {
    width: auto;
  }
}

.button-loader {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 1rem;
  height: 1rem;
}

.path {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }

  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  width: 100%;
  background: var(--background);
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.footer-main {
  padding: 0rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

@media (min-width: 640px) {
  .footer-main {
    padding: 1rem 0;
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  text-align: center;
}

@media (min-width: 640px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-logo-row {
  display: flex;
  margin-top: 0px;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo-row-horizontal {
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-logo-row-horizontal {
    flex-direction: row;
    gap: 0.5rem;
  }
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin-bottom: -0.3rem;
}

@media (min-width: 768px) {
  .footer-logo-img {
    width: 100px;
    height: 100px;
  }
}

.footer-title-img {
  height: 0.8rem;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .footer-title-img {
    margin-top: 0.8rem;
  }
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-brand-text {
    align-items: flex-start;
  }
}

.footer-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-subtitle {
    text-align: left;
  }
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--foreground);
  transition: background-color 0.2s, color 0.2s;
}

.social-link:hover {
  background-color: var(--secondary-bg);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 2rem 0 0;
}
@media (min-width: 640px) {
  .footer-bottom {
    padding: 2rem 0 0;
  }
}

/* Toastify base */
.toastify {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 99999 !important;
  color: #ffffff !important;
  padding: 16px 24px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  width: auto !important;
  max-width: 90% !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Success toast */
.toastify.toastify-success {
  background: linear-gradient(to right, #00b09b, #96c93d) !important;
}

/* Error toast */
.toastify.toastify-error {
  background: linear-gradient(to right, #ff5f6d, #ffc371) !important;
}

/* Close (×) Button — fixed inside toast corner */
.toast-close {
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  color: #fff !important;
  opacity: 0.85 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.toast-close:hover {
  opacity: 1 !important;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }

  .roadmap-content:hover {
    transform: none;
  }

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

  .button-secondary:hover {
    background-color: var(--secondary-bg);
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}