/* =================== VARIABLES =================== */
:root {
  --orange: #ff6f00;
  --dark-orange: #e65a00;
  --black: #0a0a0a;
  --white: #fefefe;
  --grey: #f2f2f2;
  --accent-gradient: linear-gradient(135deg, #ff6f00, #ffb347);
  --card-shadow: rgba(0,0,0,0.12);
  --primary-font: 'Poppins', sans-serif;
}

/* =================== RESET =================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--primary-font);
}

body {
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

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

/* =================== TOP BAR =================== */
.top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 6px 40px;
  font-size: 14px;
  font-weight: 400; /* standardized */
  background: var(--grey);
}

.top-bar a:hover {
  color: var(--orange);
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

/* =================== HEADER & NAV =================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px; /* standard spacing */
}

.logo img {
  width: 300px; /* standardized */
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  font-weight: 400; /* standardized */
}

nav a {
  font-weight: 400; /* standardized */
  color: var(--orange);
  border-bottom: 3px solid transparent;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--orange);
  border-bottom: 3px solid var(--orange);
}

/* ===================== HAMBURGER / MOBILE NAV ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--orange);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    padding-top: 100px;
  }

  nav.active { right: 0; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 40px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
  }

  .hamburger.active span:nth-child(2) { opacity: 0; }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px,-6px);
  }
}

/* =================== HERO =================== */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
  position: relative;
  overflow: hidden;

  /* Animated Gradient Background */
  background: linear-gradient(270deg, #ff6f00, #ffb347, #ff4500, #ff8c00);
  background-size: 800% 800%;
  animation: gradientShift 15s ease infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow:
    0 0 5px #ff6f00,
    0 0 10px #ff6f00,
    0 0 20px #ff6f00,
    0 0 40px #ffb347;
  animation: neonPulse 2s infinite alternate;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neonPulse {
  0% { text-shadow: 0 0 5px #ff6f00, 0 0 10px #ff6f00, 0 0 20px #ffb347, 0 0 40px #ffb347; }
  100% { text-shadow: 0 0 10px #ff6f00, 0 0 20px #ff6f00, 0 0 30px #ff6f00, 0 0 60px #ffb347; }
}

/* =================== SECTION TITLES =================== */
section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  position: relative;
}

section h2 {
  margin-top: 40px;
  margin-bottom: 50px;
  color: var(--orange);
  text-align: center;
  font-size: clamp(2rem, 4vw, 2rem);
  font-weight: 700;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  margin: 15px auto 0;
  border-radius: 4px;
}

/* =================== DIGITAL SERVICES =================== */
.services-list {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 30px;
  scroll-behavior: smooth;
  padding-bottom: 20px;
}

.service-card {
  flex: 0 0 280px;
  padding: 40px 20px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 40px var(--card-shadow);
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.service-icon {
  font-size: 60px;
  color: var(--orange);
  margin-bottom: 20px;
  text-shadow: 0 0 5px #ff6f00, 0 0 10px #ff6f00, 0 0 20px #ffb347;
  animation: iconGlow 1.8s infinite alternate;
}

@keyframes iconGlow {
  0% { text-shadow: 0 0 5px #ff6f00, 0 0 10px #ff6f00, 0 0 20px #ffb347; }
  100% { text-shadow: 0 0 10px #ff6f00, 0 0 20px #ff6f00, 0 0 40px #ffb347; }
}

@media (max-width: 768px) {
  .services-list {
    flex-direction: column !important; /* stack vertically */
    flex-wrap: nowrap !important;       /* ignore previous wrap settings */
    align-items: center;                /* center cards */
    overflow-x: visible !important;     /* disable horizontal scroll */
    gap: 30px;                          /* space between cards */
    padding-bottom: 40px;
  }

  .service-card {
    flex: 0 0 auto !important;          /* natural height */
    width: 90% !important;              /* nearly full width */
    max-width: 400px;                    /* optional max width */
    padding: 30px 20px;
    margin: 0 auto;                      /* center in container */
    transform: none;                     /* remove hover/slide effects */
  }
}

/* =================== CLIENT LOGOS GRID =================== */

/* =================== REVOLVING CLIENT LOGOS =================== */

.logo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;

  display: flex;            /* make it a flex container */
  align-items: center;      /* vertical centering of child (.logo-track) */
}

.logo-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scrollLogos 25s linear infinite;
  align-items: center;
}

/* Pause on hover */
.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.client-logo {
  flex: 0 0 auto;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.client-logo img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Hover effect on individual logo */
.client-logo:hover {
  filter: grayscale(0%);
}

.client-logo:hover img {
  transform: scale(1.1);
}

/* Infinite scrolling animation */
@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo-track {
    gap: 40px;
    animation-duration: 18s;
  }

  .client-logo img {
    max-width: 110px;
  }
}
/* =================== FOOTER =================== */
footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-grid a {
  color: var(--white);
  text-decoration: none;
}

.footer-grid img {
  width: 100%;
  max-width: 180px;
}

/* =================== SCROLLBAR STYLING =================== */
.services-list::-webkit-scrollbar,
.client-logos-grid::-webkit-scrollbar {
  height: 8px;
}

.services-list::-webkit-scrollbar-thumb,
.client-logos-grid::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 10px;
}

/* =================== SCROLL CONTAINERS (ARROWS) =================== */
.scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: 0.3s;
}

.scroll-btn:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

@media (max-width: 768px) {
  .scroll-btn { display: none; }
  nav ul { display: none; }
  section { padding: 60px 20px; }
  .service-card { flex: 0 0 220px; padding: 30px 15px; }
  .client-logo img { max-width: 120px; }
}