:root {
  /* Brand Colors */
  --primary-accent: #1ac9ff;
  --accent-2: #119bdd;
  --deep-accent: #031687;
  --dark-base: #050e16;
  --darker-base: #0b1823;

  /* Functional Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);

  /* Spacing */
  --section-padding-desktop: 100px;
  --section-padding-mobile: 60px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 50px;
}

/* Reset & Base */
html {
  scroll-padding-top: 100px; /* Account for fixed navbar */
  scroll-behavior: smooth; /* Native smooth scroll for anchors */
}

@media (max-width: 991px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Momentum scroll on iOS */
  }
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background-color: var(--dark-base);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  /* Removed potential overflow: hidden/auto conflicts */
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.text-primary-accent {
  color: var(--primary-accent) !important;
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  background-color: transparent;
  transition: transform 0.2s ease-out;
}

/* Logo Container - Premium Oval Glass */
.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 50px; /* Perfect oval pill */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  border-color: var(--primary-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(26, 201, 255, 0.1);
}

.navbar-brand img {
  height: 35px; /* Ensure consistent height inside container */
  width: auto;
  object-fit: contain;
}

/* Navigation */
.glass-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 14, 22, 0.3);
  /* Slightly brighter than dark base for contrast */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.4s ease;
}

.glass-nav.scrolled {
  background: rgba(5, 14, 22, 0.85);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  position: relative;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background-color: var(--primary-accent);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Buttons */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent-2), var(--deep-accent));
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(26, 201, 255, 0.3);
}

.btn-primary-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--deep-accent), var(--accent-2));
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-primary-glow:hover::before {
  opacity: 1;
}

.btn-outline-glass {
  background: transparent;
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-highlight);
  backdrop-filter: blur(4px);
  font-weight: 600;
}

.btn-outline-glass:hover {
  background: var(--glass-bg);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

/* Sections */
.hero-section {
  min-height: 100dvh;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #0b1823 0%, #050e16 60%);
}

/* CLS & Flash Prevention - Initial States */
.hero-text h1,
.hero-text p,
.hero-text .btn,
.service-hero-minimal h1,
.service-hero-minimal p,
.hero-visual {
  opacity: 0;
  visibility: hidden;
}

/* Layout Reservation to prevent jumps */
.hero-text h1 {
  min-height: 1.2lh; /* Reserve line-height space */
}

/* STRICT STABILIZATION: Lock Paragraph Height */
.hero-text p {
  min-height: 3.5em; /* Reserve exact paragraph space */
  line-height: 1.6; /* Lock line-height to prevent font swap resizing */
  margin-bottom: 3rem; /* Enforce spacing */
  display: block; /* Ensure block layout reservation */
}

.light-beam-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.light-beam {
  position: absolute;
  width: 150%;
  height: 300px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(26, 201, 255, 0.03),
    transparent
  );
  transform: rotate(-30deg);
  filter: blur(40px);
}

.beam-1 {
  top: -20%;
  left: -20%;
  animation: beamFloat 8s infinite alternate ease-in-out;
}

.beam-2 {
  bottom: -20%;
  right: -20%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(3, 22, 135, 0.05),
    transparent
  );
  animation: beamFloat 10s infinite alternate-reverse ease-in-out;
}

@keyframes beamFloat {
  0% {
    transform: rotate(-30deg) translateY(0);
    opacity: 0.5;
  }

  100% {
    transform: rotate(-30deg) translateY(50px);
    opacity: 0.8;
  }
}

/* Glass Card */
.glass-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.mockup-content {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
}

.code-block {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

/* Marquee */
.trust-strip {
  background: rgba(5, 14, 22, 0.6);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.border-glass-y {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* === New Section Styles === */

/* Common Utilities */
.section-padding {
  padding: var(--section-padding-desktop) 0;
}

.bg-darker {
  background-color: var(--darker-base);
}

.letter-spacing-2 {
  letter-spacing: 2px;
}

/* Service Cards */
.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(26, 201, 255, 0.3);
  box-shadow: 0 20px 40px rgba(26, 201, 255, 0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.service-card:hover .icon-box {
  background: rgba(26, 201, 255, 0.1);
  transform: scale(1.1);
}

.btn-sm-glass {
  color: var(--primary-accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.btn-sm-glass:hover {
  border-color: var(--primary-accent);
  color: white;
}

.link-arrow {
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

.link-arrow:hover {
  color: var(--primary-accent);
}

/* Background Blobs */
.bg-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(26, 201, 255, 0.1) 0%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.blob-left {
  top: 20%;
  left: -200px;
}

/* Features List */
.feature-list h5 {
  font-size: 1.1rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(26, 201, 255, 0.1);
  color: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Project Cards */
.project-card {
  cursor: pointer;
  border-radius: 20px;
}

.img-placeholder {
  width: 100%;
  background: #0f1c29;
  transition: 0.5s;
  background-image: linear-gradient(
    45deg,
    #0f1c29 25%,
    #132231 25%,
    #132231 50%,
    #0f1c29 50%,
    #0f1c29 75%,
    #132231 75%,
    #132231 100%
  );
  background-size: 40px 40px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transition: 0.4s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card:hover .img-placeholder {
  transform: scale(1.05);
}

.glass-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-weight: 500;
  align-self: flex-start;
}

/* Timeline */
.timeline-line {
  position: absolute;
  left: 40px;
  /* Align with card content if stacked, or adjust for desktop */
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  display: none;
}

@media (min-width: 992px) {
  .timeline-line {
    display: block;
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-wrapper .row {
    position: relative;
  }


  .step-item:nth-child(even),
  .step-item:nth-child(5) {
    margin-top: 100px;
  }

  /* This grid approach might need layout tweaks. Bootstrap rows are flex. 
       A custom grid for timeline might be better, but lets try forcing visual staggering */
}

/* Let's SIMPLIFY Timeline for reliability */
.step-card {
  border-left: 2px solid var(--glass-border);
  transition: 0.3s;
}

.step-card:hover {
  border-left-color: var(--primary-accent);
  background: rgba(255, 255, 255, 0.08);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 10px;
  right: 20px;
}

/* Testimonials */
.avatar-placeholder {
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
}

/* Form Elements */
.form-control-glass,
.form-select-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.form-control-glass:focus,
.form-select-glass:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-accent);
  color: white;
  box-shadow: none;
}

.form-control-glass::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Fix Dropdown Options for Dark Mode */
.form-select-glass option {
  background-color: var(--darker-base); /* Dark background */
  color: white; /* White text */
}

/* Contact Icon Box - Circular & Centered */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Perfect Circle */
  background: rgba(255, 255, 255, 0.05); /* Slight glass background */
  border: 1px solid var(--glass-border);
}

.max-w-800 {
  max-width: 800px;
}

/* Footer */
.footer-glass {
  background: #02090f;
}

.border-glass-top {
  border-top: 1px solid var(--glass-border);
}

.border-glass {
  border-color: var(--glass-border) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --section-padding-desktop: 60px;
  }

  .display-1 {
    font-size: 3rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .section-padding {
    padding: var(--section-padding-mobile) 0;
  }
}

/* Service Detail Styles */
.pricing-card {
  border: 1px solid var(--glass-border);
  transition: 0.3s;
}

.pricing-card:hover {
  border-color: var(--primary-accent);
  transform: translateY(-5px);
}

.pricing-highlight {
  border-color: var(--primary-accent);
  background: rgba(26, 201, 255, 0.05);
}

.check-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: start;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.check-list i {
  color: var(--primary-accent);
  margin-top: 4px;
}

.tech-pill {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  margin: 0 10px 10px 0;
  transition: 0.3s;
}

.tech-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-accent);
}

/* Accordion */
.accordion-glass .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
}

.accordion-glass .accordion-button {
  background: transparent;
  color: white;
  font-weight: 500;
  box-shadow: none;
  padding: 1.5rem 0;
}

.accordion-glass .accordion-button::after {
  filter: invert(1);
}

.accordion-glass .accordion-button:not(.collapsed) {
  color: var(--primary-accent);
  background: transparent;
  border-bottom: none;
}

.accordion-glass .accordion-body {
  padding: 0 0 1.5rem 0;
  color: var(--text-secondary);
}

/* Marquee Animation */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-content {
  display: inline-block;
  animation: scroll 30s linear infinite;
}

.tech-icon {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 40px;
  opacity: 0.7;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* BLOG CONTENT COLOR FIX - ROBUST */
#article-content {
    color: var(--text-primary) !important;
}

#article-content * {
    color: var(--text-primary) !important;
    background-color: transparent !important; /* Remove white backgrounds from pasted text */
}

#article-content h1, 
#article-content h2, 
#article-content h3, 
#article-content h4, 
#article-content h5, 
#article-content h6,
#article-content p,
#article-content span,
#article-content div,
#article-content li,
#article-content b,
#article-content strong,
#article-content i,
#article-content em {
    color: var(--text-primary) !important;
}

#article-content a {
    color: var(--primary-accent) !important;
    text-decoration: underline;
}


.tech-icon:hover {
  color: var(--primary-accent);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* BLOG IMAGE FIX START */
.blog-card-img-wrapper {
  height: auto !important;
  min-height: 200px;
  max-height: 250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* Fallback background */
  overflow: hidden;
}

.blog-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain !important; /* Ensure full image visibility */
  display: block;
}

/* Fix for blog detail page main image */
#article-content img.img-fluid {
  width: 100% !important;
  height: auto !important;
  max-height: none !important; /* Remove any previous max-height limitation if needed, or keep generous */
  object-fit: contain !important;
}
/* BLOG IMAGE FIX END */

/* About Page Specifics */
.fs-7 {
  font-size: 0.85rem;
  font-weight: 600;
}

.bg-glass-light {
  background: rgba(255, 255, 255, 0.05);
}

.text-stroke-glass {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  color: transparent;
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(26, 201, 255, 0.15);
  border-color: var(--primary-accent);
}

.bg-gradient-glass {
  background: linear-gradient(
    135deg,
    var(--glass-bg) 0%,
    rgba(26, 201, 255, 0.05) 100%
  );
}

.transition-up {
  transition: transform 0.3s ease;
}

.transition-up:hover {
  transform: translateY(-10px);
}

.divide-x-lg {
  display: flex;
}

@media (min-width: 768px) {
  .divide-x-lg > div:not(:last-child) {
    border-right: 1px solid var(--glass-border);
  }
}

@media (max-width: 767px) {
  .divide-x-lg {
    flex-direction: column;
  }

  .divide-x-lg > div:not(:last-child) {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
}

.glow-orb {
  width: 200px;
  height: 200px;
  background: var(--primary-accent);
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* ===== SERVICE CARD GRID STYLES ===== */
.service-card-action {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 201, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card-action:hover::before {
  opacity: 1;
}

.service-card-action:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 201, 255, 0.15);
}

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-bullets li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.service-bullets li:last-child {
  margin-bottom: 0;
}

.service-bullets i.fa-circle {
  font-size: 0.35rem;
  color: var(--primary-accent);
  flex-shrink: 0;
}

.btn-service-primary {
  background: linear-gradient(
    135deg,
    rgba(26, 201, 255, 0.1),
    rgba(26, 201, 255, 0.05)
  );
  border: 1px solid rgba(26, 201, 255, 0.3);
  color: var(--primary-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-service-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(26, 201, 255, 0.2),
    rgba(26, 201, 255, 0.1)
  );
  border-color: var(--primary-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 201, 255, 0.3);
}

/* Service Icon Square Containers */
.icon-square-container {
  width: 100%;
  max-width: 320px;
  /* Reduced size */
  margin: 0 auto;
  /* Centered */
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.icon-square-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(26, 201, 255, 0.1),
    transparent 70%
  );
  opacity: 0.5;
}

.icon-square-container i {
  z-index: 1;
  -webkit-text-stroke: 0px !important;
  /* Reset previous stroke */
  color: rgba(255, 255, 255, 0.15);
  /* More visible fill */
  filter: drop-shadow(0 0 20px rgba(26, 201, 255, 0.2));
  transition: all 0.5s ease;
}

.icon-square-container:hover i {
  color: rgba(26, 201, 255, 0.3);
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 0 30px rgba(26, 201, 255, 0.4));
}

/* Vertical Code Marquee */
.code-marquee-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.code-marquee-content {
  display: flex;
  flex-direction: column;
  animation: marqueeVertical 10s linear infinite;
}

/* Pause on hover for readability (optional but nice) */
/* .code-marquee-container:hover .code-marquee-content {
    animation-play-state: paused;
} */

@keyframes marqueeVertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

/* === NEW SERVICE DETAIL REDESIGN === */

/* 1. Hero Minimal */
.service-hero-minimal {
  padding: 180px 0 100px;
  background: radial-gradient(
    circle at top right,
    rgba(26, 201, 255, 0.05),
    transparent 60%
  );
  position: relative;
  overflow: hidden;
}

.service-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  /* Perfect circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary-accent);
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(26, 201, 255, 0.1);
}

/* 2. Overview Section */
.service-overview-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.service-overview-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 201, 255, 0.1), transparent);
  z-index: 1;
}

/* 3. Deliverables (Small Glass Containers) */
.deliverable-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.deliverable-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-accent);
  transform: translateY(-5px);
}

.check-icon-sm {
  color: var(--primary-accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* 4. Approach (Vertical Flow) */
.approach-step {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.approach-step:last-child {
  border-left: 1px solid transparent;
}

.approach-number {
  position: absolute;
  left: -20px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--dark-base);
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  z-index: 2;
}

/* 5. Tools Grid (Clean) */
.tool-item-clean {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  transition: 0.3s;
}

.tool-item-clean:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tool-item-clean i,
.tool-item-clean svg {
  font-size: 2.5rem;
  color: var(--text-secondary);
  /* Muted by default */
  margin-bottom: 1rem;
  transition: 0.3s;
  display: inline-block;
}

.tool-item-clean:hover i,
.tool-item-clean:hover svg {
  color: var(--primary-accent);
  transform: scale(1.1);
}

/* 6. Why Us (Minimal) */
.reason-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reason-item:last-child {
  border-bottom: none;
}

.reason-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === PORTFOLIO REDESIGN STYLES === */

/* 1. Hero Minimal */
.hero-minimal {
  padding: 160px 0 80px;
  background: radial-gradient(
    circle at top center,
    rgba(26, 201, 255, 0.05),
    transparent 70%
  );
  position: relative;
}

/* 2. Filter Bar */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn-premium {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.filter-btn-premium:hover,
.filter-btn-premium.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-accent);
  color: white;
  box-shadow: 0 0 15px rgba(26, 201, 255, 0.1);
}

/* 3. Project Grid & Cards */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
  /* offset for column padding */
}

.portfolio-item {
  padding: 15px;
  width: 50%;
  /* 2 column desktop */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 768px) {
  .portfolio-item {
    width: 100%;
  }
}

.portfolio-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--darker-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.portfolio-img-container {
  position: relative;
  padding-top: 70%;
  /* Aspect ratio 10:7 approx */
  overflow: hidden;
}

.portfolio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
  /* Subtle zoom */
}

/* Overlay Styling */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.2) 50%,
    transparent
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 1;
  /* Always visible gradient for text readability, or adjust opacity */
  transition: background 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.4) 60%,
    transparent
  );
}

.portfolio-content {
  transform: translateY(10px);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-cat {
  color: var(--primary-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.portfolio-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.portfolio-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured Project Section */
.featured-project {
  position: relative;
  padding: 4rem;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: 2rem;
}

.featured-content {
  position: relative;
  z-index: 2;
}

.featured-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* View Case Study Button for Card */
.btn-link-card {
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}

.portfolio-card:hover .btn-link-card {
  opacity: 1;
  transform: translateY(0);
}

.btn-link-card:hover {
  color: var(--primary-accent);
}

/* Services Page Process Section */
.process-card {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.process-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.process-card:hover .process-number {
  color: rgba(26, 201, 255, 0.1);
}

.process-icon {
  position: relative;
  z-index: 2;
}

/* === HORIZONTAL SCROLL PROJECTS (NEW) === */
.horizontal-scroll-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.horizontal-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding-bottom: 2rem;
  /* Space for scrollbar/shadow */
  padding-right: 2rem;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  /* Hide scrollbar visually but keep functionality */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .horizontal-scroll-wrapper {
    gap: 1rem;
    padding-left: 1rem !important;
  }

  .scroll-card {
    flex: 0 0 85vw;
    /* Native mobile feel */
  }
}

/* Project Card Item (Standardized) */
.project-card-item {
  background: rgba(20, 30, 40, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
  border-radius: var(--radius-md);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.project-card-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(20, 30, 40, 0.6);
}

.project-logo {
  background: #fff;
  /* Ensure icon visibility */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 2px;
}

/* Filter Tabs (Consolidated in Tab Unification) */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Grid Column Animation */
.project-item-col {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === HERO MINIMAL FIXES === */
.hero-minimal {
  padding-top: 180px; /* Ensure clearance for fixed navbar */
  padding-bottom: 80px;
  min-height: 400px;
}

/* === SCROLL CONTROLS === */
.scroll-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scroll-nav-btn:hover {
  background: var(--primary-accent);
  color: white; /* Keep white on hover */
  box-shadow: 0 0 15px rgba(26, 201, 255, 0.4);
  transform: scale(1.1);
  border-color: transparent;
}

.scroll-nav-btn:active {
  transform: scale(0.95);
}

@media (max-width: 991px) {
  .hero-minimal {
    padding-top: 140px;
  }
}

/* === TAB UNIFICATION (Minimal Redesign) === */
.portfolio-tabs {
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 0;
  display: inline-flex;
  gap: 1rem; /* Clean spacing */
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6); /* Inactive text */
  padding: 8px 22px;
  border-radius: 50px; /* Pill shape */
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: #fff;
  background: transparent;
}

.filter-btn.active {
  color: #fff; /* Slightly brighter text */
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2); /* Soft outline */
  box-shadow: none; /* No glow */
}

/* Remove conflicting styles if any */
.filter-btn:focus {
  box-shadow: none;
}

/* ===== PREMIUM FOOTER STYLES ===== */
.footer-premium {
  background-color: #050e16; /* Dark base match */
  padding-top: 80px;
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

/* Brand Section */
.footer-brand-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

/* Social Icons */
.social-links-container {
  display: flex;
  gap: 12px;
}

.social-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-box:hover {
  background: rgba(26, 201, 255, 0.1);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(26, 201, 255, 0.3);
}

/* Footer Links */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-item {
  margin-bottom: 0.8rem;
}

.footer-link-item a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link-item a:hover {
  color: var(--primary-accent);
  transform: translateX(4px);
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  color: #fff;
}

.contact-item i {
  color: var(--primary-accent);
  font-size: 1.1rem;
  margin-top: 3px;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  text-shadow: 0 0 10px rgba(26, 201, 255, 0.4);
}

.contact-item a {
  color: inherit;
}

/* Bottom Bar */
.footer-bottom-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  margin: 3rem 0 1.5rem 0;
}

.copyright-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-left: 20px;
  transition: 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--primary-accent);
}

/* Responsive */
@media (max-width: 991px) {
  .footer-premium {
    text-align: left;
  }
  .footer-widget-title {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .footer-premium {
    text-align: left;
  }
  .footer-brand-desc {
    margin: 0 0 1.5rem 0;
  }
  .social-links-container {
    justify-content: flex-start;
    margin-bottom: 2rem;
  }
  .contact-item {
    justify-content: flex-start;
  }
  .footer-logo {
    margin-bottom: 1rem;
    display: block;
  }
  /* Keep Copyright Centered */
  .footer-bottom-divider + .row {
    text-align: center;
  }
  .footer-bottom-links {
    margin-top: 1rem;
    justify-content: center;
    display: flex;
  }
  .footer-bottom-links a {
    margin: 0 10px;
  }
  .copyright-text {
    text-align: center;
    display: block;
  }
}

/* Custom Mobile Toggler */
.navbar-toggler {
  border: 2px solid #119bdd !important;
  color: #119bdd !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 5px 10px !important;
  border-radius: 8px;
}

.navbar-toggler i {
  font-size: 1.5rem;
  color: #119bdd !important;
  transition: transform 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 10px rgba(17, 155, 221, 0.3) !important;
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto !important;
    padding-top: 140px !important;
    padding-bottom: 60px !important;
  }

  .hero-about-min-height {
    min-height: auto !important;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .navbar-brand img {
    height: 30px;
  }

  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}
