/* ==========================================================================
   RDEE Labs — Design System
   ========================================================================== */

:root {
  --primary: #10267d;
  --secondary: #1e40af;
  --accent: #3b82f6;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 38, 125, 0.06);
  --shadow: 0 8px 24px rgba(16, 38, 125, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 38, 125, 0.14);
  --shadow-accent: 0 14px 40px rgba(59, 130, 246, 0.28);

  --gradient-primary: linear-gradient(135deg, #10267d 0%, #1e40af 55%, #3b82f6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(16, 38, 125, 0.06), rgba(59, 130, 246, 0.06));

  --container: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Ragick", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-head {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--accent);
}

.container-xl,
.rd-container {
  max-width: var(--container);
}

.rd-container {
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .rd-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1200px) {
  .rd-container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(16, 38, 125, 0.25);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 38, 125, 0.45);
}

/* ==========================================================================
   Utility / typography
   ========================================================================== */
.text-muted-2 {
  color: var(--muted) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-sm {
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}

.section-head-center {
  text-align: center;
}

.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 13px 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary-grad {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-accent);
}

.btn-primary-grad:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(59, 130, 246, 0.4);
}

.btn-outline-rd {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-outline-rd:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-light-rd {
  background: #fff;
  color: var(--primary);
  border: none;
  box-shadow: var(--shadow);
}

.btn-light-rd:hover {
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-3px);
}

.btn i {
  transition: transform 0.3s var(--ease);
}

.btn:hover i.arrow {
  transform: translateX(4px);
}

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.5);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* ==========================================================================
   Navbar (floating curved rectangle, centered logo)
   ========================================================================== */
.rd-nav {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0;
  transition: top 0.45s var(--ease);
}

.rd-nav-shell {
  width: 95%;
  max-width: 1360px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 38, 125, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(16, 38, 125, 0.12);
  padding: 10px 18px;
  transition:
    box-shadow 0.45s var(--ease),
    background 0.45s var(--ease),
    padding 0.45s var(--ease);
}

.rd-nav.scrolled {
  top: 8px;
}

.rd-nav.scrolled .rd-nav-shell {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(16, 38, 125, 0.18);
  padding: 8px 18px;
}

.rd-nav .nav-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.rd-nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rd-nav-links.left {
  justify-content: flex-start;
}

.rd-nav-links.right {
  justify-content: flex-end;
}

.rd-nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.rd-nav-link:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.rd-nav-link.active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.rd-burger {
  display: none;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  justify-self: end;
}

/* Offcanvas */
.offcanvas.rd-offcanvas {
  background: #fff;
  width: 320px;
}

.rd-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--border);
  padding: 22px 24px;
}

.rd-offcanvas .offcanvas-body {
  padding: 12px 24px 28px;
  display: flex;
  flex-direction: column;
}

.rd-off-link {
  padding: 15px 4px;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    color 0.3s var(--ease),
    padding-left 0.3s var(--ease);
}

.rd-off-link i {
  color: var(--accent);
  width: 22px;
  text-align: center;
}

.rd-off-link:hover {
  color: var(--accent);
  padding-left: 10px;
}

.offcanvas-backdrop.show {
  opacity: 0.55;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 38, 125, 0.92),
    rgba(30, 64, 175, 0.86) 55%,
    rgba(59, 130, 246, 0.78)
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 130px 0 90px;
}

.hero-logo-mark {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  margin: 0 auto 26px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: floaty 6s ease-in-out infinite;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.hero .company {
  font-family: var(--font-head);
  letter-spacing: 0.3em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 18px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 34px;
}

.hero-trust {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-trust i {
  color: var(--success);
}

.scroll-ind {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
}

.scroll-ind .mouse {
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  position: relative;
  margin: 0 auto;
}

.scroll-ind .mouse::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 3px;
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    top: 8px;
  }

  40% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    top: 22px;
  }

  100% {
    opacity: 0;
  }
}

/* floating shapes */
.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  z-index: 1;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.float-shape.s1 {
  width: 260px;
  height: 260px;
  top: 8%;
  left: -60px;
  animation: floaty 9s ease-in-out infinite;
}

.float-shape.s2 {
  width: 180px;
  height: 180px;
  bottom: 12%;
  right: -40px;
  animation: floaty 7s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-22px);
  }
}

/* ==========================================================================
   Cards / components
   ========================================================================== */
.rd-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.rd-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.4);
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease),
    color 0.4s var(--ease);
}

.rd-card:hover .card-icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--gradient-primary);
  color: #fff;
}

.rd-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.rd-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-list i {
  color: var(--success);
  margin-top: 4px;
}

.card-link {
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-link i {
  transition: transform 0.3s var(--ease);
}

.card-link:hover i {
  transform: translateX(5px);
}

/* badges */
.rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.rd-badge.status {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.rd-badge.status.progress {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.25);
}

/* ==========================================================
   PROJECT CARD
========================================================== */

.project-card {
  height: 100%;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 125, 0.08);
  transition: all 0.35s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(16, 38, 125, 0.15);
}

/* ==========================================================
   PROJECT IMAGE AREA
========================================================== */

.project-thumb {
  width: 100%;
  height: 260px;

  background: #f8fafc;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Category badge */

.project-cat {
  position: absolute;

  top: 15px;
  left: 15px;

  z-index: 2;

  background: rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(10px);
}

/* Real project cover image */

.project-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  padding: 12px;

  transition: transform 0.45s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

/* Placeholder fallback */

.project-thumb .ph {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;

  font-size: 3rem;
  font-weight: 800;
}

/* ==========================================================
   PROJECT BODY
========================================================== */

.project-body {
  padding: 25px;

  display: flex;
  flex-direction: column;

  height: calc(100% - 260px);
}

.project-body h3 {
  font-size: 1.35rem;

  font-weight: 700;

  margin-bottom: 12px;
}

.project-body p {
  line-height: 1.7;

  font-size: 0.95rem;

  display: -webkit-box;

  -webkit-line-clamp: 3;

  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* ==========================================================
   TECHNOLOGY BADGES
========================================================== */

.tech-badges {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 20px;
}

.tech-badges span {
  background: #eef3ff;

  color: #10267d;

  font-size: 0.78rem;

  padding: 6px 12px;

  border-radius: 50px;

  font-weight: 600;
}

/* ==========================================================
   CARD LINK
========================================================== */

.card-link {
  margin-top: auto;

  padding-top: 22px;

  color: #10267d;

  font-weight: 700;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  transition: 0.3s;
}

.card-link i {
  transition: 0.3s;
}

.project-card:hover .card-link {
  color: #3b82f6;
}

.project-card:hover .card-link i {
  transform: translateX(5px);
}

/* ==========================================================
   MOBILE RESPONSIVE
========================================================== */

@media (max-width: 768px) {
  .project-thumb {
    height: 220px;
  }

  .project-body {
    padding: 20px;
  }

  .project-body h3 {
    font-size: 1.2rem;
  }
}

/* ==========================================================
   DARK MODE SUPPORT (OPTIONAL)
========================================================== */

@media (prefers-color-scheme: dark) {
  .project-card {
    background: #111827;

    border-color: rgba(255, 255, 255, 0.08);
  }

  .project-thumb {
    background: #0f172a;
  }

  .project-body p {
    color: #cbd5e1;
  }

  .tech-badges span {
    background: rgba(59, 130, 246, 0.15);

    color: #93c5fd;
  }
}

.project-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-size: 1.22rem;
  margin: 10px 0;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tech-badges span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(59, 130, 246, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

/* stats */
.stat {
  text-align: center;
}

.stat .num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .label {
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
}

/* process timeline */
.process-step {
  position: relative;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.process-step .step-no {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: rgba(59, 130, 246, 0.25);
  line-height: 1;
}

.process-step h4 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

.process-step p {
  color: var(--muted);
  margin: 0;
}

/* timeline (project detail) */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.timeline-item h5 {
  margin: 0 0 4px;
}

.timeline-item p {
  color: var(--muted);
  margin: 0;
}

/* testimonials */
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.testi-card .quote {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testi-stars {
  color: #f59e0b;
  margin-bottom: 16px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.testi-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-head);
}

/* CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 70px 40px;
  text-align: center;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: floaty 8s ease-in-out infinite;
}

.cta-band::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
}

.cta-band::after {
  width: 220px;
  height: 220px;
  bottom: -110px;
  left: -60px;
  animation-direction: reverse;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 12px auto 28px;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* accordion */
.accordion-button {
  font-weight: 700;
  color: var(--primary);
  border-radius: var(--radius) !important;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-soft);
  color: var(--secondary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 14px;
  overflow: hidden;
}

/* forms */
.form-control,
.form-select {
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 13px 16px;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* contact info list */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item .ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.contact-item:hover .ci-icon {
  transform: scale(1.08) rotate(-6deg);
}

.contact-item h5 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
}

/* search & filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto 28px;
}

.search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-wrap input {
  padding-left: 46px;
}

/* ==========================================================
   PROJECT GALLERY
========================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  width: 100%;
  height: 320px;

  background: #f8fafc;

  border-radius: 18px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  position: relative;
}

.gallery-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  padding: 10px;

  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.03);
}

/* Image hover overlay */

.gallery-overlay {
  position: absolute;

  inset: 0;

  background: rgba(16, 38, 125, 0.45);

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  transition: 0.3s;

  color: white;

  font-size: 30px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Mobile */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 260px;
  }
}

/* footer */
.rd-footer {
  background: #0b1b4d;
  color: rgba(255, 255, 255, 0.72);
  padding: 74px 0 0;
}

.rd-footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.rd-footer a {
  color: rgba(255, 255, 255, 0.72);
  display: inline-block;
  padding: 5px 0;
}

.rd-footer a:hover {
  color: #fff;
  padding-left: 5px;
  transition: all 0.3s var(--ease);
}

.rd-footer .brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rd-footer .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}

.rd-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.rd-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  padding: 0;
  transition: all 0.3s var(--ease);
}

.rd-social a:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 54px;
  padding: 22px 0;
  font-size: 0.9rem;
}

/* back to top */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1040;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
}

/* service detail hero icon */
.service-hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

/* page-hero (interior) */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--gradient-primary);
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -160px;
  right: -100px;
  animation: floaty 9s ease-in-out infinite;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 14px auto 0;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.breadcrumb-rd {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-rd a {
  color: #fff;
}

/* value / mission tiles */
.value-tile {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.value-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-tile .card-icon {
  margin-bottom: 16px;
}

/* tech stack chips */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.tech-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(59, 130, 246, 0.4);
}

.tech-chip i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* progress bars */
.skill-row {
  margin-bottom: 20px;
}

.skill-row .d-flex {
  margin-bottom: 8px;
  font-weight: 600;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  border-radius: 999px;
  width: 0;
  transition: width 1.4s var(--ease);
}

/* map placeholder */
.map-ph {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  position: relative;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--secondary);
}

.map-ph i {
  font-size: 2.5rem;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-36px);
}

[data-reveal="right"] {
  transform: translateX(36px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].in {
  transform: none;
}

[data-delay="1"] {
  transition-delay: 0.1s;
}

[data-delay="2"] {
  transition-delay: 0.2s;
}

[data-delay="3"] {
  transition-delay: 0.3s;
}

[data-delay="4"] {
  transition-delay: 0.4s;
}

[data-delay="5"] {
  transition-delay: 0.5s;
}

/* parallax */
.parallax-soft {
  will-change: transform;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .rd-nav-links {
    display: none;
  }

  .rd-burger {
    display: block;
  }

  .rd-nav .nav-grid {
    position: relative;
    grid-template-columns: 1fr auto 1fr;
  }

  .rd-logo {
    justify-self: center;
    grid-column: 2;
  }

  .rd-burger {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
  }

  .rd-logo-img {
    height: 34px;
  }

  .section {
    padding: 80px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .hero .lead {
    font-size: 1.05rem;
  }

  .cta-band {
    padding: 50px 22px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .rd-card,
  .value-tile,
  .process-step {
    padding: 26px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.start:hover {
  color: white;
  border: 1px solid white;
}

.rd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.rd-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.rd-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #10267d;
  /* Your primary blue */
  line-height: 1;
}

.rd-logo:hover .rd-logo-img {
  transform: scale(1.05);
}
