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

:root {
  --accent: #4FFFB0;
  --accent-dark: #00D68F;
  --bg: #0A0A0A;
  --bg2: #111;
  --bg3: #161616;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.15);
  --text: #fff;
  --text2: rgba(255, 255, 255, 0.7);
  --text3: rgba(255, 255, 255, 0.4);
  --font-ar: 'Tajawal', sans-serif;
  --font-title-ar: 'Zain', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --radius: 16px;
  --pill: 9999px;
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl
}

body.en {
  font-family: var(--font-en);
  direction: ltr
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title-ar);
}

body.en h1,
body.en h2,
body.en h3,
body.en h4,
body.en h5,
body.en h6 {
  font-family: var(--font-en);
}

.accent {
  color: var(--accent)
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px
}

::-webkit-scrollbar {
  width: 4px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px
}

img {
  max-width: 100%;
  display: block
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease-out, visibility .7s
}

#preloader.gone {
  opacity: 0;
  visibility: hidden
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px
}

.preloader-name {
  font-family: var(--font-en);
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  animation: fadeUp .8s ease-out both
}

.preloader-bar-wrap {
  width: 128px;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  border-radius: 2px;
  overflow: hidden
}

.preloader-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: barAnim 1.6s ease-in-out infinite
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes barAnim {
  0% {
    width: 0;
    margin-left: 0
  }

  50% {
    width: 100%;
    margin-left: 0
  }

  100% {
    width: 0;
    margin-left: 100%
  }
}

/* ===== NAVBAR ===== */
.nav-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none
}

#navbar {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--pill);
  padding: 6px 20px 6px 6px;
  width: 100%;
  max-width: 860px;
  pointer-events: auto;
  transition: all .5s;
  opacity: 0
}

#navbar.show {
  opacity: 1
}

body.en #navbar {
  padding: 6px 6px 6px 20px
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px
}

.nav-logo {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.5px;
  margin-left: 16px;
  flex-shrink: 0
}

body.en .nav-logo {
  margin-left: 0;
  margin-right: 16px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all .3s
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface2)
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  font-family: inherit
}

.lang-btn:hover {
  background: var(--border2);
  transform: translateY(-1px)
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--bg);
  box-shadow: 3px 3px 0 var(--bg);
  transition: all .2s;
  white-space: nowrap
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--bg)
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .15);
  border: none;
  cursor: pointer
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: all .3s
}

.hamburger span:nth-child(1) {
  width: 18px
}

.hamburger span:nth-child(2) {
  width: 12px
}

.hamburger span:nth-child(3) {
  width: 15px
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 18px
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 18px
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1)
}

.mobile-menu.open {
  transform: translateY(0)
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px
}

.mobile-link {
  font-size: 28px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  transition: all .3s
}

.mobile-link:hover {
  color: var(--accent)
}

.mobile-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--bg);
  box-shadow: 4px 4px 0 var(--bg)
}

/* ===== ANIMATIONS ===== */
.h-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease
}

.h-anim.vis {
  opacity: 1;
  transform: translateY(0)
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0)
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg)
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(79, 255, 176, .12) 0%, transparent 60%);
  pointer-events: none
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 24px
}

.hero-center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-top: 128px;
  padding-bottom: 40px
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  color: #0F0F0F;
  margin-bottom: 28px
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse 2s infinite
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 8px #22C55E
  }

  50% {
    box-shadow: 0 0 16px #22C55E, 0 0 4px #22C55E
  }
}

.hero-title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 28px;
  letter-spacing: -1px
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text2);
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 40px
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 36px;
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  font-family: inherit;
  border: 2px solid var(--bg);
  box-shadow: 5px 5px 0 var(--bg)
}

.btn-primary {
  background: var(--accent);
  color: var(--bg)
}

.btn-secondary {
  background: #fff;
  color: var(--bg)
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 var(--bg)
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 3px 3px 0 var(--bg)
}

.btn-full {
  width: 100%;
  justify-content: center
}

.hero-trusted {
  text-align: center
}

.trusted-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2)
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px
}

.tech-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .7;
  transition: all .3s
}

.tech-logo-item:hover {
  opacity: 1;
  transform: translateY(-2px)
}

.tech-logo-item span {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600
}

.tech-logo-item svg {
  filter: brightness(0) invert(1)
}

/* ===== TICKER ===== */
.ticker-section {
  background: var(--bg);
  padding: 60px 0;
  overflow: hidden;
  position: relative
}

.ticker-fade-l,
.ticker-fade-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none
}

.ticker-fade-l {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent)
}

.ticker-fade-r {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent)
}

.ticker-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 16px
}

.ticker-track {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  will-change: transform
}

.ticker-left {
  animation: tickL 60s linear infinite
}

.ticker-right {
  animation: tickR 60s linear infinite
}

@keyframes tickL {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

@keyframes tickR {
  from {
    transform: translateX(-50%)
  }

  to {
    transform: translateX(0)
  }
}

.ticker-pill {
  flex-shrink: 0;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap
}

.ticker-star {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: var(--text);
  flex-shrink: 0
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  min-height: 700px
}

.about-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2
}

.about-pretitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-heading {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 36px;
  line-height: 1.2;
}

.about-card-wrap {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 623 / 985;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid rgba(79, 255, 176, 0.25);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(79, 255, 176, 0.15);
  margin-bottom: 32px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.about-card-wrap:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.7), 0 0 45px rgba(79, 255, 176, 0.3);
  border-color: rgba(79, 255, 176, 0.4);
}

.about-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 8px
}

.about-subtitle {
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px
}

.about-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 650px;
  line-height: 1.9;
  margin-bottom: 0px;
}

.about-desc-container {
  max-width: 900px;
  margin: 30px auto 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

.about-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius)
}

.about-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-en);
  line-height: 1
}

.about-stat-label {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap
}

/* FLOATING PILLS */
.float-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  cursor: default;
  z-index: 5;
  opacity: 0;
  transition: opacity .8s
}

.float-pill.vis {
  opacity: 1;
  animation: floatPill 4s ease-in-out infinite
}

@keyframes floatPill {

  0%,
  100% {
    transform: translateY(0) var(--rot)
  }

  50% {
    transform: translateY(-10px) var(--rot)
  }
}

.fp1 {
  background: #54C5F8;
  top: 10%;
  left: 2%;
  --rot: rotate(-8deg);
  animation-delay: 0s
}

.fp2 {
  background: #FFA000;
  top: 35%;
  left: 4%;
  --rot: rotate(5deg);
  animation-delay: .5s
}

.fp3 {
  background: #00B4AB;
  top: 60%;
  left: 1%;
  --rot: rotate(-3deg);
  animation-delay: 1s
}

.fp4 {
  background: #3DDC84;
  top: 85%;
  left: 5%;
  --rot: rotate(7deg);
  animation-delay: 1.5s
}

.fp5 {
  background: #7C4DFF;
  top: 8%;
  right: 3%;
  --rot: rotate(6deg);
  animation-delay: .3s
}

.fp6 {
  background: #333;
  top: 35%;
  right: 2%;
  --rot: rotate(-5deg);
  animation-delay: .8s
}

.fp7 {
  background: #FF6F00;
  top: 60%;
  right: 4%;
  --rot: rotate(4deg);
  animation-delay: 1.2s
}

.fp8 {
  background: #E91E63;
  top: 85%;
  right: 3%;
  --rot: rotate(-6deg);
  animation-delay: 1.7s
}

/* ===== SECTIONS COMMON ===== */
.section-services,
.section-projects,
.section-experience,
.section-contact {
  padding: 100px 0
}

.section-services {
  background: var(--bg)
}

.section-projects {
  background: var(--bg)
}

.section-experience {
  background: var(--bg2)
}

.section-contact {
  background: var(--bg)
}

.section-header {
  margin-bottom: 48px
}

.section-header.center {
  text-align: center
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(79, 255, 176, .1);
  border: 1px solid rgba(79, 255, 176, .2);
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent)
}

.section-heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.5px
}

/* ===== SERVICES ===== */
.services-deck-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  margin-top: 48px;
}

.services-sticky-deck {
  height: auto;
  width: 100%;
}

.services-deck-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  width: 100%;
  height: auto;
}

.service-card-shell-ar {
  position: relative;
  width: 100%;
  height: auto;
}

.service-card-inner {
  border-radius: 24px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Desktop override (min-width: 769px) */
@media (min-width: 769px) {
  .services-deck-container {
    display: block;
    min-height: 432vh;
  }

  .services-sticky-deck {
    position: sticky;
    top: 110px;
    height: 72vh;
  }

  .services-deck-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .service-card-shell-ar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .service-card-inner {
    padding: 48px;
    min-height: 480px;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Background alternates */
.card-bg-green {
  background: #4FFFB0;
}

.card-bg-white {
  background: #ffffff;
}

/* Typography and items */
.card-large-num {
  position: absolute;
  top: 20px;
  left: 32px;
  font-family: var(--font-en);
  font-size: clamp(80px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  color: rgba(0, 0, 0, 0.05);
}

.card-large-num.light-green-accent {
  color: rgba(79, 255, 176, 0.15);
}

.card-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 10;
  height: 100%;
}

.card-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-box.dark-bg {
  background: rgba(0, 0, 0, 0.06);
}

.card-small-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
}

.card-title.dark-text {
  color: #0A0A0A;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  margin-bottom: 16px;
}

.card-desc.dark-text-muted {
  color: rgba(10, 10, 10, 0.65);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 580px;
}

.card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags-row span {
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #0A0A0A;
}

.card-art-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-art-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
}

.card-art-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card-inner {
    padding: 32px 24px;
    min-height: auto;
  }

  .card-art-box {
    max-width: 220px;
  }

  .card-large-num {
    top: 10px;
    left: 16px;
    font-size: 70px;
  }
}

/* ===== PROJECTS ===== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 32px
}

/* ========== PROJECTS SECTION (ahmedali.online match) ========== */
.section-projects {
  background: #0A0A0A;
  padding: 100px 0;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.proj-card-ar {
  border-radius: 28px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-card-ar.visible {
  opacity: 1;
  transform: translateY(0);
}

.proj-card-inner {
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

@media (min-width: 768px) {
  .proj-card-inner {
    flex-direction: row;
  }

  .proj-card-ar.reverse .proj-card-inner {
    flex-direction: row-reverse;
  }
}

/* Card Skins */
.proj-card-ar.card-green {
  background: #4FFFB0;
}

.proj-card-ar.card-white {
  background: #FFFFFF;
}

/* Left/Right Column: Image */
.proj-img-col {
  position: relative;
  min-height: 350px;
  background: #161616;
  overflow: hidden;
}

@media (min-width: 768px) {
  .proj-img-col {
    width: 55%;
    min-height: 500px;
    flex-shrink: 0;
  }
}

.proj-img-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.proj-card-ar:hover .proj-img-col img {
  transform: scale(1.05);
}

/* Overlays on Image */
.proj-tag-year {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #4FFFB0;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.proj-tag-loc {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.proj-tag-cat {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #0A0A0A;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.proj-card-ar.card-white .proj-tag-cat {
  background: #4FFFB0;
}

/* Info Column */
.proj-info-col {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0A0A0A;
}

@media (min-width: 768px) {
  .proj-info-col {
    padding: 40px;
  }
}

.proj-client-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.proj-client-icon {
  font-size: 18px;
}

.proj-client-name {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

.proj-card-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #0A0A0A;
}

@media (min-width: 768px) {
  .proj-card-title {
    font-size: 32px;
  }
}

.proj-card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .proj-card-desc {
    font-size: 15px;
  }
}

.proj-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.proj-point {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proj-point-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0A0A0A;
  flex-shrink: 0;
}

.proj-card-ar.card-white .proj-point-dot {
  background: #4FFFB0;
}

.proj-point span {
  font-size: 13px;
  font-weight: 600;
  color: #0A0A0A;
}

/* Techs list */
.proj-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.proj-tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.proj-tech-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.proj-card-ar.card-white .proj-tech-icon {
  background: #F4F4F5;
  border-color: #E4E4E7;
}

.proj-tech-label {
  font-size: 10px;
  font-weight: 600;
  color: #0A0A0A;
}

/* Visit Link Button */
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

/* Styling like original button: border and box-shadow */
.proj-card-ar.card-green .proj-link {
  background: #FFFFFF;
  color: #0A0A0A;
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0px 0px #0A0A0A;
}

.proj-card-ar.card-white .proj-link {
  background: #4FFFB0;
  color: #0A0A0A;
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0px 0px #0A0A0A;
}

.proj-link:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px 0px #0A0A0A;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 0 0 0 0
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border);
  top: 0;
  bottom: 0
}

body:not(.en) .timeline::before {
  right: 19px
}

body.en .timeline::before {
  left: 19px
}

.timeline-item {
  position: relative;
  padding-bottom: 40px
}

body:not(.en) .timeline-item {
  padding-right: 60px
}

body.en .timeline-item {
  padding-left: 60px
}

.tl-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg);
  top: 6px;
  box-shadow: 0 0 12px rgba(79, 255, 176, .3)
}

body:not(.en) .tl-dot {
  right: 10px
}

body.en .tl-dot {
  left: 10px
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s
}

.tl-card:hover {
  border-color: rgba(79, 255, 176, .25)
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px
}

.tl-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px
}

.tl-company {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700
}

.tl-date {
  font-size: 12px;
  color: var(--text3);
  background: var(--surface2);
  padding: 4px 14px;
  border-radius: var(--pill);
  white-space: nowrap;
  font-family: var(--font-en)
}

.tl-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tl-tags span {
  padding: 4px 12px;
  background: rgba(79, 255, 176, .08);
  border: 1px solid rgba(79, 255, 176, .15);
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent)
}

/* ===== CONTACT ===== */
.contact-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .3s
}

.contact-card:hover {
  border-color: rgba(79, 255, 176, .3);
  transform: translateX(-4px);
  background: rgba(79, 255, 176, .03)
}

body.en .contact-card:hover {
  transform: translateX(4px)
}

.cc-icon {
  font-size: 24px;
  flex-shrink: 0
}

.cc-label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px
}

.cc-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px
}

.cc-arrow {
  margin-inline-start: auto;
  color: var(--text3);
  font-size: 18px;
  transition: all .3s
}

.contact-card:hover .cc-arrow {
  color: var(--accent);
  transform: translateX(-4px)
}

body.en .contact-card:hover .cc-arrow {
  transform: translateX(4px)
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2)
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all .3s;
  outline: none;
  resize: none
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(79, 255, 176, .4);
  background: rgba(79, 255, 176, .03)
}

/* ===== FOOTER RE-DESIGN ===== */
.footer {
  background: var(--accent);
  /* #4FFFB0 */
  color: #0d1b15;
  padding: 80px 0 0 0;
  position: relative;
  z-index: 10;
}

.footer-cta {
  text-align: center;
  margin-bottom: 60px;
}

.footer-cta-pre {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.7);
  display: block;
}

.footer-cta-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
}

.footer-cta-desc {
  font-size: 16px;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.footer-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-btn-primary {
  background: #ffffff;
  color: #000000;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1.5px solid #ffffff;
}

.footer-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.footer-btn-secondary {
  background: transparent;
  color: #000000;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  border: 1.5px solid #000000;
  transition: all 0.3s ease;
}

.footer-btn-secondary:hover {
  background: #000000;
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-col-about h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-col-about p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 24px;
  max-width: 320px;
}

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

.footer-social-circle {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-circle:hover {
  transform: scale(1.1);
  background: #000000;
  color: #ffffff;
}

.footer-col-nav h4,
.footer-col-contact h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.9);
}

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

.footer-nav-links a {
  color: #0d1b15;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.footer-nav-links a:hover {
  opacity: 1;
  transform: translateX(-4px);
}

body.en .footer-nav-links a:hover {
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
}

.footer-contact-item.link-hover {
  color: #0d1b15;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-contact-item.link-hover:hover {
  opacity: 1;
}

.footer-btn-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
}

.footer-btn-top:hover {
  background: #000000;
  color: var(--accent);
}

.footer-bottom-bar {
  background: #050d0a;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-inner a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .proj-card-inner {
    flex-direction: column !important;
  }

  .proj-card-ar.reverse .proj-card-inner {
    flex-direction: column !important;
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .float-pill {
    display: none !important
  }
}

@media(max-width:768px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .hamburger {
    display: flex
  }

  .hero-center {
    padding-top: 100px
  }

  .section-services,
  .section-projects,
  .section-experience,
  .section-contact {
    padding: 70px 0
  }

  .about-section {
    padding: 70px 0
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .hero-btns {
    flex-direction: column;
    align-items: center
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center
  }

  .about-stats {
    gap: 16px
  }

  .about-stat {
    padding: 12px 20px
  }
}

@media(max-width:480px) {
  .trusted-logos {
    gap: 20px
  }

  .hero-title {
    font-size: 26px
  }
}

/* ========== METHODOLOGY ========== */
.section-methodology {
  padding: 100px 0;
  position: relative;
  background: #0A0A0A;
}

.hiw-header-ar {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.hiw-header-ar.visible {
  opacity: 1;
  transform: translateY(0);
}

.ar-script {
  font-family: var(--font-ar);
  /* fallback */
  font-size: 20px;
  color: #4FFFB0;
  margin-bottom: 12px;
  font-weight: 500;
}

.ar-heading {
  font-family: var(--font-ar);
  font-size: 32px;
  color: #fff;
  font-weight: 700;
}

@media (min-width: 768px) {
  .ar-script {
    font-size: 24px;
  }

  .ar-heading {
    font-size: 48px;
  }
}

.hiw-steps {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Vertical line */
.hiw-line-bg {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 156px;
  /* RTL right */
  width: 2px;
  background: rgba(79, 255, 176, 0.15);
  z-index: 10;
}

.hiw-line-progress {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 156px;
  /* RTL right */
  width: 2px;
  transform-origin: top;
  background: linear-gradient(to bottom, #4FFFB0, rgba(79, 255, 176, 0.15));
  transform: scaleY(0);
  /* Controlled by JS */
  will-change: transform;
  z-index: 11;
}

@media (max-width: 768px) {

  .hiw-line-bg,
  .hiw-line-progress {
    display: none !important;
  }
}

.hiw-step-ar {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.hiw-step-ar.visible {
  opacity: 1;
  transform: translateY(0);
}

.hiw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  padding: 48px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .hiw-grid {
    grid-template-columns: 160px 1fr;
    gap: 48px;
    padding: 64px 0;
  }
}

/* Hover background */
.hiw-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -24px;
  left: -24px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 80% 50%, rgba(79, 255, 176, 0.03), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hiw-step-ar:hover .hiw-glow {
  opacity: 1;
}

.hiw-num-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

@media (min-width: 768px) {
  .hiw-num-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.hiw-num {
  font-family: var(--font-en);
  font-size: 60px;
  line-height: 1.3;
  background: linear-gradient(180deg, #4FFFB0 0%, rgba(79, 255, 176, 0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hiw-num {
    font-size: 88px;
  }
}

.hiw-dot-wrap {
  position: absolute;
  right: 150px;
  top: 64px;
  /* Centered vertically relative to the 88px number row */
  display: none;
}

@media (min-width: 768px) {
  .hiw-dot-wrap {
    display: block;
  }
}

.hiw-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4FFFB0;
  box-shadow: 0 0 12px rgba(79, 255, 176, 0.5);
  position: relative;
}

.hiw-dot-ping {
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4FFFB0;
  opacity: 0.2;
  animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.hiw-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .hiw-title {
    font-size: 36px;
  }
}

.hiw-step-ar:hover .hiw-title {
  color: #4FFFB0;
}

.hiw-sub {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(79, 255, 176, 0.6);
  margin-bottom: 20px;
}

.hiw-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hiw-desc {
    font-size: 16px;
  }
}

.hiw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hiw-pill {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(79, 255, 176, 0.06);
  color: #4FFFB0;
  border: 1px solid rgba(79, 255, 176, 0.12);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.hiw-pill:hover {
  background: rgba(79, 255, 176, 0.15);
  border-color: rgba(79, 255, 176, 0.3);
}

/* ===== FLOATING WHATSAPP ===== */
.wa-float-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ===== FLOATING CHATBOT ===== */
.chat-toggle-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.chat-tooltip {
  position: absolute;
  bottom: 8px;
  right: 68px;
  background: #ffffff;
  color: #0a0a0a;
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

body.en .chat-tooltip {
  right: auto;
  left: 68px;
  transform: translateX(-15px);
}

.chat-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
}

body.en .chat-tooltip::after {
  right: auto;
  left: -6px;
}

.chat-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.chat-toggle-btn {
  width: 56px;
  height: 56px;
  background: #4FFFB0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 255, 176, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
  background: #3ee69c;
}

.chat-toggle-btn svg {
  stroke: #0a0a0a;
}

/* Chat Window - Light Premium Theme */
.chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 560px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.en .chat-window {
  right: auto;
  left: 24px;
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.chat-header {
  padding: 16px 20px;
  background: #4FFFB0;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #ffffff;
}

.chat-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #22C55E;
  border: 2px solid #4FFFB0;
  border-radius: 50%;
}

.chat-header-info {
  flex-grow: 1;
}

.chat-header-name {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
}

.chat-header-status {
  font-size: 11px;
  color: rgba(10, 10, 10, 0.6);
  margin-top: 1px;
  font-weight: 500;
}

.chat-close-btn {
  background: rgba(10, 10, 10, 0.05);
  border: none;
  color: #0a0a0a;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.chat-close-btn:hover {
  background: rgba(10, 10, 10, 0.1);
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chat-msg.bot {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

body.en .chat-msg.bot {
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: #0a0a0a;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-left-radius: 4px;
}

body.en .chat-msg.user {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

/* Suggestions Area */
.chat-suggestions {
  padding: 12px 20px;
  background: #f8f9fa;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: none;
}

.chat-sug-btn {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chat-sug-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #0a0a0a;
}

/* Typing Indicator */
.chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  animation: chat-typing 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.chat-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes chat-typing {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1.0);
  }
}

/* Input Area */
.chat-input-area {
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.chat-input-row {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 9999px;
  padding: 4px 8px 4px 16px;
  gap: 8px;
}

body.en .chat-input-row {
  padding: 4px 16px 4px 8px;
}

.chat-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #1f2937;
  font-size: 13.5px;
  font-family: inherit;
  resize: none;
  height: 20px;
  padding: 6px 0;
  line-height: 20px;
}

.chat-send-btn {
  background: #0a0a0a;
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  background: #1f2937;
}

.chat-send-btn svg {
  stroke: #ffffff;
}

@media(max-width: 480px) {
  .chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
}

/* ===== CERTIFICATES SECTION ===== */
.section-certificates {
  padding: 100px 0;
  background: var(--bg2);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.cert-card {
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.cert-card.card-green {
  background: #4FFFB0;
  color: #0d1b15;
}

.cert-card.card-white {
  background: #ffffff;
  color: #0d1b15;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cert-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.card-green .cert-badge {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #0d1b15;
}

.card-white .cert-badge {
  background: rgba(79, 255, 176, 0.1);
  border: 1px solid rgba(79, 255, 176, 0.3);
  color: #00aa66;
}

.cert-provider {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}

.cert-title {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.cert-desc {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 30px;
}

.cert-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  font-size: 12px;
  font-weight: 600;
}

.card-green .cert-meta span {
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: 100px;
  opacity: 0.9;
}

.card-white .cert-meta span {
  background: #f4f6f5;
  padding: 6px 12px;
  border-radius: 100px;
  opacity: 0.9;
  color: #555;
}

.cert-btn-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.card-green .cert-btn-verify {
  background: #0d1b15;
  color: #ffffff;
}

.card-green .cert-btn-verify:hover {
  background: #1a352a;
}

.card-white .cert-btn-verify {
  background: #4FFFB0;
  color: #0d1b15;
}

.card-white .cert-btn-verify:hover {
  background: #3ee69d;
}

@media (max-width: 768px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    padding: 30px;
    min-height: auto;
  }
}