/* =========================================
   GLOBAL SETTINGS
   ========================================= */

/* Enables smooth scrolling when clicking navbar links */
html {
  scroll-behavior: smooth;
}

/* Adds spacing for fixed navbar and sets default font */
body {
  padding-top: 70px;               /* Height of fixed navbar */
  font-family: Arial, sans-serif;
  margin: 0;
}

/* =========================================
   NAVBAR STYLING
   ========================================= */

/* White navbar background */
.navbar {
  background-color: #ffffff !important;
}

/* Navbar brand and links text color */
.navbar-brand,
.nav-link {
  color: #000000 !important;
  font-weight: 500;
}

/* Hover effect for navbar links */
.nav-link:hover {
  color: #000000 !important;
  text-decoration: underline;
}

/* =========================================
   PARALLAX HERO SECTION (Z-DEPTH EFFECT)
   ========================================= */

.parallax-hero {
  height: 400px; /* height */
  background-image: url('../img/IT-Support-Services.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Creates parallax / z-depth illusion on scroll */
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  color: white;
  text-align: center;
}

/* Dark overlay for better text visibility */
.parallax-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* Ensures text stays above the overlay */
.parallax-hero .container {
  position: relative;
  z-index: 2;
  text-align: right;
  padding-right: 50px;
}

/* Right-aligned parallax text styling */
.parallax-text-right {
  text-align: right;
  margin-left: auto;
  margin-right: 60px;
  max-width: 50%;
}

/* =========================================
   HEADING ANIMATIONS
   ========================================= */

@keyframes typewriter {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink {
  0%, 49% {
    border-right-color: white;
  }
  50%, 100% {
    border-right-color: transparent;
  }
}

.animate-heading {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid white;
  white-space: nowrap;
  max-width: 100%;
  animation: typewriter 3.5s steps(40, end) forwards, blink 0.75s step-end infinite;
}

/* =========================================
   GENERAL SECTION SPACING
   ========================================= */

/* Adds vertical spacing between sections */
section {
  margin-top: 40px;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS (MOBILE / TABLET)
   ========================================= */

@media (max-width: 768px) {

  /* Disable parallax on mobile for performance */
  .parallax-hero {
    height: 220px;
    background-attachment: scroll;
  }

  /* Reduce heading size for small screens */
  .parallax-hero h1 {
    font-size: 1.8rem;
  }

  .parallax-hero h2 {
    font-size: 1.2rem;
  }
}

/* =========================================
   SERVICES SECTION STYLING
    ========================================= */

/* Content box styling with fixed height */
.content-box {
  min-height: 500px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* SERVICES SECTION */
.services-section {
  background: #f8f9fa;
}

/* LEFT BUTTONS */
.list-group-item {
  border: none;
  margin-bottom: 10px;
  padding: 18px;
  font-weight: 500;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: #0d6efd;
  color: white;
}

/* ACTIVE BUTTON */
.list-group-item.active {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
}

/* RIGHT CONTENT BOX */
.content-box {
  background: white;
  border-radius: 16px;
  min-height: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Service Image Wrapper - Position to Right */
.tab-pane {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  overflow: hidden;
}

.service-image-wrapper{
  float: right;
  width: 360px;
  margin: 10px 0 0 10px;
  border-radius: 12px;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .list-group {
    display: flex;
    overflow-x: auto;
  }

  .list-group-item {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 10px;
  }

  .service-image-wrapper {
    float: none;
    margin-left: 0;
    max-width: 100%;
  }
}
