* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #ffffff;
}

.curtain-overlay {
    background: #3a7afe;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: curtainSlideFade 1.5s ease forwards;
}

@keyframes curtainSlideFade {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }
    80% {
        transform: translateY(-100%);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}


/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.main-header .container {
    max-width: 1400px;
    margin: auto;
    padding: 15px 30px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}



/* -----------------------------------------------------------
   BRANDING
----------------------------------------------------------- */
.branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #04034f;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin-bottom: 20px;
    font-size: 30px;
    letter-spacing: 0.5px;
}
.brand-title sup {
    font-size: 34px;
    vertical-align: super;
    margin-left: 2px;
}
 sup {
    font-size: 24px;
    vertical-align: super;
    margin-left: 2px;
}
@media (max-width: 480px) {
    .brand-title sup {
        font-size: 20px;     /* reduce superscript size */
        top: -0.4em;         /* fine adjustment */
        position: relative;
    }
}
/* -----------------------------------------------------------
   DESKTOP NAVIGATION
----------------------------------------------------------- */
.nav-menu {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s ease;
    padding-bottom: 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #1a73e8;
    border-bottom: 2px solid #1a73e8;
}

/* Store Icons */
.nav-store-item i {
    font-size: 1.3rem;
    color: #1a73e8;
    transition: 0.3s ease;
}

.nav-store-item i:hover {
    transform: scale(1.2);
}



/* -----------------------------------------------------------
   HAMBURGER BUTTON
----------------------------------------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 5px;
    transition: 0.3s;
}



/* -----------------------------------------------------------
   MOBILE OVERLAY (SLIDE PANEL)
----------------------------------------------------------- */

.mobile-overlay {
    position: fixed;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    top: 0;
    right: -100%;
    width: 58%;
    height: 100%;
    background: #ffffffee;
    backdrop-filter: blur(8px);
    padding: 100px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.18);
    transition: right 0.4s ease-in-out;
    z-index: 999;   /* BELOW HEADER */
}

.mobile-overlay.active {
    right: 0;
}

/* Prevent overlay from hiding header */
.main-header {
    z-index: 1000 !important;
}

.mobile-links {
    list-style: none;
}

.mobile-links li {
    margin: 22px 0;
}

.mobile-links a {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: #04034f;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s ease;
}

/* Hover effects */
.mobile-links a:hover {
    color: #1a73e8;
    transform: translateX(6px);
}

.mobile-links a i {
    font-size: 1.35rem;
    color: #1a73e8;
}
/* ===============================
   MOBILE DROPDOWN – FONT MATCH FIX
================================ */

/* Main dropdown button (Products, Solutions) */
.mobile-dropbtn,
.mobile-sub-dropbtn {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.25rem;          /* SAME as .mobile-links a */
    font-weight: 600;
    color: #04034f;              /* SAME navy color */
    padding: 1px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Hover effect – same as links */
.mobile-dropbtn:hover,
.mobile-sub-dropbtn:hover {
    color: #1a73e8;
    transform: translateX(6px);
}
.mobile-dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropbtn .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Arrow color */
.mobile-dropdown .arrow,
.mobile-sub-dropdown .arrow {
    color: #1a73e8;
    font-size: 0.9rem;
}

/* Submenu links */
.mobile-submenu a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #04034f;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.mobile-submenu a:hover {
    color: #1a73e8;
    transform: translateX(6px);
}
.mobile-dropbtn i {
    color: #1a73e8; /* icon always blue */
}
.mobile-dropbtn span.left {
    color: #04034f; /* text navy */
}


/* === DROPDOWN STYLES === */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #222;
    transition: color 0.2s ease;
}

.dropbtn:hover {
    color: #1a73e8;
}

.dropbtn::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.25s ease, border-top-color 0.2s ease;
}

.dropbtn:hover::after,
.dropbtn.open::after {
    border-top-color: #1a73e8;
}

.dropbtn.open::after {
    transform: rotate(180deg);
}

/* === ENHANCED DROPDOWN PANEL === */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08),
                0 4px 8px rgba(0, 0, 0, 0.05);
    list-style: none;
    margin-top: 0; 
    padding: 8px 0;
    z-index: 1001;
    max-height: 320px; 
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    visibility: hidden;
}
/* MAIN DROPDOWN (Products, Solutions etc.) */
.mobile-dropbtn {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;                 /* Stronger */
    color: #04034f;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
}

/* SUB DROPDOWN (Automotive, Consumer etc.) */
.mobile-sub-dropbtn {
    width: 100%;
    background: #f7f9ff;              /* light background */
    border: none;
    font-size: 1.15rem;               /* slightly smaller */
    font-weight: 600;
    color: #04034f;
    padding: 8px 0 8px 14px;          /* indentation */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
}

/* deeper levels */
.mobile-submenu .mobile-sub-dropdown .mobile-sub-dropbtn {
    padding-left: 28px;               /* deeper indent */
    font-size: 1.05rem;
    background: #ffffff;
}

/* Hover effect */
.mobile-dropbtn:hover,
.mobile-sub-dropbtn:hover {
    color: #1a73e8;
    transform: translateX(6px);
}

/* Arrow style difference */
.mobile-dropdown .arrow {
    font-size: 1rem;
}

.mobile-sub-dropdown .arrow {
    font-size: 0.8rem;
}

/* Submenu links */
.mobile-submenu a {
    font-size: 1rem;
    font-weight: 500;
    color: #04034f;
    padding: 8px 0 8px 40px;   /* align with deeper level */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.mobile-submenu a:hover {
    color: #1a73e8;
    transform: translateX(6px);
}

/* icon color */
.mobile-dropbtn i {
    color: #1a73e8;
}

.mobile-dropbtn span.left {
    color: #04034f;
}


.store-dropdown {
    position: relative;
}

.store-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
}

.store-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 6px 0;
    display: none;
}



.store-menu li a:hover {
    background: #f3f6ff;
    color: #1a73e8;
}

.store-dropdown.active .store-menu {
    display: block;
}
.store-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #04034f;
    text-decoration: none;
    font-size: 0.95rem;
}

.app-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

/* ---------------------------
   Slim Modern Scrollbar
--------------------------- */

/* Chrome, Edge, Safari */
.dropdown-content::-webkit-scrollbar {
    width: 6px;              /* thinner width */
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent; /* clean look */
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45);
}


/* Firefox */
.dropdown-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.25) transparent;
}

.dropdown:hover > .dropdown-content,
.dropdown-content:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.sub-dropdown.active .sub-dropdown-content {
    display: block;
}


/* Show with animation */
/* KEEP DROPDOWN OPEN WHEN HOVERING INSIDE */
/* ===============================
   MOBILE DROPDOWN DEFAULT STATE
================================ */

/* Hide all mobile submenus by default */
.mobile-submenu {
    display: none;
}

/* Show only when active */
.mobile-dropdown.active > .mobile-submenu,
.mobile-sub-dropdown.active > .mobile-submenu {
    display: block;
}


.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

/* Optional: Add subtle icons (using Font Awesome) */
.dropdown-content a::before {
    content: '●';
    color: #1a73e8;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-content a:hover::before {
    opacity: 1;
}

.dropdown-content a:hover {
    background-color: #f0f7ff;
    color: #0d5ab3;
    transform: translateX(4px);
}

/* Divider (optional — for "All Products" header) */
.dropdown-content .divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.08), transparent);
    margin: 6px 0;
    border: none;
}

/* Optional: Add small subtle label (e.g., “Featured”) */
.dropdown-content .tag {
    font-size: 0.75rem;
    background: #e6f0ff;
    color: #1a73e8;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 600;
}

/* === SUB-DROPDOWN (2nd LEVEL) === */
.sub-dropdown {
    position: relative;
}

/* Clickable button */
.sub-dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
}

/* Hover only for visual feedback (NOT opening) */
.sub-dropbtn:hover {
    background-color: #f0f7ff;
    color: #0d5ab3;
}

/* Arrow rotation */
.sub-dropdown.active .arrow {
    transform: rotate(180deg);
}

/* Submenu (hidden by default) */
.sub-dropdown-content {
    display: none;
    margin-left: 12px;
    padding-left: 12px;
}

.sub-dropdown.active .sub-dropdown-content {
    display: block;
}

/* Submenu links */
.sub-dropdown-content li a {
    display: block;
    padding: 10px 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sub-dropdown-content li a:hover {
    background-color: #e6f0ff;
    color: #1a73e8;
    padding-left: 24px;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 991px) {
    .brand-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 813px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .brand-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 45px;
    }

    .brand-title {
        font-size: 0.9rem;
    }
}



/* ************************************************************************************************************************ */



/* ------------------- FOOTER ------------------- */
.footer {
  background: #04034f;
  color: #ffffff;
  padding: 50px 20px 20px;
  margin-top: 60px;
  border-top: 3px solid #3a7afe;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s ease;
}

.footer-col ul li a:hover {
  color: #3a7afe;
  transform: translateX(5px);
}

/* ------ Social Icons ------ */
.social-icons {
  text-align: center;
  margin-bottom: 15px;
}

.social-icons a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 20px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #3a7afe;
  transform: scale(1.2);
}

/* ------ Bottom Text ------ */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #bbbbbb;
}

.footer-bottom p {
  margin-top: 10px;
}
.footer-catalogue {
  margin: 20px 0;
}

.catalogue-btn {
  display: inline-flex;
  gap: 10px;
  padding: 12px 22px;
  background: #1c69ff;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.catalogue-btn i {
  font-size: 16px;
}

.catalogue-btn:hover {
  background: #04034f;
  transform: translateY(-2px);
}




    /* ================================
   R&D HERO SECTION
================================ */
.rd-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  margin-top: 80px;
  color: #ffffff;
  overflow: hidden;
}


.rd-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(120deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.6)),
    url("https://placehold.co/1920x1080/0f172a/2563eb?text=Embedded+Systems")
    center center / cover no-repeat;

  z-index: -1;
}




.rd-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

/* LEFT CONTENT */
.rd-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.rd-content p {
  max-width: 520px;
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 35px;
}

.rd-actions {
  display: flex;
  gap: 16px;
}

/* BUTTONS */
.btn {
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

/* RIGHT VISUAL */
.rd-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(37, 99, 235, 0.25);
}

.image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TAGS */
.tag {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
  backdrop-filter: blur(6px);
}

.tag-top {
  top: 40px;
  right: 40px;
}

.tag-bottom {
  bottom: 40px;
  right: 80px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .rd-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rd-actions {
    justify-content: center;
  }

  .rd-visual {
    margin-top: 40px;
  }
}


@keyframes floatUpDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes floatReverse {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(12px); }
  100% { transform: translateY(0); }
}


.tag {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
  backdrop-filter: blur(8px);

  /* Animation */
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.tag-top {
  top: 40px;
  right: 40px;
  animation-name: floatUpDown;
}

.tag-bottom {
  bottom: 40px;
  right: 80px;
  animation-name: floatReverse;
  animation-duration: 5s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.rd-content h1 {
  animation: fadeUp 0.8s ease forwards;
}

.rd-content p {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.15s;
}

.rd-actions {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.3s;
}


@media (max-width: 992px) {
  .rd-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rd-content h1 {
    font-size: 42px;
  }

  .rd-visual {
    margin-top: 50px;
  }
}

@media (max-width: 462px) {
  .rd-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .rd-content h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  .rd-content p {
    font-size: 16px;
  }

  .rd-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .image-circle {
    width: 260px;
    height: 260px;
  }

  .tag-top {
    top: 10px;
    right: 10px;
  }

  .tag-bottom {
    bottom: 10px;
    right: 20px;
  }
}


   /* ================================
   R&D CAPABILITIES
================================ */
.rd-capabilities {
  padding: 90px 20px;
  background: #f8fafc;
}

.rd-cap-container {
  max-width: 1200px;
  margin: auto;
}

.rd-cap-header {
  text-align: center;
  margin-bottom: 60px;
}

.rd-cap-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #0f172a;
}

.rd-cap-header p {
  font-size: 18px;
  color: #475569;
  max-width: 680px;
  margin: auto;
}

/* GRID */
.rd-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* CARD */
.rd-cap-card {
  background: #ffffff;
  padding: 40px 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rd-cap-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

/* ICON CIRCLE */
.cap-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

/* TEXT */
.rd-cap-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.rd-cap-card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .rd-cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .rd-cap-grid {
    grid-template-columns: 1fr;
  }

  .rd-cap-header h2 {
    font-size: 32px;
  }
}
/* ================================
   CAPABILITIES ANIMATIONS
================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}
.rd-cap-card {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Stagger delay */
.rd-cap-card:nth-child(1) { animation-delay: 0.1s; }
.rd-cap-card:nth-child(2) { animation-delay: 0.25s; }
.rd-cap-card:nth-child(3) { animation-delay: 0.4s; }
.rd-cap-card:nth-child(4) { animation-delay: 0.55s; }


/* ================================
   EMBEDDED SERVICES
================================ */
.embedded-services {
  position: relative;
  padding: 90px 20px;
  background: 
    linear-gradient(rgba(2,6,23,0.6), rgba(2,6,23,0.6)),
    url('../assets/embedded-service.webp') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}


.es-container {
  max-width: 1100px;
  margin: auto;
}

/* Header */
.es-header {
  text-align: center;
  margin-bottom: 70px;
}

.es-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.es-header p {
  font-size: 18px;
  color: #fff;
  max-width: 720px;
  margin: auto;
}

/* List */
.es-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Item */
.es-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: flex-start;
  gap: 40px;
}

/* Rail + index */
.es-rail {
  position: relative;
}

.es-rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #2563eb,
    rgba(37, 99, 235, 0.15)
  );
  transform: translateX(-50%);
}

.es-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* Content */
.es-content {
  max-width: 640px;
}

.es-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.es-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.es-content p {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .es-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .es-rail::before {
    display: none;
  }
}

/* Fade-up for content */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon pulse */
@keyframes iconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.3);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255,255,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

/* Apply animations */
.es-item {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Stagger each item */
.es-item:nth-child(1) { animation-delay: 0.1s; }
.es-item:nth-child(2) { animation-delay: 0.25s; }
.es-item:nth-child(3) { animation-delay: 0.4s; }

.es-icon {
  animation: iconPulse 2.5s infinite;
}




/* ================================
   IMPACT SECTION
================================ */
.impact-section {
  position: relative;
  padding: 100px 20px;
  background: url('../assets/service-page-img.png') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
  margin-top: 30px;
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,80,0.6); /* overlay for readability */
  z-index: 0;
}

.impact-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  z-index: 1;
}

.impact-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
}

.impact-header p {
  font-size: 18px;
  margin-bottom: 60px;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}

.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.impact-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

.impact-item p {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .impact-stats {
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .impact-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .impact-number {
    font-size: 36px;
  }

  .impact-header h2 {
    font-size: 32px;
  }
}



/* ================================
   RECENT PROJECTS
================================ */
.recent-projects {
  padding: 90px 20px;
  background: #f8fafc;
  text-align: center;
}

.rp-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.rp-header p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.rp-card {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.8s ease, transform 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
}

.rp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.12);
}

.rp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 20px;
}

.rp-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

/* ================================
   TESTIMONIALS
================================ */
.testimonials {
  padding: 90px 20px;
  background: #ffffff;
  text-align: center;
}

.testi-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.testi-header p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testi-card {
  background: #f1f5f9;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testi-card p {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testi-card h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.testi-card span {
  font-size: 14px;
  color: #64748b;
}

/* ================================
   CALL TO ACTION
================================ */
.cta-section {
  padding: 90px 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  text-align: center;
  color: #ffffff;
  border-radius: 20px;
  margin: 60px 20px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-section .btn {
  font-size: 16px;
  padding: 14px 30px;
}

/* ================================
   Responsive
================================ */
@media (max-width: 992px) {
  .rp-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .rp-grid { grid-template-columns: 1fr; }
}

/* ================================
   Scroll Animation Class
================================ */
.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}



    
/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  display: none;
  z-index: 1001;
}

/* Header */
.chat-header {
  background: #0b3c52;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
}

.chat-header .status {
  font-size: 12px;
  color: #9effc4;
}

.close-btn {
  font-size: 22px;
  cursor: pointer;
}

/* Body */
.chat-body {
  padding: 15px;
  background: #f4efe8;
}

.chat-message {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Footer */
.chat-footer {
  padding: 15px;
  text-align: center;
}

.start-chat-btn {
  display: block;
  background: #25d366;
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 6px;
}

.start-chat-btn:hover {
  background: #1ebe5d;
}

.chat-footer small {
  color: #777;
}