.section {
  padding: 6rem 0;
}
.section-title {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.bg-alt {
  background-color: var(--bg-surface);
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}
.text-center {
  text-align: center;
}
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  position: relative;
  padding: 2rem;
}
.tech-box {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.1) 0%,
    transparent 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tech-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    rgba(14, 165, 233, 0.05) 3px,
    rgba(14, 165, 233, 0.05) 5px
  );
  z-index: 1;
}
.fingerprint-icon {
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.8;
  z-index: 2;
  animation: scan 4s ease-in-out infinite alternate;
}
@keyframes scan {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.2));
  }
  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.8));
  }
}
.feature-list {
  margin: 2rem 0;
}
.feature-list li {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
.feature-list li i {
  color: var(--primary);
  font-size: 1.25rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(var(--primary-rgb), 0.08),
    transparent 70%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.3);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.learn-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.learn-more i {
  transition: transform 0.2s ease;
}
.learn-more:hover i {
  transform: translateX(5px);
}
.stats-section {
  background: linear-gradient(
    to right,
    var(--bg-surface),
    rgba(14, 165, 233, 0.05)
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat-box {
  min-width: 200px;
}
.stat-number {
  font-size: 4rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.stat-box p {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}
.cta-section {
  background-color: var(--bg-surface);
}
.container-sm {
  max-width: 800px;
  margin: 0 auto;
}
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-slide-left {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}
.reveal-slide-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-slide-right {
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}
.reveal-slide-right.active {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .about-content .section-title::after {
    left: 0;
    transform: none;
  }
  .feature-list li {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 3rem;
  }
}
.about-container .reveal-slide-right > div {
  text-align: left;
}
.clients-section {
  background: #030712;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}
:root:not(.dark) .clients-section {
  background: #f8fafc;
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}
.clients-section .section-header h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
:root:not(.dark) .clients-section .section-header h2 {
  color: var(--text);
}
.clients-section .section-header p {
  color: rgba(156, 163, 175, 0.8);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
:root:not(.dark) .clients-section .section-header p {
  color: var(--text-muted);
}
.clients-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
  z-index: 1;
}
.clients-fade {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.clients-fade--left {
  left: 0;
  width: 120px;
  background: linear-gradient(90deg, #030712 0%, transparent 100%);
}
.clients-fade--right {
  right: 0;
  width: 320px;
  background: linear-gradient(
    270deg,
    #030712 0%,
    rgba(3, 7, 18, 0.9) 30%,
    transparent 100%
  );
}
:root:not(.dark) .clients-fade--left {
  background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}
:root:not(.dark) .clients-fade--right {
  background: linear-gradient(
    270deg,
    #f8fafc 0%,
    rgba(248, 250, 252, 0.9) 30%,
    transparent 100%
  );
}
.clients-marquee-track {
  display: flex;
  width: max-content;
  animation: clients-marquee-scroll 35s linear infinite;
  will-change: transform;
}
.clients-marquee-wrapper:hover .clients-marquee-track {
  animation-play-state: paused;
}
@keyframes clients-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.clients-marquee-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.25rem;
  flex-shrink: 0;
}
.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}
.client-logo-card__img-wrap {
  width: 140px;
  height: 70px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.client-logo-card__img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.95;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.client-logo-card:hover .client-logo-card__img-wrap {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.client-logo-card:hover .client-logo-card__img-wrap img {
  opacity: 1;
}
@media (max-width: 768px) {
  .clients-section {
    padding: 3rem 0;
  }
  .client-logo-card__img-wrap {
    width: 110px;
    height: 55px;
    padding: 8px 12px;
    border-radius: 6px;
  }
  .clients-marquee-inner {
    gap: 1.5rem;
  }
  .clients-fade--left {
    width: 60px;
  }
  .clients-fade--right {
    width: 160px;
  }
  .clients-marquee-track {
    animation-duration: 28s;
  }
  .social-links {
    justify-content: center;
    gap: 8px;
  }
  .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition:
      transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
      background 0.25s ease,
      box-shadow 0.25s ease;
  }
  .footer-location {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
  }
  .footer-container {
    padding: 24px 16px 0 !important;
  }
}
@media (max-width: 480px) {
  .clients-section {
    padding: 3rem 0 2.5rem;
  }
  .client-logo-card__img-wrap {
    width: 110px;
    height: 55px;
    padding: 8px 12px;
    border-radius: 10px;
  }
  .clients-marquee-inner {
    gap: 1.5rem;
  }
  .clients-fade--left {
    width: 40px;
  }
  .clients-fade--right {
    width: 110px;
  }
  .clients-marquee-track {
    animation-duration: 22s;
  }
  .clients-section .section-header h2 {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track {
    animation: none;
  }
}
.video-sound-wrapper {
  position: absolute;
  bottom: calc(1% + 20px);
  right: 20px;
  z-index: 10;
}
.sound-toggle-btn {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  outline: none;
}
.sound-toggle-btn:hover {
  background: rgba(14, 165, 233, 0.8);
  border-color: rgba(14, 165, 233, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}
.sound-toggle-btn--on {
  background: rgba(14, 165, 233, 0.6);
  border-color: rgba(14, 165, 233, 0.8);
}
.sound-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 1.1rem;
}
.sound-toggle-btn.ripple {
  animation: sound-ripple 0.4s ease-out;
}
@keyframes sound-ripple {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .video-sound-wrapper {
    bottom: calc(10% + 15px);
    right: 15px;
  }
  .sound-toggle-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}
.about-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-image:hover .about-img {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(var(--primary-rgb), 0.3);
}

/* ===== Intro Video Overlay ===== */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1.8s ease-in-out;
  background: #000;
}

#intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  backdrop-filter: blur(0px);
  z-index: 0;
}

#intro-video-wrap {
  position: relative;
  z-index: 1;
  width: calc(100vw - 144px);
  height: calc(100vh - 144px);
  max-width: 1600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(14, 165, 233, 0.15);
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

#intro-video.is-playing {
  opacity: 1;
}

html.intro-active,
html.intro-active body {
  overflow: hidden !important;
  height: 100vh !important;
}

@media (max-width: 1024px) {
  #intro-video-wrap {
    width: calc(100vw - 80px);
    height: calc(100vh - 80px);
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  #intro-video-wrap {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    border-radius: 10px;
  }

  #intro-video {
    object-fit: contain;
    background: #000;
  }
}

@media (max-width: 380px) {
  #intro-video-wrap {
    width: calc(100vw - 20px);
    height: calc(100vh - 80px);
    border-radius: 8px;
  }
}

/* Hide all UI elements during intro video playback */
html.intro-active .header,
html.intro-active .side-social-share,
html.intro-active #side-social-share,
html.intro-active .chatbot-widget,
html.intro-active .scroll-to-top,
html.intro-active #scrollToTop,
html.intro-active footer,
html.intro-active .mobile-menu-backdrop,
html.intro-active .mobile-menu-panel,
html.intro-active .popup-consultation-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Cyber Graphic Hero Styles */
.hero-content h1 {
  color: var(--text) !important;
  background: linear-gradient(
    135deg,
    var(--text) 0%,
    var(--primary) 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.cyber-graphic-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  position: relative;
}
.cyber-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.1));
}
.dark .cyber-svg {
  filter: drop-shadow(0 20px 45px rgba(var(--primary-rgb), 0.15));
}

/* Hexagonal Cyber Matrix Styles */
.cyber-hex {
  fill: none;
  stroke-width: 1.5;
  transform-origin: 250px 260px;
}
.cyber-hex-outer {
  stroke: var(--border);
  stroke-dasharray: 20 12;
  opacity: 0.35;
  animation: rotate-cw 35s linear infinite;
}
.cyber-hex-mid {
  stroke: var(--primary);
  stroke-dasharray: 35 15;
  opacity: 0.55;
  animation: rotate-ccw 22s linear infinite;
}
.cyber-hex-inner {
  stroke: #818cf8;
  stroke-dasharray: 8 8;
  opacity: 0.75;
  animation: rotate-cw 12s linear infinite;
}
@keyframes rotate-cw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes rotate-ccw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* Radar Waves */
.cyber-radar-scan {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1;
  transform-origin: 250px 260px;
  animation: radar-pulse 4.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
@keyframes radar-pulse {
  0% {
    transform: scale(0.15);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* Spokes and Flows */
.spoke-line {
  stroke: var(--border);
  stroke-width: 1.5;
  opacity: 0.45;
}
.spoke-flow {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 6 18;
  animation: spoke-dash 10s linear infinite;
}
@keyframes spoke-dash {
  to {
    stroke-dashoffset: -240;
  }
}

/* Node Core and Rings */
.node-core {
  fill: var(--primary);
  animation: pulse-node-core 3s infinite alternate;
}
@keyframes pulse-node-core {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.node-ring {
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-opacity: 0.3;
  transform-origin: center;
}

/* Floating Badges */
.cyber-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  z-index: 5;
  transition: all 0.3s ease;
}
.cyber-badge i {
  font-size: 1rem;
}
.cyber-badge-1 {
  top: -2%;
  left: 35%;
  animation: float-y 5s ease-in-out infinite;
  border-top: 3px solid #10b981;
}
.cyber-badge-1 i {
  color: #10b981;
}

.cyber-badge-2 {
  top: 28%;
  right: 0%;
  animation: float-y 6s ease-in-out infinite 0.5s;
  border-top: 3px solid var(--primary);
}
.cyber-badge-2 i {
  color: var(--primary);
}

.cyber-badge-3 {
  bottom: 25%;
  right: 0%;
  animation: float-y 5.5s ease-in-out infinite 1s;
  border-top: 3px solid #f59e0b;
}
.cyber-badge-3 i {
  color: #f59e0b;
}

.cyber-badge-4 {
  bottom: -2%;
  left: 35%;
  animation: float-y 5.2s ease-in-out infinite 1.5s;
  border-top: 3px solid #3b82f6;
}
.cyber-badge-4 i {
  color: #3b82f6;
}

.cyber-badge-5 {
  bottom: 25%;
  left: 0%;
  animation: float-y 5.8s ease-in-out infinite 2s;
  border-top: 3px solid #8b5cf6;
}
.cyber-badge-5 i {
  color: #8b5cf6;
}

.cyber-badge-6 {
  top: 28%;
  left: 0%;
  animation: float-y 5.6s ease-in-out infinite 2.5s;
  border-top: 3px solid #ec4899;
}
.cyber-badge-6 i {
  color: #ec4899;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.cyber-badge:hover {
  transform: translateY(-14px) scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
@media (max-width: 992px) {
  .cyber-graphic-container {
    margin: 0 auto;
  }
}

/* ─── Premium Custom Portfolio Card Design (Apple / Dribbble Showcase Style) ─── */
.custom-portfolio-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 32px; /* 32px corners exactly */
  overflow: hidden;
  background: #05080f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px -15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.custom-portfolio-card:hover {
  transform: scale(1.03); /* Scale 1.03 */
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Background Image Cover */
.custom-portfolio-card .card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-portfolio-card:hover .card-bg-img {
  transform: scale(1.05); /* Zoom 1.05 */
}

/* Category-based Dominant Color Gradient Overlay */
.custom-portfolio-card .card-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    var(--card-color) 0%,
    rgba(3, 7, 18, 0.75) 40%,
    transparent 90%
  );
  opacity: 0.7; /* Opacity Maximum 70% */
  transition: opacity 300ms ease;
  pointer-events: none;
}

.custom-portfolio-card:hover .card-gradient-overlay {
  opacity: 0.8; /* Gradient slightly richer on hover */
}

/* Content positioned directly on the gradient (no card rectangle) */
.custom-portfolio-card .card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 28px 28px 32px; /* Padding: Left 28-32px, Bottom 28-32px */
  z-index: 3;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: left;
  height: 250px; /* Fixed content area height */
}

/* Typography elements */
.custom-portfolio-card .card-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff; /* Always white inside overlay */
  margin: 0;
  letter-spacing: -0.02em;
  height: 70px; /* Fixed height for 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: balance; /* Automatic text-wrap balancing */
}

.custom-portfolio-card .card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85); /* Description soft white 85% opacity */
  margin: 0;
  height: 72px; /* Fixed height for 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Premium Outlined Pill/Glass Button */
.custom-portfolio-card .card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 150px; /* Around 150px x 48px */
  height: 48px;
  border-radius: 14px; /* 12-16px radius */
  background: rgba(255, 255, 255, 0.08); /* Very light transparent background */
  border: 1px solid rgba(255, 255, 255, 0.25); /* Thin white border */
  color: #ffffff;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px); /* Small backdrop blur */
  -webkit-backdrop-filter: blur(8px);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto; /* Push button to the very bottom */
  cursor: pointer;
  box-sizing: border-box;
}

.custom-portfolio-card .card-btn i {
  font-size: 0.85rem;
  transition: transform 300ms ease;
}

.custom-portfolio-card .card-btn:hover {
  background: rgba(255, 255, 255, 0.16); /* Brightens slightly */
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-4px); /* Lift 4px */
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25); /* Soft glow */
}

.custom-portfolio-card .card-btn:hover i {
  transform: translateX(4px);
}

/* Responsive constraints to keep title and description consistent */
@media (max-width: 992px) {
  .custom-portfolio-card .card-info {
    height: 220px; /* smaller content area */
  }
  .custom-portfolio-card .card-desc {
    height: 48px; /* 2 lines for description */
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* ─── Premium Glass Services Cards (Frosted Glassmorphism Style) ─── */
.service-card,
.service-page-card {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(168, 85, 247, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(6, 182, 212, 0.12) 0%,
      transparent 50%
    ),
    rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 28px !important; /* Premium rounded corner shape matching reference */
  padding: 2.75rem 2.25rem 2.25rem 2.25rem !important; /* Spacing */
  box-shadow:
    inset 0 20px 20px -20px rgba(255, 255, 255, 0.15),
    0 12px 40px -15px rgba(0, 0, 0, 0.5) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  justify-content: flex-start !important;
  position: relative !important;
  overflow: hidden !important;
  transition:
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 350ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 350ms cubic-bezier(0.16, 1, 0.3, 1),
    background 350ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
}

/* Remove default overlay decorations that clash */
.service-card::before,
.service-card::after,
.service-page-card::before,
.service-page-card::after {
  display: none !important;
}

/* Hover effects */
.service-card:hover,
.service-page-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(168, 85, 247, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(6, 182, 212, 0.22) 0%,
      transparent 60%
    ),
    rgba(255, 255, 255, 0.05) !important;
  box-shadow:
    inset 0 20px 20px -20px rgba(255, 255, 255, 0.25),
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(6, 182, 212, 0.15) !important;
}

/* Icon Wrap */
.service-icon,
.card-icon-wrap {
  font-size: 2.5rem !important;
  color: #ffffff !important; /* White icon matching reference image look */
  margin-bottom: 1.5rem !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: auto !important;
}

/* Title Area */
.service-card h3,
.service-page-card h3 {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.01em !important;
  height: 54px !important; /* Fixed height for title area (2 lines) */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-wrap: balance !important;
}

/* Description Area */
.service-card p,
.service-page-card p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.8) !important; /* soft white description */
  margin: 0 0 1.75rem 0 !important;
  height: 72px !important; /* Fixed height for description area (3 lines) */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex-grow: 0 !important;
}

/* Action Glass Button */
.service-card .learn-more,
.service-page-card .learn-more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: fit-content !important; /* dynamic premium width */
  min-width: 160px !important;
  height: 48px !important;
  padding: 0 24px !important; /* pill padding */
  white-space: nowrap !important; /* prevent wrapping */
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 0.925rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-top: auto !important; /* Push button to the bottom of the card */
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.service-card .learn-more i,
.service-page-card .learn-more i {
  font-size: 0.85rem !important;
  transition: transform 300ms ease !important;
}

.service-card .learn-more:hover,
.service-page-card .learn-more:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25) !important;
}

.service-card .learn-more:hover i,
.service-page-card .learn-more:hover i {
  transform: translateX(4px) !important;
}

/* Responsive height adjustment */
@media (max-width: 992px) {
  .service-card p,
  .service-page-card p {
    height: 48px !important; /* 2 lines for description */
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }
}

/* ─── Light Theme Overrides for Premium Glass Services Cards ─── */
:root:not(.dark) .service-card,
:root:not(.dark) .service-page-card {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(168, 85, 247, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 50%
    ),
    rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(30, 58, 138, 0.12) !important;
  box-shadow:
    inset 0 20px 20px -20px rgba(255, 255, 255, 0.6),
    0 12px 40px -15px rgba(30, 58, 138, 0.08) !important;
}

:root:not(.dark) .service-card:hover,
:root:not(.dark) .service-page-card:hover {
  border-color: rgba(30, 58, 138, 0.25) !important;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(168, 85, 247, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(6, 182, 212, 0.08) 0%,
      transparent 60%
    ),
    rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    inset 0 20px 20px -20px rgba(255, 255, 255, 0.8),
    0 20px 45px rgba(30, 58, 138, 0.15) !important;
}

/* Icon (gradient color of the logo's scheme) */
:root:not(.dark) .service-icon,
:root:not(.dark) .card-icon-wrap {
  color: #0284c7 !important; /* Sky blue / logo color */
  text-shadow: 0 0 15px rgba(2, 132, 199, 0.2) !important;
}

/* Title (gradient of the logo's color) */
:root:not(.dark) .service-card h3,
:root:not(.dark) .service-page-card h3 {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Description (clearly readable dark slate) */
:root:not(.dark) .service-card p,
:root:not(.dark) .service-page-card p {
  color: #334155 !important;
}

/* Button (matching glass layout, but colored for light background readability) */
:root:not(.dark) .service-card .learn-more,
:root:not(.dark) .service-page-card .learn-more {
  background: rgba(2, 132, 199, 0.06) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  color: #1e3a8a !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08) !important;
  width: fit-content !important;
  min-width: 160px !important;
  padding: 0 24px !important;
  white-space: nowrap !important;
}

:root:not(.dark) .service-card .learn-more:hover,
:root:not(.dark) .service-page-card .learn-more:hover {
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: rgba(2, 132, 199, 0.45) !important;
  color: #1d4ed8 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18) !important;
}

/* ==========================================================================
   Full Viewport Video Hero Section (Exact GIAR Matching Design)
   ========================================================================== */
.giar-hero-section {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
  min-height: 600px !important;
  margin-top: calc(-1 * var(--header-height, 80px)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
  color: #ffffff !important;
  background-color: #05080f !important;
  padding: var(--header-height, 80px) 1.5rem 2rem !important;
  box-sizing: border-box !important;
}

.giar-hero-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.giar-hero-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.05) !important;
  background-image: radial-gradient(circle at center, transparent 0%, rgba(5, 8, 15, 0.25) 100%) !important;
  z-index: 2 !important;
}

.giar-hero-content {
  position: relative !important;
  z-index: 3 !important;
  max-width: 1050px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 0 1rem !important;
  animation: giarFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes giarFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.giar-hero-title {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(2.5rem, 6vw, 4.65rem) !important;
  line-height: 1.12 !important;
  margin-bottom: 1.5rem !important;
  color: #ffffff !important;
  letter-spacing: -0.03em !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85) !important;
}

.giar-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.45rem) !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: 860px !important;
  margin: 0 auto 3rem !important;
  line-height: 1.6 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75) !important;
}

.giar-hero-btn-group {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
  flex-wrap: wrap !important;
}

.giar-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.1rem 2.75rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: var(--primary, #0ea5e9) !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.giar-btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.65) !important;
  color: #ffffff !important;
}

.giar-btn-glass {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.1rem 2.25rem !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.giar-btn-glass:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  transform: translateY(-3px) !important;
  color: #ffffff !important;
}

.giar-hero-mute-btn {
  position: absolute !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 10 !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease !important;
}

.giar-hero-mute-btn:hover {
  background: rgba(14, 165, 233, 0.5) !important;
  border-color: #38bdf8 !important;
  transform: scale(1.1) !important;
}

.giar-scroll-arrow {
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 1.4rem !important;
  text-decoration: none !important;
  animation: giarBounce 2s infinite !important;
  transition: color 0.2s ease !important;
}

.giar-scroll-arrow:hover {
  color: #38bdf8 !important;
}

@keyframes giarBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(8px) translateX(-50%); }
  60% { transform: translateY(4px) translateX(-50%); }
}

.hero.hero-secondary {
  padding-top: 5rem !important;
  border-top: 1px solid var(--border) !important;
  background-color: var(--bg) !important;
}

@media (max-width: 768px) {
  .giar-hero-section {
    min-height: 540px !important;
    padding: var(--header-height, 70px) 1rem 2rem !important;
  }
  .giar-hero-btn-group {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 340px !important;
    gap: 0.85rem !important;
  }
  .giar-btn-primary,
  .giar-btn-glass {
    width: 100% !important;
    padding: 0.95rem 1.5rem !important;
  }
  .giar-hero-subtitle {
    margin-bottom: 2rem !important;
  }
  .giar-hero-mute-btn {
    bottom: 15px !important;
    right: 15px !important;
    width: 38px !important;
    height: 38px !important;
  }
}

