/*-----------------------------------*\
#CUSTOM PROPERTY
\*-----------------------------------*/
:root {
  --gold-crayola: hsl(30, 100%, 50%);
  --blue-hero-color:blue;
  --quick-silver: hsl(0, 0%, 40%);
  --davys-grey: hsl(0, 0%, 60%);
  --header-bg: hsl(0, 0%, 100%);
  --hero-bg: hsl(0, 0%, 100%);
  --service-bg: hsl(0, 0%, 100%);
  --about-bg: hsl(0, 0%, 100%);
  --features-bg: hsl(0, 0%, 100%);
  --event-bg: hsl(0, 0%, 100%);
  --footer-bg: hsl(0, 0%, 100%);
  --text-primary: hsl(0, 0%, 15%);
  --text-secondary: hsl(0, 0%, 40%);
  --text-accent: hsl(30, 100%, 50%);
  --hover-primary: hsl(30, 100%, 45%);
  --hover-secondary: hsl(0, 0%, 30%);
  --smoky-black-1: hsla(0, 0%, 95%, 1);
  --smoky-black-2: hsla(0, 0%, 90%, 1);
  --smoky-black-3: hsla(0, 0%, 85%, 1);
  --eerie-black-1: hsla(0, 0%, 100%, 1);
  --eerie-black-2: hsla(0, 0%, 97%, 1);
  --eerie-black-3: hsla(0, 0%, 94%, 1);
  --eerie-black-4: hsla(0, 0%, 91%, 1);
  --loading-text-gradient: linear-gradient(90deg, transparent 0% 16.66%, var(--smoky-black-3) 33.33% 50%, transparent 66.66% 75%);
  --gradient-1: linear-gradient(to top, hsla(0,0%,100%,0.9), hsla(0,0%,100%,0.7), transparent);
  --fontFamily-forum: 'Cairo', 'Roboto', sans-serif;
  --fontSize-display-1: calc(1.3rem + 6.7vw);
  --fontSize-headline-1: calc(1.5rem + 3vw);
  --fontSize-headline-2: calc(1.3rem + 2.4vw);
  --fontSize-title-1: calc(1.4rem + 1.5vw);
  --fontSize-title-2: calc(1.2rem + 1.2vw);
  --fontSize-title-3: calc(1.1rem + 1vw);
  --fontSize-title-4: calc(1rem + 1vw);
  --fontSize-body-1: calc(1.2rem + 1.5vw);
  --fontSize-body-2: calc(1rem + 0.8vw);
  --fontSize-body-3: calc(1rem + 1vw);
  --fontSize-body-4: calc(0.9rem + 0.6vw);
  --fontSize-label-1: calc(0.9rem + 0.4vw);
  --fontSize-label-2: calc(0.8rem + 0.3vw);
  --weight-regular: 400;
  --weight-bold: 700;
  --lineHeight-1: 1em;
  --lineHeight-2: 1.2em;
  --lineHeight-3: 1.5em;
  --lineHeight-4: 1.6em;
  --lineHeight-5: 1.85em;
  --lineHeight-6: 1.4em;
  --letterSpacing-1: 0.15em;
  --letterSpacing-2: 0.4em;
  --letterSpacing-3: 0.2em;
  --letterSpacing-4: 0.3em;
  --letterSpacing-5: 3px;
  --section-space: 70px;
  --shadow-1: 0px 0px 25px 0px hsla(0, 0%, 0%, 0.05);
  --radius-24: 24px;
  --radius-circle: 50%;
  --transition-1: 250ms ease;
  --transition-2: 500ms ease;
  --transition-3: 1000ms ease;
}

/*-----------------------------------*
#RESET
*-----------------------------------*/
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a, img, data, span, input, button, select, ion-icon, textarea {
  display: block;
}

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

img {
  height: auto;
  max-width: 100%;
}

input, button, select, textarea {
  background: none;
  border: none;
  font: inherit;
}

input, select, textarea {
  width: 100%;
  outline: none;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
  font-family: var(--fontFamily-forum);
}

body {
  background-color: var(--white);
  color: var(--text-primary);
  font-family: var(--fontFamily-forum);
  font-weight: var(--weight-regular);
  font-size: var(--fontSize-body-4);
  line-height: var(--lineHeight-5);
  overflow-x: hidden;
  overflow-y: hidden;
}

body.loaded {
  overflow-x: hidden;
  overflow-y: overlay;
}

body.nav-active {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--gold-crayola);
}

body {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-crayola) transparent;
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .navbar-list {
  flex-direction: row-reverse;
}

/*-----------------------------------*
#TYPOGRAPHY
*-----------------------------------*/
.display-1, .headline-1, .headline-2,
.title-1, .title-2, .title-3, .title-4 {
  color: var(--text-primary);
  font-family: var(--fontFamily-forum);
  font-weight: var(--weight-regular);
  line-height: var(--lineHeight-2);
}

.display-1 {
  font-size: var(--fontSize-display-1);
  line-height: var(--lineHeight-1);
}

.headline-1 {
  font-size: var(--fontSize-headline-1);
}

.headline-2 {
  font-size: var(--fontSize-headline-2);
  line-height: var(--lineHeight-6);
}

.title-1 {
  font-size: var(--fontSize-title-1);
}

.title-2 {
  font-size: var(--fontSize-title-2);
}

.title-3 {
  font-size: var(--fontSize-title-3);
}

.title-4 {
  font-size: var(--fontSize-title-4);
}

.body-1 {
  font-size: var(--fontSize-body-1);
  line-height: var(--lineHeight-6);
}

.body-2 {
  font-size: var(--fontSize-body-2);
  line-height: var(--lineHeight-4);
}

.body-3 {
  font-size: var(--fontSize-body-3);
}

.label-1 {
  font-size: var(--fontSize-label-1);
}

.label-2 {
  font-size: var(--fontSize-label-2);
}

/*-----------------------------------*
#REUSED STYLE
*-----------------------------------*/
.container {
  padding-inline: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.seperator {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-crayola);
  transform: rotate(45deg);
}

.contact-label {
  font-weight: var(--weight-bold);
}

.contact-number {
  color: var(--text-accent);
  max-width: max-content;
  margin-inline: auto;
}

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

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-subtitle {
  position: relative;
  color: var(--text-accent);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-2);
  margin-block-end: 12px;
}

.section-subtitle::after {
  content: "";
  display: block;
  width: 100px;
  height: 15px;
  margin-inline: auto;
  margin-block-start: 5px;
  background-color: var(--text-primary);
  mask: url("../images/separator.svg") no-repeat center / contain;
  -webkit-mask: url("../images/separator.svg") no-repeat center / contain;
}

.btn {
  position: relative;
  color: var(--text-accent);
  font-size: var(--fontSize-label-2);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-5);
  max-width: max-content;
  border: 2px solid var(--text-accent);
  padding: 12px 45px;
  overflow: hidden;
  z-index: 1;
  border-radius: var(--radius-24);
}

.btn::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  border-radius: var(--radius-circle);
  background-color: var(--text-accent);
  transition: var(--transition-2);
  z-index: -1;
}

.btn .text {
  transition: var(--transition-1);
}

.btn .text-2 {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: max-content;
  color: var(--smoky-black-1);
}

.btn:is(:hover, :focus-visible)::before {
  bottom: -50%;
}

.btn:is(:hover, :focus-visible) .text-1 {
  transform: translateY(-40px);
}

.btn:is(:hover, :focus-visible) .text-2 {
  top: 50%;
  transform: translate(-50%, -50%);
}


.has-before, .has-after {
  position: relative;
  z-index: 1;
}

.has-before::before, .has-after::after {
  content: "";
  position: absolute;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
  z-index: 1;
  background-color: var(--white);
}

.bg-black-10 {
  background-color: var(--smoky-black-2);
}

.grid-list {
  display: grid;
  gap: 40px;
}

.hover\:shine {
  position: relative;
}

.hover\:shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: linear-gradient(to right, transparent 0%, #fff6 100%);
  transform: skewX(-0.08turn) translateX(-180%);
}

.hover\:shine:is(:hover, :focus-within)::after {
  transform: skewX(-0.08turn) translateX(275%);
  transition: var(--transition-3);
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  overflow: hidden;
  background-color: var(--eerie-black-4);
}

.btn-text {
  color: var(--text-accent);
  padding-block-end: 4px;
  margin-inline: auto;
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-3);
  font-weight: var(--weight-bold);
  transition: var(--transition-1);
}

.btn-text:is(:hover, :focus-visible) {
  color: var(--hover-primary);
}

.w-100 {
  width: 100%;
}

.move-anim {
  animation: move 5s linear infinite;
}

@keyframes move {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.input-field {
  background-color: var(--eerie-black-2);
  color: var(--text-primary);
  height: 56px;
  padding: 10px 20px;
  border: 1px solid var(--text-secondary);
  margin-block-end: 20px;
  outline: none;
  transition: border-color var(--transition-2);
}

.input-field::placeholder {
  color: var(--text-secondary);
}

.input-field:focus {
  border-color: var(--text-accent);
}

.icon-wrapper {
  position: relative;
  margin-block-end: 20px;
}

.icon-wrapper .input-field {
  margin-block-end: 0;
  padding-inline-start: 40px;
  appearance: none;
  cursor: pointer;
}

.icon-wrapper ion-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  --ionicon-stroke-width: 50px;
  pointer-events: none;
}

.icon-wrapper ion-icon:first-child {
  left: 15px;
}

.icon-wrapper ion-icon:last-child {
  right: 10px;
}

/*-----------------------------------*
#PRELOAD
*-----------------------------------*/
.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gold-crayola);
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  transition: var(--transition-2);
  display: none;
}

.preload > * {
  transition: var(--transition-1);
}

.preload.loaded > * {
  opacity: 0;
}

.preload.loaded {
  transition-delay: 250ms;
  transform: translateY(100%);
}

.circle {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-circle);
  border: 3px solid var(--white);
  border-block-start-color: var(--smoky-black-3);
  margin-block-end: 45px;
  animation: rotate360 1s linear infinite;
}

@keyframes rotate360 {
  0% { transform: rotate(0); }
  100% { transform: rotate(1turn); }
}

.preload .text {
  background-image: var(--loading-text-gradient);
  background-size: 500%;
  font-size: calc(2rem + 3vw);
  font-weight: var(--weight-bold);
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 16px;
  padding-inline-start: 16px;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 0.5px var(--eerie-black-3);
  animation: loadingText linear 2s infinite;
}

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

/*-----------------------------------*
#TOPBAR
*-----------------------------------*/
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  transition: transform var(--transition-1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.topbar:has(~ .header.active) {
  transform: translateY(-100%);
}

.topbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-size: var(--fontSize-label-1);
  transition: color var(--transition-1);
  white-space: nowrap;
}

.topbar-item .icon {
  color: var(--text-accent);
  font-size: 1.2rem;
}

.topbar-item.link:hover {
  color: var(--hover-primary);
}

.topbar .separator {
  width: 1px;
  height: 16px;
  background-color: rgba(0, 0, 0, 0.1);
}
/* Add this to your existing CSS */
.topbar-item.link:hover .icon,
.topbar-item.link:hover .span {
  color: var(--hover-primary);
}

/* Make sure this rule exists for the hover state */
.topbar-item.link:hover {
  color: var(--hover-primary);
}
/*-----------------------------------*
#HEADER
*-----------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding-block: 30px;
  z-index: 1000; /* High z-index */
  transition: var(--transition-1);
}

.header.active {
  padding-block: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header.hide {
  transform: translateY(-100%);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 20px;
}

.logo img {
  width: 140px;
  height: auto;
  transition: all var(--transition-1);
}

.header.active .logo img {
  width: 120px;
  height: auto;
}

.navbar .logo img {
  width: 160px;
  height: auto;
  margin-inline: auto;
  margin-block-end: 40px;
}

.nav-open-btn {
  background: transparent;
  padding: 8px;
  z-index: 10;
}

.nav-open-btn .line {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  margin-block: 5px;
  transition: var(--transition-1);
}

.header.active .nav-open-btn .line {
  background-color: var(--text-primary);
}

/* FIXED NAVBAR STYLES */
.navbar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -360px;
  max-width: 360px;
  width: 100%;
  background-color: var(--header-bg);
  padding: 30px;
  overflow-y: auto;
  visibility: hidden;
  z-index: 1002; /* Higher than overlay */
  transition: var(--transition-2);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100vh;
}

.navbar::-webkit-scrollbar {
  display: none;
}

.navbar.active {
  visibility: visible;
  transform: translateX(360px);
}

.navbar .close-btn {
  color: var(--text-primary);
  border: 1px solid currentColor;
  padding: 4px;
  border-radius: var(--radius-circle);
  margin-inline-start: auto;
  margin-block: 30px 20px;
}

.navbar .close-btn ion-icon {
  --ionicon-stroke-width: 40px;
}

.navbar .close-btn:is(:hover, focus-visible) {
  color: var(--hover-primary);
}

.navbar .logo {
  max-width: max-content;
  margin-inline: auto;
  margin-block-end: 60px;
}

.navbar-list {
  border-block-end: 1px solid var(--text-secondary);
  margin-block-end: 100px;
}

.navbar-item {
  border-block-start: 1px solid var(--text-secondary);
}

.navbar-link {
  position: relative;
  font-size: var(--fontSize-label-2);
  text-transform: uppercase;
  padding-block: 10px;
  max-width: unset;
  color: var(--text-primary);
}

.navbar-link .span {
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible, .active) .span {
  color: var(--hover-primary);
}

.navbar-link .seperator {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible, .active) .seperator {
  opacity: 1;
}

.navbar-title {
  margin-block-end: 15px;
  color: var(--text-primary);
}

.navbar-text {
  margin-block: 10px;
  color: var(--text-primary);
}

.navbar .body-4 {
  color: var(--text-secondary);
}

.sidebar-link {
  transition: var(--transition-1);
  color: var(--text-primary);
}

.sidebar-link:is(:hover, :focus-visible) {
  color: var(--hover-primary);
}

.navbar .text-center .seperator {
  margin-block: 30px;
  margin-inline: auto;
}

.navbar .contact-label {
  margin-block-end: 10px;
  color: var(--text-primary);
}

.navbar::-webkit-scrollbar-thumb {
  background-color: var(--text-secondary);
}

/* FIXED OVERLAY SOLUTION */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1001; /* High z-index */
  width: 100vw;
  height: 100vh;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Ensure body doesn't scroll when overlay is active */
body.nav-active {
  overflow: hidden;
  height: 100vh;
}

/*-----------------------------------*
#HERO
*-----------------------------------*/
.hero .slider-btn {
  display: none;
}

.hero {
  position: relative;
  padding-block: 120px;
  min-height: 100vh;
  overflow: hidden;
  z-index: 1;
  background-image:url('../images/hero.png');
  background-size: cover;                
  background-position: center;    
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;     
}

.hero .slider-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  padding-block-start: 100px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-3);
  z-index: 1;
}

.hero .slider-item.active {
  opacity: 1;
  visibility: visible;
}

.hero .slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.15);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.hero .slider-item.active .slider-bg {
  animation: smoothScale 7s linear forwards;
}

@keyframes smoothScale {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero .section-subtitle::after {
  margin-block: 14px 20px;
}

.hero-text {
  margin-block: 10px 40px;
  color: var(--text-primary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.hero .btn {
  margin-inline: auto;
}

.hero-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 2;
  background-color: var(--text-accent);
  width: 110px;
  height: 110px;
  padding: 12px;
  transform: scale(0.6);
}

.hero-btn img {
  margin-inline: auto;
  margin-block-end: 6px;
}

.hero-btn .span {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-1);
  line-height: var(--lineHeight-3)
}

.hero-btn::after {
  inset: 0;
  border: 1px solid var(--text-accent);
  animation: rotate360 15s linear infinite;
}

.slider-reveal {
  transform: translateY(30px);
  opacity: 0;
}

.hero .slider-item.active .slider-reveal {
  animation: sliderReveal 1s ease forwards;
}

@keyframes sliderReveal {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero .slider-item.active .section-subtitle {
  animation-delay: 500ms;
}

.hero .slider-item.active .hero-title {
  animation-delay: 1000ms;
}

.hero .slider-item.active .hero-text {
  animation-delay: 1.5s;
}

.hero .slider-item.active .btn {
  animation-delay: 2s;
}

.hero .label-2 {
  font-size: calc(1.5rem + 0.3vw);
  color: var(--gold-crayola);
}

.hero .body-2 {
  font-size: calc(1.4rem + 0.8vw);
  color: var(--text-primary);
}


/*-----------------------------------*
#services
*-----------------------------------*/
.premium-digital-services-section {
  position: relative;
  background: var(--service-bg);
  color: var(--text-primary);
  padding: var(--section-space) 0;
  overflow: hidden;
}

.premium-digital-services-section::before {
  width: 100%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-crayola), hsl(210, 100%, 50%), hsl(200, 100%, 70%));
  z-index: 10;
}

.premium-digital-services-section .container {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header Container */
.premium-digital-services-section .header-container {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto 50px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.premium-digital-services-section .section-subtitle {
  font-size: var(--fontSize-label-1);
  font-weight: 700;
  color: var(--gold-crayola);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.premium-digital-services-section .section-subtitle::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 6px;
  background: hsl(210, 100%, 50%);
  bottom: -14px;
  left: 15%;
}

.premium-digital-services-section .section-title {
  font-size: var(--fontSize-title-1);
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(90deg, var(--gold-crayola), hsl(210, 100%, 50%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
}

.premium-digital-services-section .section-text {
  font-size: var(--fontSize-body-2);
  color: var(--davys-grey);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards Container */
.premium-digital-services-section .cards-container {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}

.premium-digital-services-section .carousel-3d-wrapper {
  width: 100%;
  perspective: 1800px;
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.premium-digital-services-section .carousel-3d {
  width: 100%;
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--transition-3);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(-500px) translateY(80px);
}

/* Viewport-based item sizing */
.premium-digital-services-section .carousel-item {
  width: 80vw;
  max-width: 600px;
  min-width: 280px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: var(--transition-2);
  opacity: 0.7;
  filter: brightness(0.9);
  z-index: 1;
  transform: translate(-50%, -50%);
}

.premium-digital-services-section .carousel-item.active {
  opacity: 1;
  filter: brightness(1);
  z-index: 10;
  transform: translate(-50%, -50%) scale(1.05);
}

/* Card with Viewport Constraints */
.premium-digital-services-section .flip-card {
  width: 100%;
  aspect-ratio: 1/1.3;
  max-height: 70vh;
  min-height: 30vh;
  perspective: 2000px;
  border-radius: var(--radius-24);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  position: relative;
  background: white; /* Changed to white */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Added subtle border */
}

.premium-digital-services-section .hover-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: hsl(210, 100%, 50%);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: var(--fontSize-label-2);
  font-weight: 700;
  z-index: 10;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.premium-digital-services-section .hover-indicator i {
  color: var(--gold-crayola);
  animation: premium-pulse 2s infinite;
}

.premium-digital-services-section .flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform var(--transition-2);
  transform-style: preserve-3d;
  border-radius: var(--radius-24);
}

.premium-digital-services-section .card-front, 
.premium-digital-services-section .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-24);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card Front */
.premium-digital-services-section .card-front {
  background: white; /* Changed to white */
}

.premium-digital-services-section .card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-2);
  filter: brightness(0.95);
}

.premium-digital-services-section .flip-card:hover .card-front img {
  transform: scale(1.05);
}

/* Card Back */
.premium-digital-services-section .card-back {
  background: white; /* Changed to white */
  transform: rotateY(180deg);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

/* Service Content */
.premium-digital-services-section .service-content {
  text-align: left;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  padding: 0 15px;
}

.premium-digital-services-section .service-content h3 {
  font-size: calc(1.2rem + 1vw);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary); /* Dark text for better contrast */
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.premium-digital-services-section .service-description {
  font-size: calc(0.9rem + 0.5vw);
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-primary); /* Dark text */
  text-align: center;
}

.premium-digital-services-section .service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
}

.premium-digital-services-section .service-list li {
  font-size: calc(0.8rem + 0.5vw);
  padding: 8px 0;
  color: var(--text-primary); /* Dark text */
  position: relative;
  font-weight: 400;
  padding-left: 25px;
  display: flex;
  align-items: flex-start;
}

.premium-digital-services-section .service-list li::before {
  content: "•";
  color: var(--text-primary); /* Dark bullet points */
  font-size: 1.5rem;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

/* Navigation Controls */
.premium-digital-services-section .buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 50px;
  position: relative;
  z-index: 20;
}

.premium-digital-services-section .carousel-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 20;
  width: 100%;
}

.premium-digital-services-section .nav-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  background: var(--eerie-black-1);
  border: 3px solid rgba(0, 0, 0, 0.05);
  color: hsl(210, 100%, 50%);
  font-size: var(--fontSize-title-4);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-1);
}

.premium-digital-services-section .nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--gold-crayola), hsl(210, 100%, 50%));
  z-index: -1;
  transform: scale(0);
  transition: var(--transition-1);
  border-radius: var(--radius-circle);
}

.premium-digital-services-section .nav-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 102, 204, 0.25);
  color: var(--text-primary);
}

.premium-digital-services-section .nav-btn:hover::before {
  transform: scale(1);
}

.premium-digital-services-section .auto-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  color: var(--davys-grey);
  font-size: var(--fontSize-label-1);
}

.premium-digital-services-section .toggle-switch {
  position: relative;
  display: inline-block;
  width: 65px;
  height: 38px;
}

.premium-digital-services-section .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.premium-digital-services-section .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--eerie-black-3);
  transition: var(--transition-1);
  border-radius: 38px;
}

.premium-digital-services-section .slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-primary);
  transition: var(--transition-1);
  border-radius: var(--radius-circle);
  box-shadow: var(--shadow-1);
}

.premium-digital-services-section input:checked + .slider {
  background: linear-gradient(45deg, var(--gold-crayola), hsl(210, 100%, 50%));
}

.premium-digital-services-section input:checked + .slider:before {
  transform: translateX(27px);
  background-color: var(--text-primary);
}

/* Decorative elements */
.premium-digital-services-section .decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.premium-digital-services-section .decoration.circle {
  width: 400px;
  height: 400px;
  border: 4px solid rgba(102, 204, 255, 0.15);
  border-radius: var(--radius-circle);
  top: -200px;
  right: -10%;
  opacity: 0.6;
}

.premium-digital-services-section .decoration.square {
  width: 350px;
  height: 350px;
  border: 4px solid rgba(255, 107, 0, 0.1);
  bottom: -175px;
  left: -10%;
  transform: rotate(45deg);
  opacity: 0.6;
}

.premium-digital-services-section .decoration.dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  opacity: 0.3;
}

/* Animation */
@keyframes premium-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/*-----------------------------------*
#ABOUT
*-----------------------------------*/
.mvp-section * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mvp-section {
  background: var(--about-bg);
  border-radius: var(--radius-24);
  padding: var(--section-space) 20px;
  box-shadow: var(--shadow-1);
  overflow: visible;
  margin-top: 20px;
}

.mvp-section .mvp-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.mvp-section .section-subtitle {
  font-size: var(--fontSize-label-1);
  letter-spacing: var(--letterSpacing-1);
  color: var(--text-accent);
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: var(--weight-bold);
}

.mvp-section .section-title {
  font-size: var(--fontSize-title-1);
  margin-bottom: 50px;
  color: var(--text-primary);
  line-height: var(--lineHeight-2);
}

.mvp-section .mvp-carousel-container {
  position: relative;
}

.mvp-section .circular-carousel {
  position: relative;
  height: 680px;
  perspective: 1800px;
  margin: 0 auto;
}

.mvp-section .carousel-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transition: transform var(--transition-2);
  transform: translate(-50%, -50%) translateZ(-500px);
}

.mvp-section .mvp-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 620px;
  background: var(--eerie-black-1);
  border-radius: var(--radius-24);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--smoky-black-2);
  transform: translate(-50%, -50%);
  opacity: 0.8;
  z-index: 1;
}

.mvp-section .mvp-card.active {
  opacity: 1;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transform: translate(-50%, -50%) rotateY(0deg) scale(1.05);
}

.mvp-section .mvp-innovation-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(90deg, var(--gold-crayola), #ff9a3d);
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: var(--fontSize-label-1);
  letter-spacing: var(--letterSpacing-1);
  text-transform: uppercase;
  z-index: 2;
}

.mvp-section .mvp-card-icon {
  font-size: var(--fontSize-title-1);
  color: var(--text-accent);
  background: var(--smoky-black-2);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  margin: 50px auto 15px;
  border: 2px solid var(--smoky-black-2);
}

.mvp-section .mvp-card-content {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 340px;
  margin-bottom: 10px;
}

.mvp-section .mvp-card-title {
  font-size: var(--fontSize-title-3);
  color: var(--text-accent);
  margin-bottom: 15px;
  font-weight: var(--weight-bold);
}

.mvp-section .mvp-card-text {
  font-size: var(--fontSize-body-4);
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: var(--lineHeight-5);
}

.mvp-section .mvp-card-footer {
  font-size: var(--fontSize-label-1);
  color: var(--text-accent);
  font-weight: var(--weight-bold);
  letter-spacing: var(--letterSpacing-1);
  padding-top: 15px;
  border-top: 1px solid var(--smoky-black-2);
}

.mvp-section .mvp-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.mvp-section .mvp-carousel-btn {
  background: var(--eerie-black-1);
  color: var(--text-accent);
  border: 2px solid var(--text-accent);
  border-radius: var(--radius-circle);
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: var(--fontSize-title-4);
  transition: var(--transition-1);
}

.mvp-section .mvp-carousel-btn:hover {
  background-color: var(--text-accent);
  color: var(--text-primary);
}

.mvp-section .mvp-carousel-dots {
  display: flex;
  gap: 15px;
}

.mvp-section .mvp-carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-circle);
  background: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-1);
}

.mvp-section .mvp-carousel-dot.active {
  background: var(--text-accent);
}

.mvp-section .mvp-auto-rotation-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: var(--fontSize-body-4);
  margin-top: 30px;
}

/*-----------------------------------*
#FEATURES (Brands Section)
*-----------------------------------*/
#OurClients {
  background: var(--features-bg);
  overflow: hidden;
  padding: 80px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

#OurClients .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
}

#OurClients .text-center {
  text-align: center;
}

/* Section Titles */
#OurClients .section-subtitle {
  display: inline-block;
  font-size: var(--fontSize-label-1);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-1);
  color: var(--text-accent);
  margin-bottom: 15px;
  position: relative;
}

#OurClients .section-subtitle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--text-accent);
  border-radius: 2px;
}

#OurClients .section-title {
  font-size: var(--fontSize-title-1);
  font-weight: var(--weight-bold);
  margin-bottom: 50px;
  color: var(--text-primary);
  position: relative;
}

#OurClients .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--text-accent);
  border-radius: 2px;
}

/* Brand Scroll Area */
#OurClients .brand-scroll-wrapper {
  overflow: hidden;
  position: relative;
  padding: 60px 0;
  width: 100%;
  height: 300px;
  margin: 0 auto 30px;
  box-sizing: border-box;
}

#OurClients .brand-scroll-wrapper::before,
#OurClients .brand-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

#OurClients .brand-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--features-bg) 30%, rgba(249, 249, 255, 0));
}

#OurClients .brand-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(90deg, rgba(249, 249, 255, 0), var(--features-bg) 70%);
}

#OurClients .brand-scroll-list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0 10px;
  will-change: transform;
  height: 100%;
  box-sizing: border-box;
  align-items: center;
}

/* Brand Cards - Updated with Shining Gradient */
#OurClients .brand-logo {
  flex: 0 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  height: 180px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#OurClients .brand-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
  background-size: 200% 200%;
  animation: gradientShine 3s ease infinite;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

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

#OurClients .brand-logo:hover .brand-card {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

#OurClients .brand-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
  border-radius: 15px;
  padding: 15px;
}

#OurClients .brand-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

#OurClients .brand-logo:hover .brand-icon img {
  transform: scale(1.1);
}

/* Scroll Controls */
#OurClients .scroll-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

#OurClients .scroll-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--text-accent), var(--hover-primary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
}

#OurClients .scroll-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#OurClients .scroll-btn:active {
  transform: translateY(1px);
}

/*-----------------------------------*\
#FOOTER
\*-----------------------------------*/
.new-footer {
  background: var(--footer-bg);
  color: var(--text-primary);
  padding: 50px 0 0;
  position: relative;
  overflow: hidden;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-crayola), var(--text-accent));
  border-image-slice: 1;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
}

.new-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.03) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 15px;
  display: inline-block;
}

.footer-logo img {
  width: 160px;
  height: auto;
  transition: var(--transition-1);
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-about {
  font-size: var(--fontSize-body-4);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  background: var(--smoky-black-2);
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition-1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid var(--smoky-black-3);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--gold-crayola), var(--text-accent));
  z-index: -1;
  transform: scale(0);
  transition: var(--transition-1);
  border-radius: var(--radius-circle);
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-1);
  color: var(--white);
  border-color: transparent;
}

.social-link:hover::before {
  transform: scale(1);
}

.footer-title {
  font-size: var(--fontSize-title-4);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-crayola), var(--text-accent));
  border-radius: 3px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: var(--fontSize-body-4);
  color: var(--text-secondary);
  transition: var(--transition-1);
  position: relative;
  padding-left: 20px;
  display: flex;
  align-items: center;
}

.footer-link::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-accent);
  transition: var(--transition-1);
  opacity: 0;
}

.footer-link:hover {
  color: var(--text-accent);
  padding-left: 25px;
}

.footer-link:hover::before {
  opacity: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
  font-size: var(--fontSize-body-4);
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--text-accent);
  font-size: 16px;
  min-width: 20px;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.contact-text {
  line-height: 1.6;
}

.contact-text a {
  color: var(--text-secondary);
  transition: var(--transition-1);
}

.contact-text a:hover {
  color: var(--text-accent);
}

.footer-newsletter p {
  font-size: var(--fontSize-body-4);
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--smoky-black-3);
  background: var(--eerie-black-2);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-1);
  outline: none;
}

.newsletter-input:focus {
  background: var(--eerie-black-3);
  box-shadow: 0 0 0 2px var(--gold-crayola);
  border-color: var(--text-accent);
}

.newsletter-input::placeholder {
  color: var(--davys-grey);
}

.subscribe-btn {
  height: 48px;
  background: linear-gradient(90deg, var(--gold-crayola), var(--text-accent));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.subscribe-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--text-accent), var(--gold-crayola));
  z-index: -1;
  opacity: 0;
  transition: var(--transition-1);
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
}

.subscribe-btn:hover::before {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--smoky-black-3);
  padding: 20px 0;
  text-align: center;
}

.copyright {
  font-size: var(--fontSize-label-2);
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.developer-link {
  color: var(--text-accent);
  font-weight: 600;
  transition: var(--transition-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.developer-link:hover {
  color: var(--hover-primary);
  text-decoration: underline;
}

/*-----------------------------------*\
#BACK TO TOP
\*-----------------------------------*/
.back-top-btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 100px; /* Increased size */
  height: 100px; /* Increased size */
  background: transparent;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.4s ease;
  z-index: 1000;
  padding: 0;
  overflow: hidden;
}

.back-top-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.back-top-btn:hover img {
  transform: scale(1.1);
}

.back-top-btn:active {
  transform: translateY(-5px);
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======================== */
/* MEDIA QUERIES */
/* ======================== */
/* Fix footer overflow on extra small devices */
@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
  
  .premium-digital-services-section .section-title {
    font-size: 2.8rem;
    padding: 0 10px;
  }
  
  .premium-digital-services-section .carousel-3d-wrapper {
    height: 50vh;
    min-height: 350px;
  }
}

/* Small Devices (576px - 767px) */
@media (min-width: 576px) {
  :root { 
    --fontSize-body-2: 2rem; 
  }

  .contact-number { 
    --fontSize-body-1: 3rem; 
  }

  /* Topbar & Header */
  .topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 10px;
    border-block-end: 1px solid var(--white-alpha-20);
    z-index: 4;
    transition: var(--transition-1);
  }
  
  .topbar:has(~ .header.active) { 
    transform: translateY(-100%); 
  }

  .topbar-item:not(.link), 
  .topbar .separator { 
    display: none; 
  }

  .topbar .container, 
  .topbar-item { 
    display: flex; 
    align-items: center; 
  }

  .topbar .container { 
    justify-content: center; 
    gap: 30px; 
  }

  .topbar-item { 
    gap: 6px; 
  }

  .topbar-item ion-icon { 
    --ionicon-stroke-width: 60px; 
  }

  .topbar-item .span { 
    font-size: var(--fontSize-label-1); 
  }

  .topbar .link { 
    transition: var(--transition-1); 
  }

  .topbar .link:is(:hover, :focus-visible) { 
    color: var(--gold-crayola); 
  }

  .header { 
    top: 51px; 
  }

  .header.active { 
    top: 0;
  }

  .header .btn { 
    display: block; 
    margin-inline-start: auto; 
  }

  /* Components */
  :is(.service) .section-text { 
    max-width: 420px; 
    margin-inline: auto; 
  }

  .service .container { 
    max-width: 420px; 
    margin-inline: auto; 
  }

  .features .grid-list { 
    grid-template-columns: repeat(3, 1fr); 
  }

  .hero-btn { 
    transform: scale(0.7); 
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }
  
  /* Carousel adjustments */
  .premium-digital-services-section .carousel-item {
    width: 70vw;
  }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .grid-list { 
    grid-template-columns: 1fr 1fr; 
  }

  :is(.service, .event) .container { 
    max-width: 820px; 
  }

  :is(.service, .event) .grid-list li:last-child {
    grid-column: 1/3;
    width: calc(50% - 20px);
    margin-inline: auto;
  }

  /* Carousels */
  .premium-digital-services-section .carousel-item { 
    width: 60vw; 
  }
  
  .premium-digital-services-section .flip-card { 
    aspect-ratio: 1/1.25; 
  }

  .premium-digital-services-section .nav-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .footer-column:first-child { 
    grid-column: span 2; 
  }

  /* Hero Navigation */
  .hero .slider-btn {
    display: grid;
    position: absolute;
    z-index: 1;
    color: var(--gold-crayola);
    font-size: 2.4rem;
    border: 1px solid var(--gold-crayola);
    width: 45px;
    height: 45px;
    place-items: center;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: var(--transition-1);
  }

  .hero .slider-btn ion-icon { 
    transform: rotate(-45deg); 
  }

  .hero .slider-btn.prev { 
    left: 30px; 
  }

  .hero .slider-btn.next { 
    right: 30px; 
  }

  .hero .slider-btn:is(:hover, :focus-visible) {
    background-color: var(--gold-crayola);
    color: var(--black);
  }

  #OurClients .brand-logo { 
    flex: 0 0 180px; 
    height: 160px; 
  }
}

/* Small Desktops (992px - 1199px) */
@media (min-width: 992px) {
  :root { 
    --section-space: 100px; 
  }

  :is(.service, .event) .container { 
    max-width: unset; 
  }

  :is(.service, .event) .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  :is(.service, .event) .grid-list li:last-child {
    grid-column: auto;
    width: 100%;
  }

  .topbar-item:not(.link) { 
    display: flex; 
  }

  .topbar .item-2 { 
    margin-inline-end: auto; 
  }

  /* Carousel Sizing */
  .premium-digital-services-section .carousel-item { 
    width: 40vw; 
  }
  
  .premium-digital-services-section .flip-card {
    aspect-ratio: 1/1.3;
    min-height: 35vh;
  }

  .premium-digital-services-section .service-content {
    padding: 0 30px;
  }

  /* MVP Section */
  .mvp-section .section-title { 
    font-size: var(--fontSize-title-1); 
  }

  .mvp-section .circular-carousel { 
    height: 680px; 
  }

  .mvp-section .mvp-card { 
    height: 620px; 
  }

  .mvp-section .mvp-card-content { 
    max-height: 340px; 
  }

  #OurClients .brand-logo { 
    flex: 0 0 200px; 
    height: 180px; 
  }

  /* Footer: 1 row, 4 columns */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 30px;
  }
}

/* Large Desktops (1200px+) */
@media (min-width: 1200px) {
  :root { 
    --fontSize-title-2: 2.2rem; 
  }

  .container, :is(.service, .event) .container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
  }

  /* Navigation */
  .topbar .container { 
    max-width: unset; 
  }

  .topbar .separator { 
    display: block; 
  }

  .nav-open-btn, 
  .navbar > *:not(.navbar-list), 
  .header .overlay { 
    display: none; 
  }

  .header .container { 
    max-width: unset; 
  }

  .navbar, 
  .navbar.active, 
  .navbar-list { 
    all: unset; 
  }

  .navbar, 
  .navbar.active { 
    margin-inline: auto 20px; 
  }

  .navbar-list {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 30px;
  }

  .navbar-item { 
    border-block-start: none; 
  }

  .navbar .separator { 
    display: none; 
  }

  .navbar-link { 
    font-weight: var(--weight-bold); 
    letter-spacing: var(--letterSpacing-1); 
  }

  .navbar-link::after { 
    display: block; 
  }

  .navbar-link.active::after { 
    transform: scaleX(1); 
    opacity: 1; 
  }

  .header .btn { 
    margin-inline-start: 0; 
  }

  /* Hero */
  .hero { 
    height: 880px; 
  }

  .hero-btn {
    bottom: 50px;
    right: 50px;
    transform: scale(1);
  }

  .features .grid-list { 
    grid-template-columns: repeat(7, 1fr); 
  }

  /* Carousels */
  .premium-digital-services-section .carousel-item { 
    width: 30vw; 
    max-width: 500px;
  }

  #OurClients .brand-logo { 
    flex: 0 0 220px; 
    height: 200px; 
  }

  /* Footer: keep 1 row, 4 columns */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 30px;
  }
}

/* Extra Large Desktops (1400px+) */
@media (min-width: 1400px) {
  .navbar { 
    margin-inline: auto; 
  }

  /* Client Logo Scaling */
  #OurClients .brand-logo { 
    flex: 0 0 240px; 
  }

  #OurClients .brand-logo:nth-child(5n+1),
  #OurClients .brand-logo:nth-child(5n+5) { 
    transform: scale(0.8); 
  }

  #OurClients .brand-logo:nth-child(5n+2),
  #OurClients .brand-logo:nth-child(5n+4) { 
    transform: scale(1.1); 
  }

  #OurClients .brand-logo:nth-child(5n+3) { 
    transform: scale(1.3); 
  }
  
  /* Carousel adjustments */
  .premium-digital-services-section .flip-card {
    max-height: 65vh;
  }
}
@media (max-width: 1199px) {
  .premium-digital-services-section .carousel-3d-wrapper {
    perspective: 1200px;
  }
  
  .premium-digital-services-section .carousel-3d {
    transform: translateZ(-400px) translateY(60px);
  }
}

@media (max-width: 991px) {
  .premium-digital-services-section .carousel-item {
    width: 65vw;
  }
  
  .premium-digital-services-section .carousel-3d-wrapper {
    height: 50vh;
    min-height: 350px;
  }
}
/* Add to style.css */
@media (max-width: 767px) {
  .premium-digital-services-section .carousel-item {
    width: 90vw;
    max-width: 350px;
  }
  
  .premium-digital-services-section .flip-card {
    aspect-ratio: 1/1.1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #OurClients .brand-logo {
    flex: 0 0 150px;
    height: 140px;
  }
}

/* ======================== */
/* INTERACTION STATES */
/* ======================== */

/* Non-touch hover effects */
@media (hover: hover) {
  .premium-digital-services-section .carousel-item:hover .flip-inner {
    transform: rotateY(180deg);
  }
  
  .navbar-link:is(:hover, :focus-visible)::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Touch device adjustments */
@media (hover: none) {
  .premium-digital-services-section .hover-indicator { 
    display: none; 
  }

  .premium-digital-services-section .flip-card:hover .card-front img {
    transform: none;
  }
  
  .premium-digital-services-section .carousel-item {
    cursor: pointer;
  }
}

/* Print Styles */
@media print {
  .premium-digital-services-section .buttons-container,
  .premium-digital-services-section .decoration {
    display: none;
  }
  
  .premium-digital-services-section .flip-inner {
    transform: rotateY(0deg) !important;
  }
  
  .premium-digital-services-section .card-back {
    position: relative;
    transform: rotateY(0deg);
  }
}