* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

/* Adjust the value (e.g., header height) */
[id] {
  scroll-margin-top: 80px;
}


/* =====================================
   NAVBAR — Premium Sticky + New Hover
   (CSS-only, no HTML change)
   ===================================== */

/* Sticky at the very top */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;

  /* deep glass backdrop */
  background:
    radial-gradient(140% 120% at -10% -20%, rgba(255, 231, 186, .10) 0%, rgba(255, 231, 186, 0) 60%),
    linear-gradient(180deg, rgba(9, 13, 21, .85), rgba(7, 10, 18, .85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 230, 170, .12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  color: #f5f7ff;
  position: sticky;
}

/* small highlight line */
.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 214, 123, 0), rgba(245, 214, 123, .55), rgba(245, 214, 123, 0));
  pointer-events: none;
}

/* -------- Logo -------- */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28), 0 0 0 1px rgba(245, 214, 123, .25);
}

.navbar .logo span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #fff9e6 0%, #f5d67b 40%, #e9bd6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* -------- Desktop links -------- */
#nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  align-items: center;

  /* ensure not absolutely positioned */
  position: static !important;
  top: auto !important;
}

/* Base link style + new hover animation setup */
#nav-links li a {
  color: #e8eefc;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;

  padding: 10px 14px;
  border-radius: 12px;
  display: inline-block;
  position: relative;

  /* subtle surface */
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .00));
  border: 1px solid transparent;

  /* gold fill sweep on hover (background-size anim) */
  background-image:
    linear-gradient(90deg, rgba(245, 214, 123, .14), rgba(245, 214, 123, .06));
  background-size: 0% 100%;
  background-repeat: no-repeat;

  transition:
    background-size .35s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* Underline (no arrow) */
#nav-links li a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #f5d67b, #ffeab5, #e9bd6b);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  opacity: .9;
}

/* Hover — gold glow + underline reveal (no arrow) */
#nav-links li a:hover {
  color: #fffdf3;
  background-size: 100% 100%;
  border-color: rgba(245, 214, 123, .28);
  box-shadow: 0 8px 20px rgba(245, 214, 123, .16);
  transform: translateY(-1px);
}

#nav-links li a:hover::after {
  transform: scaleX(1);
}

/* Active state */
#nav-links li a.active {
  color: #0b0f18;
  background: linear-gradient(135deg, #f7e6b8, #f5d67b, #e9bd6b);
  border-color: rgba(245, 214, 123, .45);
  box-shadow: 0 10px 26px rgba(245, 214, 123, .28);
}

#nav-links li a.active::after {
  transform: scaleX(1);
}

/* -------- Hamburger (mobile) -------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff9e6, #f5d67b);
  transition: all .35s ease;
  box-shadow: 0 2px 8px rgba(245, 214, 123, .25);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* -------- Mobile panel -------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  #nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100% !important;

    background:
      radial-gradient(120% 140% at 0% -20%, rgba(255, 231, 186, .10) 0%, rgba(255, 231, 186, 0) 60%),
      linear-gradient(180deg, rgba(9, 13, 21, .98), rgba(7, 10, 18, .98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 230, 170, .12);
    overflow: hidden;

    max-height: 0;
    transition: max-height .45s ease;
  }

  #nav-links.active {
    max-height: 360px;
  }

  #nav-links li {
    width: 100%;
  }

  #nav-links li a {
    width: 100%;
    padding: 14px 18px;
    border-radius: 0;
    border-left: 3px solid transparent;
    background-size: 0% 100%;
    text-align: center;
  }

  #nav-links li a:hover {
    background-size: 100% 100%;
    border-left-color: #f5d67b;
    box-shadow: inset 0 0 0 9999px rgba(245, 214, 123, .06);
    transform: none;
  }

  #nav-links li a::after {
    left: 18px;
    right: 18px;
    bottom: 8px;
  }
}


/* =========================
   HERO (scoped only)
   ========================= */
.hero-section {
  position: relative;
  padding: clamp(44px, 8vw, 96px) clamp(16px, 5vw, 32px);
  color: #e8eefc;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 120% -10%, rgba(99, 102, 241, .25) 0%, rgba(99, 102, 241, 0) 60%),
    #0a0f1f;
}

/* dotted grid overlay */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0/40px 40px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 45%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* Left: content (same text as your last version) */
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: #9aa6c4;
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, #ffffff 0%, #c8d1ee 40%, #9aa6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  color: #9aa6c4;
  margin: 0 0 18px;
  max-width: 62ch;
  line-height: 1.7;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 22px;
}

.hero__chips span {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 999px;
  color: #e8eefc;
  border: 1px solid rgba(109, 123, 255, .28);
  background: rgba(109, 123, 255, .10);
  box-shadow: 0 6px 16px rgba(109, 123, 255, .18);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.hero__btn--primary {
  color: #0a0f1f;
  background: linear-gradient(135deg, #6d7bff 0%, #8aa0ff 50%, #b1b8ff 100%);
  box-shadow: 0 14px 28px rgba(109, 123, 255, .35), 0 0 30px rgba(109, 123, 255, .42);
}

.hero__btn--ghost {
  color: #e8eefc;
  background: rgba(255, 255, 255, .04);
  border: 1px solid #223056;
}

.hero__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.hero__btn:active {
  transform: translateY(0);
}

/* Right: visual card (1:1 image) */
.hero__media {
  position: relative;
  height: 100%;
}

.hero__stack {
  position: relative;
  width: min(560px, 100%);
  margin-inline: auto;
  perspective: 1200px;
}

.hero__card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: #0e152b;
  border: 1px solid #1b2441;
  box-shadow: 0 20px 60px rgba(8, 12, 30, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(8, 12, 30, .65), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}

/* animated accents */
.hero__ring,
.hero__blob {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  filter: blur(24px);
  z-index: -1;
}

.hero__ring {
  background: conic-gradient(from 0deg, rgba(109, 123, 255, .6), rgba(122, 238, 255, .4), rgba(170, 178, 255, .6), rgba(109, 123, 255, .6));
  mask: radial-gradient(farthest-side, transparent 62%, #000 63%);
  animation: hero-rotate 14s linear infinite;
  opacity: .35;
}

.hero__blob {
  background:
    radial-gradient(35% 35% at 70% 30%, rgba(122, 238, 255, .25) 0%, transparent 60%),
    radial-gradient(40% 40% at 20% 70%, rgba(109, 123, 255, .30) 0%, transparent 60%);
  animation: hero-float 7s ease-in-out infinite alternate;
  opacity: .8;
}

@keyframes hero-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-float {
  to {
    transform: translateY(-8px) translateX(6px);
  }
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid #223056;
  color: #e8eefc;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}


/* =========================
   PROCESS SECTION (scoped)
   ========================= */
.process-section {
  padding: clamp(32px, 6vw, 72px);
  color: #e8eefc;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background:

    #0a0f1f;
}

.process-container {
  max-width: 1100px;
  margin: 0 auto;
}

.process-header {
  text-align: center;
  margin-bottom: clamp(22px, 4vw, 40px);
}

.process-header .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: #9aa6c4;
  margin-bottom: 8px;
}

.process-header .title {
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 8px;
}

.process-header .subtitle {
  margin: 0 auto;
  max-width: 700px;
  color: #9aa6c4;
}

/* 3D grid of steps */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.8vw, 28px);
  perspective: 1200px;
}

/* Responsive layout: 1 / 2 / 3 columns */
@media (max-width: 760px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .process-steps {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1081px) {
  .process-steps {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Each step spans columns responsively */
.process-step {
  grid-column: span 12;
}

@media (min-width: 761px) {
  .process-step {
    grid-column: span 6;
  }
}

@media (min-width: 1081px) {
  .process-step {
    grid-column: span 4;
  }
}

.process-card {
  position: relative;
  height: 100%;
  border-radius: 18px;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01)), #0e152b;
  border: 1px solid #1b2441;
  box-shadow: 0 16px 44px rgba(8, 12, 30, .50), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;

  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Animated conic border glow */
.process-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: conic-gradient(from 180deg at 50% 50%, #6d7bff, #7aeeff, #aab2ff, #6d7bff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: process-spin 10s linear infinite;
  opacity: .30;
  pointer-events: none;
}

@keyframes process-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Subtle inner glow spots */
.process-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px 140px at 20% 18%, rgba(109, 123, 255, .16), transparent 60%),
    radial-gradient(160px 160px at 85% 80%, rgba(128, 221, 255, .12), transparent 60%);
  pointer-events: none;
}

.process-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.process-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  color: #0a0f1f;
  background: linear-gradient(135deg, #6d7bff 0%, #8aa0ff 50%, #b1b8ff 100%);
  box-shadow: 0 10px 18px rgba(109, 123, 255, .35);
  transform: translateZ(28px);
}

.process-title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
}

.process-desc {
  color: #9aa6c4;
  line-height: 1.7;
  margin: 8px 0 12px;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.process-tags span {
  font-size: 12px;
  color: #e8eefc;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109, 123, 255, .12);
  border: 1px solid rgba(109, 123, 255, .28);
}

/* 3D hover lift */
.process-card:hover {
  transform: translateZ(24px) translateY(-2px);
  box-shadow: 0 24px 60px rgba(8, 12, 30, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  border-color: #263158;
}


.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: auto;
  margin-bottom: 50px;
}

.gradient-text {
  background: linear-gradient(90deg, #00bcd4, #3f51b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* here starts the service section */

/* =========================
   OUR SERVICES (scoped only)
   ========================= */
.services-section {
  position: relative;
  padding: clamp(36px, 7vw, 0px) clamp(16px, 5vw, 32px);
  color: #e8eefc;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  background: #0a0f1f;
  scroll-margin-top: 90px;
  isolation: isolate;
}

.services-heading {
  text-align: center;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 clamp(20px, 4vw, 36px);
  letter-spacing: -.01em;
}

.services-heading span {
  background: linear-gradient(90deg, #ffffff 0%, #c8d1ee 40%, #9aa6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Grid: 3 / 2 / 1 */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.service-card {
  position: relative;
  height: 100%;
  border-radius: 18px;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01)), #0e152b;
  border: 1px solid #1b2441;
  box-shadow: 0 16px 44px rgba(8, 12, 30, .50), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;

  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: service-fadeUp .6s ease both;
}

@keyframes service-fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:nth-child(1) {
  animation-delay: .02s;
}

.service-card:nth-child(2) {
  animation-delay: .06s;
}

.service-card:nth-child(3) {
  animation-delay: .10s;
}

.service-card:nth-child(4) {
  animation-delay: .14s;
}

.service-card:nth-child(5) {
  animation-delay: .18s;
}

.service-card:nth-child(6) {
  animation-delay: .22s;
}

/* Static inner gold rim */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(245, 214, 123, .22), inset 0 0 40px rgba(245, 214, 123, .08);
  pointer-events: none;
}

/* Sheen sweep + lift on hover */
.service-card::after {
  content: "";
  position: absolute;
  inset: -22%;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%);
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(8, 12, 30, .58), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  border-color: #263158;
}

.service-card:hover::after {
  opacity: 1;
  animation: service-sheen 1.1s ease forwards;
}

@keyframes service-sheen {
  to {
    transform: translateX(120%) skewX(-12deg);
  }
}

/* Icon (SVG) */
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5d67b 0%, #ffeab5 50%, #e9bd6b 100%);
  box-shadow: 0 12px 22px rgba(245, 214, 123, .28);
  margin-bottom: 10px;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: #0a0f1f;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(245, 214, 123, .34);
  filter: brightness(1.04);
}

/* Titles & descriptions (your content unchanged) */
.service-title {
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  margin-bottom: 8px;
}

.service-description {
  color: #9aa6c4;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Extra content list */
.service-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.service-list li {
  position: relative;
  padding-left: 16px;
  color: #c9d2ea;
  font-size: 14px;
  line-height: 1.6;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffeab5, #f5d67b 70%);
  box-shadow: 0 0 10px rgba(245, 214, 123, .45);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .service-card,
  .service-card::after,
  .service-icon {
    transition: none !important;
    animation: none !important;
  }
}

/* here starts the code for my project gallery */


/* =========================
   PROJECT GALLERY — Responsive Bento Neon Style
   ========================= */
.project-gallery {
  position: relative;
  padding: clamp(40px, 8vw, 80px) 20px;
  background: #0a0f1f !important; /* Enforce deep dark background */
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Optional: Subtle tech grid background */
.project-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 123, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 123, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
}

.project-gallery .services-heading {
  text-align: center;
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 10px;
  color: #ffffff !important;
}

.project-gallery .services-heading span {
  background: linear-gradient(90deg, #6d7bff, #aab2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-heading {
  text-align: center;
  color: #9aa6c4 !important;
  margin-bottom: 40px;
}

/* --- BENTO GRID LAYOUT (Laptop/Desktop Base) --- */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* Creates a dense grid that fits items together */
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px; /* Fixed base height for standard cards */
  gap: 20px;
  grid-auto-flow: dense; 
}

/* Card Styling */
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0e152b;
  border: 1px solid rgba(109, 123, 255, 0.15); /* Subtle blue border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  isolation: isolate;
}

/* Image behavior */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

/* --- HOVER EFFECTS (Neon) --- */
.gallery-item:hover {
  transform: translateY(-5px);
  border-color: #6d7bff;
  /* Neon Glow */
  box-shadow: 0 0 25px rgba(109, 123, 255, 0.4), inset 0 0 10px rgba(109, 123, 255, 0.1);
  z-index: 5;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.6); /* Darkens image so text is readable */
}

/* Overlay Details - Slides Up */
.gallery-overlay {
  position: absolute;
  inset: 0;
  /* Gradient darkens bottom for text legibility */
  background: linear-gradient(to top, rgba(10, 15, 31, 0.95), rgba(10, 15, 31, 0.5) 60%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
.gallery-overlay h2 {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6d7bff !important; /* Neon accent color */
  margin: 0 0 6px 0;
  font-weight: 700;
  transform: translateY(-10px);
  transition: transform 0.4s ease;
}

.gallery-overlay h1 {
  font-size: 1.4rem;
  color: #ffffff !important;
  margin: 0 0 10px 0;
  font-weight: 800;
  line-height: 1.2;
}

.gallery-overlay p {
  font-size: 0.95rem;
  color: #c9d2ea !important;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h2 {
  transform: translateY(0);
}

.gallery-item:hover .gallery-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE LOGIC (Mobile, Tab, Laptop)
   ========================================= */

/* LAPTOP & DESKTOP (Min 769px) */
@media (min-width: 769px) {
  /* Bento Mosaic Logic: Spanning rows/cols */
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(3) { grid-row: span 2; }
  .gallery-item:nth-child(6) { grid-column: span 2; }
}

/* TABLET (Max 1024px) */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    grid-auto-rows: 250px;
    gap: 16px;
  }
  /* Reset spans so everything is even on tablet */
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* MOBILE PHONE (Max 600px) */
@media (max-width: 600px) {
  .gallery-grid {
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 20px;
  }
  
  .gallery-item {
    width: 100%;
    aspect-ratio: 4/3; /* Standard rectangle for phone */
  }
}




/* =========================
   Empowering Frontend Developers — Golden Stats (Centered)
   ========================= */

.stats-section {
  padding: 27px 20px;
  background: #0a0f1f !important; /* Deep dark background */
  color: #e8eefc;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* Header */
.stats-section .stats-header {
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
}

.stats-section .services-heading {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  margin: 0 0 10px;
  color: #ffffff !important;
}

/* Golden/Silver Title Gradient */
.stats-section .services-heading span {
  background: linear-gradient(90deg, #ffffff 0%, #c8d1ee 40%, #9aa6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-section .stats-header p {
  margin: 0 auto;
  max-width: 70ch;
  color: #9aa6c4;
}

/* Divider - Restored Golden Style */
.stats-section .stats-divider {
  max-width: 900px;
  margin: 22px auto 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 214, 123, 0), rgba(245, 214, 123, .45), rgba(245, 214, 123, 0));
  border: 0;
}

/* Grid layout */
.stats-section .stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Stat Card - Centered Content */
.stats-section .stat-box {
  position: relative;
  border-radius: 16px;
  padding: 24px 16px;
  background: #0e152b;
  border: 1px solid #1b2441;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .02) inset;
  
  /* Flexbox for perfect centering */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items horizontally */
  justify-content: center;
  text-align: center;  /* Centers text */
}

/* Inner Golden Rim */
.stats-section .stat-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  /* Golden Glow */
  box-shadow: inset 0 0 0 1px rgba(245, 214, 123, .18), inset 0 0 26px rgba(245, 214, 123, .06);
  pointer-events: none;
}

/* Icon badge - Golden Gradient */
.stats-section .stat-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 12px;
  /* Restored Gold Gradient */
  background: linear-gradient(135deg, #f5d67b 0%, #ffeab5 50%, #e9bd6b 100%);
  box-shadow: 0 8px 18px rgba(245, 214, 123, .22);
}

/* SVG icons */
.stats-section .stat-icon svg {
  width: 26px;
  height: 26px;
  stroke: #0a0f1f; /* Dark stroke contrasts well with gold */
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Numbers */
.stats-section .stat-number {
  font-size: clamp(22px, 4.2vw, 30px);
  font-weight: 800;
  letter-spacing: .3px;
  color: #e8eefc;
  margin-bottom: 4px;
}

.stats-section .stat-label {
  font-size: .9rem;
  color: #9aa6c4;
}

/* =========================
   RESPONSIVE (Tablet & Mobile)
   ========================= */

@media (max-width: 980px) {
  .stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 2 Columns + Centered */
@media (max-width: 600px) {
  .stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Cards per row */
    gap: 12px;
  }
  
  .stats-section .stat-box {
    padding: 16px 10px;
  }
  
  .stats-section .stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  
  .stats-section .stat-icon svg {
    width: 20px;
    height: 20px;
  }

  .stats-section .stat-number {
    font-size: 20px;
  }

  .stats-section .stat-label {
    font-size: 11px;
  }
}

/* =========================
   TESTIMONIAL SECTION — Premium Gold & Mobile Slider
   ========================= */

.testimonial-modern-section {
  padding: 20px 20px;
  background: #0a0f1f;
  color: #e8eefc;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow: hidden; /* Essential for the slider to work */
}

/* --- Header --- */
.testimonial-modern-section .testimonial-header {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.testimonial-modern-section .testimonial-heading {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 10px;
  line-height: 1.15;
}

.testimonial-modern-section .testimonial-heading span {
  /* Silver/Gold Gradient Title */
  background: linear-gradient(90deg, #ffffff 0%, #c8d1ee 40%, #9aa6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonial-modern-section .testimonial-header p {
  color: #9aa6c4;
  max-width: 70ch;
  margin: 0 auto;
}

/* --- Desktop Grid Layout --- */
.testimonial-modern-section .testimonial-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  /* Default: 3 Columns */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Card Styling (Gold Theme) --- */
.testimonial-modern-section .testimonial-card {
  position: relative;
  padding: 22px 20px;
  border-radius: 18px;
  background: #0e152b;
  border: 1px solid rgba(245, 214, 123, .25); /* Gold Border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* Rotating Gold Ring Animation */
.testimonial-modern-section .testimonial-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: conic-gradient(from 0deg, #f5d67b, #ffeab5, #e9bd6b, #f5d67b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .18;
  pointer-events: none;
  animation: ring-spin 18s linear infinite;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* Idle Float Animation */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.testimonial-modern-section .testimonial-card {
  animation: float-soft 6s ease-in-out infinite;
}

/* Hover Effects (Desktop Only) */
@media (min-width: 641px) {
  .testimonial-modern-section .testimonial-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #f5d67b;
    box-shadow: 0 16px 44px rgba(245, 214, 123, .20);
  }
}

/* --- Typography & Elements --- */
.testimonial-modern-section .testimonial-quote {
  font-size: 40px;
  line-height: 1;
  color: #f5d67b; /* Gold Quote */
  font-weight: 800;
  margin-bottom: -6px;
}

.testimonial-modern-section .testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #c9d2ea;
  margin-bottom: 15px;
}

/* Rating with Gold Shimmer */
.testimonial-modern-section .testimonial-rating {
  font-size: 1.1rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #f5d67b, #ffeab5, #e9bd6b, #f5d67b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% 100%;
  animation: gold-shimmer 3.2s linear infinite;
  margin-bottom: 12px;
}

@keyframes gold-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Author Section */
.testimonial-modern-section .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.testimonial-modern-section .testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f5d67b; /* Gold Border */
}

.testimonial-modern-section .testimonial-author h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.testimonial-modern-section .testimonial-author span {
  font-size: 12px;
  color: #9aa6c4;
}

/* =========================
   RESPONSIVE: TABLET (2 Columns)
   ========================= */
@media (max-width: 980px) and (min-width: 641px) {
  .testimonial-modern-section .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   RESPONSIVE: MOBILE (Auto Slider)
   ========================= */
@media (max-width: 640px) {
  /* Convert grid to horizontal slider strip */
  .testimonial-modern-section .testimonial-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    width: 600%; /* 6 cards * 100% width = 600% */
    
    /* The sliding animation */
    animation: mobileSlider 24s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
  }

  /* Pause on touch/hover */
  .testimonial-modern-section .testimonial-grid:hover,
  .testimonial-modern-section .testimonial-grid:active {
    animation-play-state: paused;
  }

  /* Card Sizing for Slider */
  .testimonial-modern-section .testimonial-card {
    width: 16.666%; /* 100% / 6 */
    flex-shrink: 0;
    margin: 0;
    transform: scale(0.94); /* Add spacing visually */
    animation: none; /* Disable float animation on mobile to save battery */
  }

  /* Adjust content for smaller screens */
  .testimonial-modern-section .testimonial-text {
    font-size: 13px;
    line-height: 1.5;
    /* Prevent uneven heights */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .testimonial-modern-section .testimonial-quote {
    font-size: 30px;
  }

  .testimonial-modern-section .testimonial-author img {
    width: 40px;
    height: 40px;
  }
}

/* =========================
   SLIDER KEYFRAMES
   0% -> -16.66% -> -33.33% ...
   ========================= */
@keyframes mobileSlider {
  /* Show Card 1 */
  0%, 12%        { transform: translateX(0); }
  
  /* Slide to Card 2 */
  16.66%, 28.66% { transform: translateX(-16.666%); }
  
  /* Slide to Card 3 */
  33.33%, 45.33% { transform: translateX(-33.333%); }
  
  /* Slide to Card 4 */
  50%, 62%       { transform: translateX(-50%); }
  
  /* Slide to Card 5 */
  66.66%, 78.66% { transform: translateX(-66.666%); }
  
  /* Slide to Card 6 */
  83.33%, 95.33% { transform: translateX(-83.333%); }
  
  /* Reset to Start */
  100%           { transform: translateX(0); }
}

/* =========================
   Reference Courses — Premium Animated (Full Screen Mobile Slider)
   ========================= */
.reference-section {
  background: #0a0f1f;
  color: #e8eefc;
  /* Reduced side padding on mobile to make cards wider */
  padding: 30px 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* subtle aurora backdrop */
.reference-section::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 420px;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(109, 123, 255, .18), transparent 60%),
    radial-gradient(40% 60% at 80% 10%, rgba(170, 178, 255, .12), transparent 60%),
    radial-gradient(60% 60% at 60% -5%, rgba(245, 214, 123, .12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.reference-section .ref-head {
  max-width: 1000px;
  margin: 0 auto 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 20px; /* Ensure text has padding even if section doesn't */
}

.reference-section .ref-title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.reference-section .ref-title span {
  background: linear-gradient(90deg, #ffffff 0%, #c8d1ee 40%, #9aa6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reference-section .ref-sub {
  color: #9aa6c4;
  max-width: 70ch;
  margin: 0 auto;
}

/* Grid (Desktop Default) */
.reference-section .ref-grid {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 28px auto 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ===== Card Styling ===== */
.reference-section .reference-card {
  --ringOpacity: .20;
  position: relative;
  border-radius: 16px;
  padding: 24px 20px; /* Increased padding for bigger feel */
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .035) 25%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .035) 75%),
    #0e152b;
  background-size: 260% 260%;
  border: 1px solid #1b2441;
  overflow: hidden;

  /* idle movement */
  animation: refSweep 12s linear infinite, refBreathe 6.2s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, filter .28s ease;
  
  display: flex;
  flex-direction: column;
  min-height: 300px; /* Enforce a minimum height for "Big" look */
}

/* stagger */
.reference-section .reference-card {
  animation-delay: calc(var(--i, 1) * .06s), calc(var(--i, 1) * .04s);
}

@keyframes refSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes refBreathe {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(8, 12, 30, .40), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 36px rgba(245, 214, 123, .20), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    transform: translateY(-4px);
  }
}

/* rotating premium gold rim */
.reference-section .reference-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background:
    conic-gradient(from 0deg, rgba(245, 214, 123, var(--ringOpacity)), rgba(233, 189, 107, var(--ringOpacity)), rgba(255, 234, 181, var(--ringOpacity)), rgba(245, 214, 123, var(--ringOpacity)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: refRing 22s linear infinite;
}

@keyframes refRing {
  to { transform: rotate(360deg); }
}

/* sheen sweep on hover */
.reference-section .reference-card::after {
  content: "";
  position: absolute;
  inset: -22%;
  background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 55%);
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.05s ease, opacity .25s ease;
}

/* Hover Effects (Desktop Only) */
@media (min-width: 641px) {
  .reference-section .reference-card:hover,
  .reference-section .reference-card:focus-within {
    transform: translateY(-8px) rotateX(.6deg) rotateY(-.6deg);
    border-color: #263158;
    box-shadow: 0 22px 52px rgba(8, 12, 30, .58), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  }

  .reference-section .reference-card:hover::after,
  .reference-section .reference-card:focus-within::after {
    opacity: 1;
    transform: translateX(120%) skewX(-12deg);
  }
}

/* Top row */
.reference-section .ref-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.reference-section .ref-icon {
  width: 56px; /* Slightly bigger icons */
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5d67b 0%, #ffeab5 50%, #e9bd6b 100%);
  box-shadow: 0 12px 22px rgba(245, 214, 123, .28);
  position: relative;
  overflow: hidden;
}

.reference-section .ref-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
  opacity: .28;
  pointer-events: none;
}

.reference-section .ref-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #0a0f1f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: refSpark 2.4s ease-in-out infinite;
}

@keyframes refSpark {
  0%, 100% { transform: translateZ(0) scale(1); }
  50% { transform: translateZ(0) scale(1.06); }
}

.reference-section .ref-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.reference-section .ref-badge {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(109, 123, 255, .12);
  color: #e8eefc;
  border: 1px solid rgba(109, 123, 255, .28);
}

.reference-section .ref-date {
  font-size: .86rem;
  color: #9aa6c4;
}

/* Copy */
.reference-section .ref-title-card {
  font-size: 20px; /* Bigger Title */
  font-weight: 800;
  margin: 6px 0 10px;
  transition: transform .28s ease;
}

.reference-section .ref-desc {
  color: #c9d2ea;
  font-size: 15px; /* Readable text */
  line-height: 1.6;
  margin: 0 0 16px;
  transition: transform .28s ease, opacity .28s ease;
  flex-grow: 1;
}

/* CTA */
.reference-section .ref-link {
  display: block; /* Full width button on mobile */
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  color: #0a0f1f;
  background: linear-gradient(135deg, #6d7bff 0%, #8aa0ff 50%, #b1b8ff 100%);
  box-shadow: 0 10px 24px rgba(109, 123, 255, .35), 0 0 30px rgba(109, 123, 255, .42);
  transition: transform .2s ease, filter .2s ease;
  text-align: center;
  margin-top: auto;
}

.reference-section .ref-link:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05);
}

/* =========================
   RESPONSIVE: Tablet (2 Columns)
   ========================= */
@media (max-width: 980px) and (min-width: 641px) {
  .reference-section .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   RESPONSIVE: Mobile (FULL SCREEN SLIDER)
   ========================= */
@media (max-width: 640px) {
  .reference-section {
    padding-left: 0;
    padding-right: 0; /* Full width swipe area */
  }

  .reference-section .ref-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    
    /* 6 Cards * 100% width = 600% total width */
    width: 600%; 
    
    /* Animation: 18s total loop */
    animation: refOneByOne 18s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
  }

  /* Pause on Touch */
  .reference-section .ref-grid:hover,
  .reference-section .ref-grid:active {
    animation-play-state: paused;
  }

  .reference-section .reference-card {
    /* Exactly 1 screen width */
    width: 16.666%; 
    flex-shrink: 0;
    margin: 0;
    
    /* Make card scale almost 100% of screen */
    transform: scale(0.96); 
    
    animation: none; 
    border-radius: 20px;
    height: auto;
    /* Ensure content fits without scroll inside card */
    justify-content: center; 
  }
  
  /* Keep ring animation active */
  .reference-section .reference-card::before {
    animation: refRing 22s linear infinite;
  }
}

/* =========================
   KEYFRAMES: 6 Steps (One by One)
   Moves 0% -> -16.66% -> -33.33% ...
   ========================= */
@keyframes refOneByOne {
  /* Show Card 1 */
  0%, 14%        { transform: translateX(0); }
  
  /* Move to Card 2 */
  16.66%, 30.66% { transform: translateX(-16.666%); }
  
  /* Move to Card 3 */
  33.33%, 47.33% { transform: translateX(-33.333%); }
  
  /* Move to Card 4 */
  50%, 64%       { transform: translateX(-50%); }
  
  /* Move to Card 5 */
  66.66%, 80.66% { transform: translateX(-66.666%); }
  
  /* Move to Card 6 */
  83.33%, 97.33% { transform: translateX(-83.333%); }
  
  /* Loop back */
  100%           { transform: translateX(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
  .reference-section .reference-card,
  .reference-section .reference-card::before,
  .reference-section .reference-card::after,
  .reference-section .ref-icon svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* =========================
   GitHub Section — Premium Yellow/Gold Theme
   ========================= */
.github-info-section {
  background: #0a0f1f;
  color: #e8eefc;
  padding: 64px 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* Header */
.github-info-section .gh-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.github-info-section .gh-title {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 8px;
}

.github-info-section .gh-title span {
  background: linear-gradient(90deg, #f5d67b, #ffeab5, #e9bd6b); /* Gold Gradient */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.github-info-section .gh-sub {
  color: #9aa6c4;
}

/* --- Dashboard (Profile + Stats) --- */
.github-info-section .gh-dashboard {
  max-width: 900px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Card */
.github-info-section .gh-profile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 214, 123, 0.25); /* Gold Border */
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.github-info-section .gh-avatar-wrapper {
  position: relative;
}

.github-info-section .gh-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #f5d67b; /* Gold Border */
}

.github-info-section .gh-stamp {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  background: #f5d67b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #000;
  border: 2px solid #0a0f1f;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.github-info-section .gh-stamp svg { width: 14px; height: 14px; fill: currentColor; }

.github-info-section .gh-name {
  font-size: 20px;
  margin: 0 0 4px;
  color: #fff;
}

.github-info-section .gh-bio {
  color: #9aa6c4;
  font-size: 14px;
  margin-bottom: 12px;
}

.github-info-section .gh-buttons {
  display: flex;
  gap: 10px;
}

/* Profile Buttons */
.github-info-section .gh-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}

.github-info-section .gh-btn:hover { 
  transform: translateY(-2px); 
  filter: brightness(1.1);
}

.github-info-section .gh-btn.primary {
  /* Premium Gold Gradient */
  background: linear-gradient(135deg, #f5d67b 0%, #e9bd6b 100%);
  color: #0a0f1f;
  border: none;
}

.github-info-section .gh-btn.ghost {
  background: rgba(255,255,255,0.05);
  color: #f5d67b;
  border: 1px solid rgba(245, 214, 123, 0.3);
}

/* Stats Row */
.github-info-section .gh-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.github-info-section .gh-stat-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.github-info-section .gh-stat-item:last-child { border-right: none; }

.github-info-section .gh-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #f5d67b; /* Gold numbers */
}

.github-info-section .gh-label {
  font-size: 11px;
  color: #9aa6c4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Repo Grid --- */
.github-info-section .gh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Repo Card */
.github-info-section .gh-card {
  background: #0e152b;
  border: 1px solid rgba(245, 214, 123, 0.15); /* Gold Border opacity */
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 240px;
}

.github-info-section .gh-card:hover {
  transform: translateY(-5px);
  border-color: #f5d67b; /* Bright Gold on Hover */
  box-shadow: 0 10px 30px rgba(245, 214, 123, 0.15);
}

.github-info-section .gh-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.github-info-section .gh-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(245, 214, 123, 0.1); /* Gold Tint */
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #f5d67b;
}
.github-info-section .gh-icon-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Stars/Forks Badge */
.github-info-section .gh-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.github-info-section .gh-lang {
  font-size: 11px;
  font-weight: 700;
  color: #ffeab5; /* Pale Gold */
  margin-bottom: 4px;
}

.github-info-section .gh-badge-stats {
  display: inline-flex;
  gap: 10px;
  background: rgba(245, 214, 123, 0.1); 
  border: 1px solid rgba(245, 214, 123, 0.2);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  color: #f5d67b;
  font-weight: 600;
  white-space: nowrap;
}

.github-info-section .gh-card-title {
  color: #fff;
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.github-info-section .gh-card-desc {
  color: #c9d2ea;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* --- BUTTONS (Repo & Live) --- */
.github-info-section .gh-btn-row {
  display: flex;
  gap: 10px;
  margin-top: auto; 
}

.github-info-section .gh-link {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  
  /* Default Button Style */
  background: rgba(255, 255, 255, 0.05);
  color: #e8eefc;
  padding: 10px 4px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.github-info-section .gh-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Premium "Live Demo" Button */
.github-info-section .live-btn {
  background: linear-gradient(135deg, #f5d67b 0%, #e9bd6b 100%);
  color: #0a0f1f; /* Dark text for contrast */
  border: none;
}

.github-info-section .live-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(245, 214, 123, 0.3);
  background: linear-gradient(135deg, #f5d67b 0%, #e9bd6b 100%); /* Maintain gradient */
}

/* =========================
   RESPONSIVE: Tablet
   ========================= */
@media (max-width: 900px) {
  .github-info-section .gh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .github-info-section .gh-profile {
    flex-direction: column;
    text-align: center;
  }
  .github-info-section .gh-buttons {
    justify-content: center;
  }
}

/* =========================
   RESPONSIVE: Mobile (Full Screen Slider)
   ========================= */
@media (max-width: 600px) {
  .github-info-section { padding: 40px 0; } /* Full Width */

  .github-info-section .gh-dashboard, 
  .github-info-section .gh-head {
    padding: 0 20px;
  }

  /* Slider Logic for 3 Cards */
  .github-info-section .gh-grid {
    display: flex;
    grid-template-columns: none;
    width: 300%; /* 3 Cards * 100% */
    gap: 0;
    animation: ghMobileSlider 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
  }

  /* Pause animation when user touches it */
  .github-info-section .gh-grid:hover,
  .github-info-section .gh-grid:active {
    animation-play-state: paused;
  }

  .github-info-section .gh-card {
    width: 33.333%; /* 100% / 3 cards */
    flex-shrink: 0;
    transform: scale(0.94); /* Slight spacing */
    border-radius: 20px;
    margin: 0;
  }
}

/* Keyframes for 3 Cards (0 -> -33% -> -66% -> 0) */
@keyframes ghMobileSlider {
  0%, 25%   { transform: translateX(0); }
  33%, 58%  { transform: translateX(-33.333%); }
  66%, 92%  { transform: translateX(-66.666%); }
  100%      { transform: translateX(0); }
}
/* my details part css */


/* =========================
   Profile Section - Flat Dark Mode with Animated Light
   ========================= */
.profile3d {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 5vw, 28px);
  color: #e8eefc !important;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0a0f1f !important; /* Deep dark background */
}

.profile3d-scene {
  width: min(100%, 940px);
}

.profile3d-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(18px, 3vw, 28px);
  border-radius: 22px;
  background: #0e152b !important; /* Solid dark background */
  border: 1px solid #1b2441 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- RESTORED SPINNING LIGHT BORDER --- */
.profile3d-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: conic-gradient(from 180deg at 50% 50%, #6d7bff, #7aeeff, #aab2ff, #6d7bff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 8s linear infinite; /* Restoration of the lightning animation */
  opacity: .35;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Subtle background glow */
.profile3d-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(200px 200px at 15% 20%, rgba(109, 123, 255, .22), transparent 60%),
    radial-gradient(220px 220px at 85% 70%, rgba(128, 221, 255, .16), transparent 60%);
  pointer-events: none;
  opacity: .9;
}

.profile3d-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  margin: clamp(14px, 2.2vw, 18px);
  background: #0b1120 !important;
  border: 1px solid #1b2441 !important;
  z-index: 1;
}

.profile3d-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile3d-content {
  padding: clamp(20px, 4vw, 40px);
  z-index: 1;
}

.profile3d-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9aa6c4 !important;
  font-size: 12px;
  margin-bottom: 8px;
}

.profile3d-title {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  margin-bottom: 8px;
  color: #ffffff !important;
}

.profile3d-tagline {
  color: #aab2ff !important;
  font-weight: 600;
  margin-bottom: 16px;
}

.profile3d-about {
  color: #9aa6c4 !important;
  line-height: 1.7;
  margin-bottom: 20px;
}

.profile3d-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

 .profile3d-chips span {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(109, 123, 255, 0.1) !important;
  border: 1px solid rgba(109, 123, 255, 0.4) !important; /* Increased border visibility */
  color: #e8eefc !important;
  /* Added neon glow to capsules */
  box-shadow: 0 0 10px rgba(109, 123, 255, 0.2), inset 0 0 5px rgba(109, 123, 255, 0.1) !important;
  transition: all 0.3s ease;
}
.profile3d-chips span:hover {
  background: rgba(109, 123, 255, 0.2) !important;
  border-color: #aab2ff !important;
  box-shadow: 0 0 15px rgba(109, 123, 255, 0.5) !important;
  transform: translateY(-2px);
}

.profile3d-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  border-top: 1px solid #1b2441;
  padding-top: 24px;
}

.profile3d-btn {
  padding: 12px 28px;
  border-radius: 12px;
  color: #0a0f1f !important;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #6d7bff, #8aa0ff) !important;
  /* Neon glow effect */
  box-shadow: 0 0 15px rgba(109, 123, 255, 0.4), 0 0 30px rgba(109, 123, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  border: none;
  display: inline-block;
}

.profile3d-btn:hover {
  transform: translateY(-3px);
  /* Intense neon glow on hover */
  box-shadow: 0 0 25px rgba(109, 123, 255, 0.7), 0 0 50px rgba(109, 123, 255, 0.4) !important;
  filter: brightness(1.1);
}


@keyframes neonPulse {
  0% { box-shadow: 0 0 15px rgba(109, 123, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(109, 123, 255, 0.6); }
  100% { box-shadow: 0 0 15px rgba(109, 123, 255, 0.4); }
}

.profile3d-btn {
  animation: neonPulse 3s infinite ease-in-out;
}
.profile3d-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile3d-links a {
  color: #9aa6c4 !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  /* Dark borders to blend with background */
  border: 1px solid rgba(109, 123, 255, 0.3) !important; 
  background: rgba(255, 255, 255, .02) !important;
  font-size: 14px;
  /* Subtle glow for idle state */
  box-shadow: 0 0 8px rgba(109, 123, 255, 0.1) !important;
  transition: all 0.3s ease !important;
}

.profile3d-links a:hover {
  color: #ffffff !important;
  background: rgba(109, 123, 255, 0.15) !important;
  border-color: #6d7bff !important;
  /* Neon glow effect on hover */
  box-shadow: 0 0 15px rgba(109, 123, 255, 0.5), 0 0 5px rgba(109, 123, 255, 0.2) !important;
  transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 820px) {
  .profile3d-card {
    grid-template-columns: 1fr;
  }
}

/* =========================
   WhatsApp v2 (scoped)
   ========================= */
.whatsapp-section-v2,
.whatsapp-section-v2 * {
  box-sizing: border-box;
}

.whatsapp-section-v2 {
  background: #0a0f1f;
  color: #e8eefc;
  padding: 30px 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* background glow */
.whatsapp-section-v2::before {
  content: "";
  position: absolute;
  inset: -12% -10% auto -10%;
  height: 420px;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(109, 123, 255, .18), transparent 60%),
    radial-gradient(40% 60% at 80% 10%, rgba(170, 178, 255, .12), transparent 60%),
    radial-gradient(60% 60% at 60% -5%, rgba(245, 214, 123, .12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* grid container */
.wa2-container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 44px;
  align-items: center;
  grid-template-columns: minmax(320px, 560px) minmax(320px, 1fr);
}

@media (max-width: 980px) {
  .wa2-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* left copy */
.wa2-copy {
  text-align: left;
}

.wa2-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f5d67b, #ffeab5 55%, #e9bd6b);
  box-shadow: 0 14px 26px rgba(245, 214, 123, .28);
  margin-bottom: 12px;
  animation: wa2Pulse 4s ease-in-out infinite;
}

.wa2-badge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #0a0f1f;
  stroke-width: 1.8;
}

@keyframes wa2Pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 26px rgba(245, 214, 123, .28);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 18px 34px rgba(245, 214, 123, .34);
  }
}

.wa2-title {
  font-size: clamp(30px, 5.6vw, 46px);
  line-height: 1.12;
  margin: 4px 0 10px;
  font-weight: 900;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, #f5d67b 0%, #ffeab5 45%, #e9bd6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wa2-title span {
  background: linear-gradient(90deg, #ffffff, #c8d1ee 45%, #9aa6c4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wa2-sub {
  color: #9aa6c4;
  max-width: 62ch;
  margin: 0 0 16px;
}

.wa2-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
}

.wa2-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c9d2ea;
  font-size: .98rem;
  line-height: 1.55;
}

.wa2-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffeab5, #f5d67b 70%);
  box-shadow: 0 0 10px rgba(245, 214, 123, .45);
}

.wa2-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wa2-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 12px 16px;
  border-radius: 12px;
  transition: transform .14s ease, filter .14s ease;
}

.wa2-btn--primary {
  color: #0a0f1f;
  background: linear-gradient(135deg, #45e07a 0%, #42d46f 50%, #39c862 100%);
  box-shadow: 0 10px 24px rgba(67, 212, 112, .28), 0 0 30px rgba(67, 212, 112, .30);
}

.wa2-btn--ghost {
  color: #e8eefc;
  background: rgba(255, 255, 255, .06);
  border: 1px solid #223056;
}

.wa2-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* right phone */
.wa2-phone {
  position: relative;
  display: grid;
  place-items: center;
}

.wa2-device {
  width: min(360px, 92vw);
  height: 560px;
  border-radius: 28px;
  padding: 14px 14px 18px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .035) 25%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .035) 75%),
    #0e152b;
  background-size: 260% 260%;
  border: 1px solid #1b2441;
  box-shadow: 0 18px 48px rgba(8, 12, 30, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
  position: relative;
  animation: wa2Sweep 12s linear infinite, wa2Float 6.6s ease-in-out infinite;
}

@media (max-width:420px) {
  .wa2-device {
    height: 490px;
  }
}

.wa2-device::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  padding: 1px;
  background: conic-gradient(from 0deg, #f5d67b, #ffeab5, #e9bd6b, #f5d67b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .18;
  pointer-events: none;
  animation: wa2Ring 24s linear infinite;
}

@keyframes wa2Sweep {
  0% {
    background-position: 0% 50%
  }

  100% {
    background-position: 100% 50%
  }
}

@keyframes wa2Float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-4px)
  }
}

@keyframes wa2Ring {
  to {
    transform: rotate(360deg);
  }
}

.wa2-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9aa6c4;
  font-size: .86rem;
  margin-bottom: 10px;
}

.wa2-status .s-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #45e07a, #39c862);
  box-shadow: 0 0 10px rgba(67, 212, 112, .5);
}

.wa2-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0;
  font-size: .96rem;
  line-height: 1.45;
  position: relative;
}

.wa2-in {
  color: #dfe6ff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid #223056;
  border-bottom-left-radius: 6px;
}

.wa2-out {
  color: #0a0f1f;
  margin-left: auto;
  background: linear-gradient(135deg, #45e07a 0%, #39c862 100%);
  border: 1px solid rgba(57, 200, 98, .6);
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 18px rgba(57, 200, 98, .25);
}

/* typing */
.wa2-typing {
  margin-top: 12px;
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid #223056;
  color: #9aa6c4;
  padding: 8px 12px;
  border-radius: 20px;
}

.wa2-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa6c4;
  opacity: .6;
  animation: wa2Type 1.2s ease-in-out infinite;
}

.wa2-typing span:nth-child(2) {
  animation-delay: .15s;
}

.wa2-typing span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes wa2Type {

  0%,
  100% {
    transform: translateY(0);
    opacity: .6;
  }

  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* floating chips (decor only) */
.wa2-chip {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-size: 18px;
  color: #e8eefc;
  background: rgba(255, 255, 255, .06);
  border: 1px solid #223056;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  animation: wa2Float 7s ease-in-out infinite;
}

.wa2-chip--top {
  top: -8px;
  right: 18px;
}

.wa2-chip--mid {
  bottom: -12px;
  left: 24px;
  animation-delay: .3s;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {

  .wa2-badge,
  .wa2-device,
  .wa2-device::before,
  .wa2-typing span,
  .wa2-chip {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================
   Instagram Section (With Verified Badge)
   ========================= */
.instagram-section {
  background: #0a0f1f;
  color: #e8eefc;
  padding: 72px 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ig-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

/* Avatar Circle */
.ig-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px; 
  background: linear-gradient(135deg, #f5d67b, #ffeab5 50%, #e9bd6b);
  box-shadow: 0 8px 20px rgba(245, 214, 123, 0.25);
}

.ig-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0a0f1f; 
  background-color: #0a0f1f;
}

/* --- Identity Row (Name + Badge) --- */
.ig-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* Space between name and tick */
  margin-bottom: 8px;
}

/* Username */
.ig-username {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0; /* Margin handled by parent .ig-identity */
  background: linear-gradient(90deg, #f5d67b, #ffeab5, #e9bd6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Verified Icon */
.ig-verified {
  width: 22px;
  height: 22px;
  flex-shrink: 0; /* Ensures icon doesn't squish on mobile */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Subtle shadow */
}

/* Bio Text */
.ig-bio {
  color: #9aa6c4;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 380px;
}

/* Buttons Area */
.ig-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* General Button Styles */
.ig-btn {
  display: inline-block;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  border: none;
  cursor: pointer;
}

/* Follow Button */
.ig-btn--follow {
  background: linear-gradient(135deg, #f5d67b, #e9bd6b);
  color: #0a0f1f;
  box-shadow: 0 8px 18px rgba(245, 214, 123, 0.3);
}

/* Message Button */
.ig-btn--message {
  background: rgba(255, 255, 255, 0.05);
  color: #f5d67b;
  border: 1px solid rgba(245, 214, 123, 0.3);
}

/* Hover Effects */
.ig-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .instagram-section {
    padding: 30px 20px;
  }
  
  .ig-avatar {
    width: 100px;
    height: 100px;
  }

  .ig-username {
    font-size: 1.5rem;
  }
  
  .ig-verified {
    width: 20px;
    height: 20px;
  }
  
  .ig-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* =========================
   Contact v4 — Satellite Map, Glass Form & Premium Buttons
   ========================= */
.contact-section-v4 {
  background: #0a0f1f;
  color: #e8eefc;
  padding: 80px 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Background Glow */
.contact-section-v4::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 214, 123, 0.08), transparent 70%);
  pointer-events: none;
}

.cv4-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 Columns Desktop */
  gap: 50px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* --- Left Column: Content --- */
.cv4-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.1;
}

.cv4-title span {
  background: linear-gradient(135deg, #f5d67b, #e9bd6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cv4-sub {
  color: #9aa6c4;
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 45ch;
  line-height: 1.6;
}

/* Satellite Map Frame */
.cv4-map-frame {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(245, 214, 123, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  position: relative;
  margin-bottom: 24px;
}

.cv4-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Visual tweak to enhance satellite look */
  filter: contrast(1.1) saturate(1.1);
}

/* Info List */
.cv4-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv4-info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c9d2ea;
  font-size: 0.95rem;
}

.cv4-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.cv4-info-list a {
  color: #f5d67b;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cv4-info-list a:hover { opacity: 0.8; }


/* --- Right Column: Glass Form --- */
.cv4-form {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cv4-form-title {
  font-size: 1.5rem;
  margin: 0 0 24px;
  color: #fff;
}

/* Input Fields */
.cv4-input-group {
  position: relative;
  margin-bottom: 20px;
}

.cv4-input-group input,
.cv4-input-group textarea {
  width: 100%;
  background: rgba(14, 21, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.cv4-input-group label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: #9aa6c4;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
}

/* Floating Label Animation */
.cv4-input-group input:focus,
.cv4-input-group input:not(:placeholder-shown),
.cv4-input-group textarea:focus,
.cv4-input-group textarea:not(:placeholder-shown) {
  border-color: #f5d67b;
  background: rgba(14, 21, 43, 0.9);
}

.cv4-input-group input:focus ~ label,
.cv4-input-group input:not(:placeholder-shown) ~ label,
.cv4-input-group textarea:focus ~ label,
.cv4-input-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 12px;
  font-size: 0.75rem;
  color: #f5d67b;
  background: #0a0f1f;
  padding: 0 6px;
  border-radius: 4px;
}


/* --- BUTTONS: New Design & Mobile Row Layout --- */

.cv4-actions {
  display: flex;
  flex-direction: row; /* Enforce row direction */
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

/* Pill Button Base */
.cv4-btn {
  flex: 1; /* Equal width */
  position: relative;
  padding: 14px 10px;
  border-radius: 50px; /* Pill shape */
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  outline: none;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* Button Icon Animation */
.btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.cv4-btn:hover .btn-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Email Button (Gold/Dark) */
.cv4-btn--email {
  background: rgba(245, 214, 123, 0.1);
  color: #f5d67b;
  border: 1px solid rgba(245, 214, 123, 0.4);
  box-shadow: 0 0 15px rgba(245, 214, 123, 0.05);
}

.cv4-btn--email:hover {
  background: #f5d67b;
  color: #0a0f1f;
  box-shadow: 0 0 25px rgba(245, 214, 123, 0.4);
  transform: translateY(-3px);
}

/* WhatsApp Button (Green Neon) */
.cv4-btn--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.05);
}

.cv4-btn--whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
  transform: translateY(-3px);
}


/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .cv4-container {
    grid-template-columns: 1fr; /* Stack Left & Right columns */
    gap: 40px;
  }
  
  .cv4-map-frame {
    height: 240px;
  }
}

@media (max-width: 400px) {
  /* Tweak for very small phones to keep buttons in one row */
  .cv4-actions {
    gap: 8px;
  }
  
  .cv4-btn {
    font-size: 0.8rem;
    padding: 12px 6px;
  }
}

/* =========================
   Simple Footer — Premium Dark
   ========================= */
.simple-footer {
  background: #050914;
  /* deep dark background */
  color: #e8eefc;
  padding: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  isolation: isolate;
}

.simple-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(245, 214, 123, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.simple-footer .footer-content {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: #9aa6c4;
}

.simple-footer strong {
  background: linear-gradient(90deg, #f5d67b 0%, #ffeab5 40%, #e9bd6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.simple-footer p {
  margin: 0;
}