/* ==========================================================================
   Global Styles
   ========================================================================== */

 /* Body and base */
body {
  background-color: #000000;
  color: #FFFFFF;
  font-family: "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

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

/* Make all sections relative for absolute positioning of blockers */
section {
  position: relative;
  overflow: visible;
}

.section-background-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #080808;
  z-index: 0;
  pointer-events: none;
}

.services-section,
.technologies-section,
.about-us-section,
.get-started-section,
.contact-form-section {
  background-color: #080808;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Typography
   =========================================================================== */

/* Hero Titles and Subtitles */
.hero-title {
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.7rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-subtitle {
  font-weight: 400;
  font-size: clamp(1rem, 5vw, 2rem);
  line-height: 1.1;
  text-wrap: balance;
}

/* Section Titles (reusable across site) */
.section-title {
  color: #889CE7;
  font-weight: 700;
  font-size: clamp(2.0rem, 5vw, 3.125rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

/* Section Descriptions and Paragraph Text
   Applies to main sections: services, technologies, about-us */
.section-description,
.services-section p,
.technologies-section p,
.about-us-section p,
.get-started-section p {
  color: #8A8A8A;
  font-size: clamp(1.1rem, 1.15vw, 1.375rem);
  line-height: 1.3;
  margin-bottom: 1.3rem;
}

/* Emphasized Description Text (blue, bold) */
.section-description-blue {
  color: #889CE7;
  font-weight: 700;
  font-size: clamp(1.3rem, 5.3vw, 1.9rem);
  line-height: 1.45;
  margin-bottom: 1.55rem;
  text-wrap: balance;
}

.section-description {
  text-wrap: balance;
} 

/* Component and Service Titles */
.component-title,
.team-card-title {
  color: #889CE7;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  text-align: left; 
}

/* Text inside service cards and technology names */
.services-section .service-card p,
.team-section .card-body p,
.bio-text,
.form-titles,
.technologies-section .tech-name {
  color: #8A8A8A;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Layout Containers and Utilities
   ========================================================================== */

/* Site-wide container with responsive horizontal padding */
.site-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 576px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 768px) {
  .site-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
@media (min-width: 992px) {
  .site-container {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}
@media (min-width: 1400px) {
  .site-container {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

/* Optional: Clean heading margins globally */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

.more-margin {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 576px) {
  .more-margin {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
  }
}
@media (min-width: 768px) {
  .more-margin {
    margin-left: 3rem !important;
    margin-right: 3rem !important;
  }
}
@media (min-width: 992px) {
  .more-margin {
    margin-left: 4rem !important;
    margin-right: 4rem !important;
  }
}
@media (min-width: 1200px) {
  .more-margin {
    margin-left: 4rem !important;
    margin-right: 4rem !important;
  }
}
@media (min-width: 1400px) {
  .more-margin {
    margin-left: 5rem !important;
    margin-right: 5rem !important;
  }
}

.more-padding {
  padding-left: 2rem !important;
  padding-right: 2rem!important;
}
@media (min-width: 576px) {
  .more-padding {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}
@media (min-width: 768px) {
  .more-padding {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}
@media (min-width: 992px) {
  .more-padding {
    padding-left: 5rem !important;
    padding-right: 5rem !important;
  }
}
@media (min-width: 1200px) {
  .more-padding {
    padding-left: 6rem !important;
    padding-right: 6rem !important;
  }
}
@media (min-width: 1400px) {
  .more-padding {
    padding-left: 9rem !important;
    padding-right: 9rem !important;
  }
}

.more-padding-y {
  padding-top: 2rem !important;
  padding-bottom: 2rem!important;
}
@media (min-width: 576px) {
  .more-padding-y {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}
@media (min-width: 768px) {
  .more-padding-y {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}
@media (min-width: 992px) {
  .more-padding-y{
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}
@media (min-width: 1200px) {
  .more-padding-y {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}
@media (min-width: 1400px) {
  .more-padding-y {
    padding-top: 9rem !important;
    padding-bottom: 9rem !important;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Keyframe definition for slide-in-left animation (for titles, subtitles, etc.) */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px); /* Start 100px to the left */
  }
  to {
    opacity: 1;
    transform: translateX(0); /* End at original position */
  }
}

/* Keyframe definition for slide-in-bottom animation (for other elements like cards, sections) */
@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(50px); /* Start 50px below */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* End at original position */
  }
}

/* Base class applied to all elements that will be animated via JavaScript */
.animate-on-scroll {
  opacity: 0; /* Hide elements initially */
  /* Define default start position (left slide) */
  transform: translateX(-100px); 
  /* Define the transition properties that JS will trigger */
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Use will-change to hint browser about animation properties */
  will-change: opacity, transform;
}

/* Modifier class for elements that should slide from the bottom instead of left */
.animate-bottom {
    transform: translateY(50px);
}

/* Class added by JavaScript when the element enters the viewport */
.is-in-view {
  opacity: 1;
  /* Reset transform to original position for all directions */
  transform: translate(0, 0); 
}


/* ========================================================================== 
   Header & Navigation 
   ========================================================================== */
#mainNav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;

  /* Smooth transform & background transition */
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;

  /* Optional for GPU */
  will-change: transform;
}

/* Slide navbar up to hide it */
#mainNav.nav-up {
  transform: translateY(-100%);
}

/* Logo sizing */
.site-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Navbar transparent background */
.navbar-transparent {
  background-color: transparent;
}

/* Navbar black background when visible on scroll up */
.bg-black {
  background-color: #000;
  transition: background-color 0.3s ease-in-out;
}

/* Nav links style */
.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #FD6262;
}

/* Hamburger button styling */
.navbar-toggler {
  border: none;
  background: transparent;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: none;
}

/* Hamburger icon always white */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* NEW: background on expanded hamburger */
.navbar-toggler.expanded-bg {
  background-color: rgba(0,0,0,0.6);
  border-radius: 4px;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 11;
    display: none;
    
    /* Styling */
    width: 40px;
    height: 40px;
    background-color: #FD6262;
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    opacity: 1;
    background-color: #fff;
    color: #000;
    transform: scale(1.1); /* Subtle hover effect */
}

/* Class added by JavaScript to show the button */
.show-scroll-btn {
    display: block;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.footer a.text-decoration-underline:hover {
  color: #FD6262;
}
.footer .mt-auto {
  margin-top: auto;
}
#currentYear {
  display: inline;
}

/* ==========================================================================
   Parallax and zom effects on backgrounds
   ========================================================================== */

/* Container for each parallax section - ensures stacking context */
[data-parallax-section] {
  position: relative;
  overflow: visible;
}

/* Parallax background that stays fixed relative to viewport but confined to section */
.parallax-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}
/* Show only when active */
[data-parallax-section] .parallax-background.active {
  opacity: 1;
}
/* Hide other backgrounds by default */
[data-parallax-background] {
  opacity: 0;
}

/* Specific images for backgrounds */
.hero-bg-zoom {
  background-image: url('../img/backgrounds/hero-bg.avif');
}

.testimonials-bg-zoom {
  background-image: url('../img/backgrounds/testimonials-bg.avif');
}

.team-stats-bg-zoom {
  background-image: url('../img/backgrounds/team-stats-bg.avif');
}

.getstartedhero-bg-zoom {
  background-image: url('../img/backgrounds/get-started-page.bg.avif');
}

/* Section content positioned above background */
.section-content {
  position: relative;
  z-index: 1;
}

.hero-section {
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
}
/* Adjust height for smaller screens */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 65vh;
  }
}

.testimonials-section {
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
}
/* Adjust height for smaller screens */
@media (max-width: 991.98px) {
  .testimonials-section {
    min-height: 40vh;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-hero {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #FD6262;
  background-color: #FD6262;
  color: #000;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-hero:hover {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

/* Left background for services left column */

.services-section .services-left-bg {
  background: url('../img/backgrounds/service-bg.avif') center / cover no-repeat;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100%;
  color: white;
}

/* Individual service card styles */
.services-section .service-card {
  background-color: #1B1C1E;
  border: 1px solid #2A2B2E;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-section .service-card:hover,
.technologies-icons:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.services-section .service-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.services-section .service-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Technologies Section
   ========================================================================== */


/* ==========================================================================
   About Us Section & Get Started
   ========================================================================== */
.about-us-left,
.get-started-left {
  min-height: 75vh;
}
/* Adjust height for smaller screens */
@media (max-width: 991.98px) {
  .about-us-left,
  .get-started-left  {
    min-height: 50vh;
  }
}  
   
.about-left-bg,
.get-started-left-bg {
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-left-bg {
  background-image: url('../img/backgrounds/about-us-left.avif');
}

.get-started-left-bg {
  background-image: url('../img/backgrounds/get-started-bg.avif');
}



.get-started-left-bg {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Testimonials Section (carousel images & arrows)
   ========================================================================== */

/* Image hover zoom */
.testimonial-carousel img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.testimonial-carousel .slick-center img {
  transform: scale(1.05);
  z-index: 2;
}
.testimonial-carousel img:hover {
  transform: scale(1.1);
  z-index: 3;
}

/* Custom arrow colors and icons */
.slick-prev:before,
.slick-next:before {
  color: #FD6262;
  content: '';
}
.slick-prev::after {
  content: '❬';
  font-size: 5rem;
  color: #FD6262;
  user-select: none;
}
.slick-next::after {
  content: '❭';
  font-size: 5rem;
  color: #FD6262;
  user-select: none;
}
.slick-prev {
  left: -40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}
.slick-next {
  right: -40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

/* Responsive adjustments for carousel arrows */
@media (max-width: 767.98px) {
  .slick-prev {
    left: 10px;
  }
  .slick-next {
    right: 10px;
  }
}

/* =======================================================
   Team Stats Section
   ======================================================= */

.team-stats-section {
  width: 100%;
  min-height: 50vh;
  overflow: hidden;
}
/* Adjust height for smaller screens */
@media (max-width: 991.98px) {
  .team-stats-section {
    min-height: 40vh;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 500;
  color: #FD6262;
  line-height: 1;
}

.stat-label {
  color: #8A8A8A;
  background: rgba(0,0,0,0.05);
  
  font-size: clamp(0.75em, 0.8vw, 1rem);
  font-weight: 700;
}

/* On larger screens, bump up number size */
@media (min-width: 992px) {
  .stat-number {
    font-size: 4rem;
  }
}

/* ==========================================================================
   Team Section 
   ========================================================================== */

.team-member {
  position: relative;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px #080808;
}

.team-member .card-img-top {
  width: 100%;        
  aspect-ratio: 4 / 5; 
  object-fit: cover;  
  object-position: center top;
}

.team-member:hover .card-img-top {
  filter: brightness(0.5);
}

.team-member .card-body {
  background-color: #080808;
  color: #8A8A8A;
  padding: 1rem;
  position: relative; 
}



/* Overlay bio now covers the whole card */
.team-member .bio-text {
  position: absolute;
  inset: 0;
  background-color: #080808;
  padding: 1rem;
  line-height: 1.3;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  text-align: left;
  flex-direction: column;
  justify-content: center;
}

/* Hover: slide + fade in */
.team-member:hover .bio-text {
  transform: translateY(0);
  opacity: 1;
}


/* Container & card setup */
.text-first-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card text styling */
.text-first-card .card-body {
  position: relative;
  z-index: 1;
  color: #080808;
  font-size: 0.9rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  height: 100%;
}

/* Overlay setup */
.text-first-card .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 8, 8, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 5;
}

/* Overlay image fills container */
.text-first-card .overlay-img {
  width: 100%;        
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: filter 0.4s ease;
}

/* Hover effect */
.text-first-card:hover .overlay {
  transform: translateY(0);
}

.text-first-card:hover .overlay-img {
  filter: brightness(0.8);
}
@media (max-width: 575.98px) {
  .text-first-card {
    aspect-ratio: 1 / 1.5;
    width: 100%;           
    height: auto;          
  }
}



@media (min-width: 1400px) {
  .team-section .col-xxl-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.team-section .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* ==========================================================================
   Get Started page
   ========================================================================== */
/* Get Started page hero section */
.gs-hs {
width: 100%;
overflow: hidden;
}

/* Get Started Section */
.gs-container {
  background-color: #080808;
  margin: 0 auto;
  border: 1px solid #6c757d;
  overflow: hidden;
}

.gs-row {
  display: flex;
  flex-wrap: wrap;
}

/* Left column */
.gs-left {
  border: 1px solid #6c757d;
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: #8A8A8A;
}

/* Ensure left column matches right column height */
.gs-left,
.gs-right {
  display: flex;
  flex-direction: column;
}

/* Right column */
.gs-right {
  flex: 1 1 50%;
  padding: 3rem;
  box-sizing: border-box;
}

/* Form spacing */
.gs-form-group {
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .gs-left, .gs-right {
    flex: 1 1 100%;
    padding: 2rem;
  }
}

/* ==========================================================================
   About page
   ========================================================================== */

.aboutus-bg  {
  background-image: url('../img/backgrounds/about-us-story-balues-bg.avif');
  background-size: cover;
  background-position: center;
  border: 1px solid #6c757d;
  flex: 1 1 30%;
  display: flex;
  justify-content: center; 
  align-items: center;
  padding: 3rem;
  color: #FFFFFF;
}

.aboutus-bg-team {
  background-image: url('../img/backgrounds/about-us-team-bg.avif');
}

/* Ensure left column matches right column height */
.aboutus-bg,
.aboutus-txt {
  display: flex;
  flex-direction: column;
}

/* Text column */
.aboutus-txt {
  justify-content: center;
  align-items: center;
  flex: 1 1 70%;
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-left: clamp(3rem, 11vw, 16rem);
  padding-right: clamp(3rem, 11vw, 16rem);
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Small screens: stack columns */
@media (max-width: 992px) {
  .aboutus-txt {
    padding-left: clamp(6rem, 15vw, 13rem);
    padding-right: clamp(6rem, 15vw, 13rem);
  }
}

@media (max-width: 576px) {
  .aboutus-txt {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}


/* Responsive adjustments */
@media (max-width: 992px) {
  .aboutus-bg, .aboutus-txt {
    flex: 1 1 100%;
  }
}

/* Only affect the Our Team section on smaller screens */
@media (max-width: 992px) {
  .aboutus-bg.aboutus-bg-team {
    order: -1;
  }
}

/* For 2400px+ screens */
@media (min-width: 2400px) {
  .aboutus-bg {
    flex: 1 1 50%;
    padding: 6rem; 
    background-size: cover;
  }

  .aboutus-txt {
    flex: 1 1 50%;
    max-width: 1300px;
    padding-left: clamp(6rem, 12vw, 20rem);
    padding-right: clamp(6rem, 12vw, 20rem);
  }

  .aboutus-bg h2 {
    font-size: clamp(2.5rem, 4vw, 5rem);
  }
}

/* ==========================================================================  
   Services section  
   ========================================================================== */
.service-row {
  border-top: 1px solid #6c757d;
  border-bottom: 1px solid #6c757d;
  margin: 0;
}

/* Borders between columns on large screens */
@media (min-width: 992px) {
  .service-icon-col {
    border-right: 1px solid #6c757d;
  }
}

/* Responsive stacking for small screens */
@media (max-width: 991px) {
  .service-row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-icon-col,
  .service-desc-col {
    border-right: none;
    width: 100%;
  }

  .service-desc-col p {
    text-align: left;
  }
}

/* Icon column styling */
.service-icon-col img.service-icon {
  max-height: 70px;
  width: auto;
}

/* Optional spacing */
.service-desc-col p {
  margin: 0;
}

.services-end-bg {
  background-image: url('../img/backgrounds/services-end-bg.avif');
  min-height: 45vh;
}