/* BASE STYLES & VARIABLES (from root index.html) */
:root {
  --red: #C0392B;
  --red2: #E74C3C;
  --blue: #1A6FC4;
  --blue2: #2389E8;
  --blue-light: #EBF4FF;
  --navy: #0D1F3C;
  --navy2: #1A3560;
  --white: #fff;
  --offwhite: #F0F2F5;
  --text: #1C2333;
  --text2: #3A4A5E;
  --text3: #6B7A90;
  --border: #DDE3EE;
  --ff-head: 'Rajdhani', sans-serif;
  --ff-body: 'Exo 2', sans-serif;
  --ff-mono: 'Share Tech Mono', monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

@keyframes gradslide {
  0% {
    background-position: 0%
  }

  100% {
    background-position: 200%
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 80px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

#navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--blue) 50%, var(--red) 100%);
  background-size: 200%;
  animation: gradslide 4s linear infinite;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0 18px 0 14px;
  border-right: 1px solid var(--border);
  height: 100%;
}

.nav-brand img {
  height: 72px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.nav-brand-fullname {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: .5px;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-brand-tagline {
  font-family: var(--ff-head);
  font-weight: 400;
  font-size: 13px;
  color: red;
  letter-spacing: .5px;
  white-space: nowrap;
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item>a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text2);
  padding: 0 15px;
  height: 100%;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-item>a:hover,
.nav-item>a.active {
  color: var(--blue);
  background: var(--blue-light);
  border-bottom: 3px solid var(--blue);
}

.chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
}

.nav-item:hover>a .chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 270px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s var(--ease);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  padding: 10px 20px;
  border-left: 3px solid transparent;
  transition: all .2s;
}

.dropdown a:hover {
  color: var(--blue);
  background: var(--blue-light);
  border-left-color: var(--blue);
}

.dropdown a.view-all {
  color: var(--blue);
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
}

.dropdown a.view-all:hover {
  background: var(--blue);
  color: #fff;
  border-left-color: var(--blue);
}

.drop-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.drop-div {
  height: 1px;
  background: var(--border);
  margin: 4px 12px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 20px;
}

.nav-phone {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 13px;
}

.nav-phone::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ae60;
  animation: blink 2s infinite;
}

.nav-wa {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background .2s, transform .2s;
}

.nav-wa:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

.mob-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 199;
  padding: 24px 6vw;
  overflow-y: auto;
  flex-direction: column;
}

.mob-menu.open {
  display: flex;
}

.mob-menu a {
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--text2);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}

.mob-menu a:hover {
  color: var(--blue);
}

.mob-section {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blue);
  padding: 18px 0 4px;
  text-transform: uppercase;
  font-family: var(--ff-mono);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}





/* HERO SECTION */
.hero {
  position: relative;
  /* Standardized padding: 160px top, 80px bottom to match About page */
  padding: 160px 5vw 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(3, 13, 30, 0.42) 0%, rgba(5, 21, 48, 0.28) 45%, rgba(3, 13, 30, 0.46) 100%),
    url("../images/cetifciation.png") center / 100% 100% no-repeat,
    linear-gradient(135deg, var(--navy) 0%, var(--navy2) 40%, #0f2b52 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.08), rgba(13, 31, 60, 0.28));
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.06), transparent 42%, rgba(26, 111, 196, 0.08));
  pointer-events: none;
}

.hero-bg {
  display: none; /* Hidden to match About page design which uses ::before/::after */
}

/* Add a subtle glowing effect to the background */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.15) 0%, rgba(13, 31, 60, 0) 70%);
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blue-light);
  font-family: var(--ff-mono);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--red);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--ff-mono);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.2;
}

.section-title span {
  color: var(--red);
}

.section-desc {
  color: var(--text3);
  max-width: 600px;
  margin: 15px auto 0;
  font-size: 18px;
}

/* CERTIFICATION GRID */
.cert-services {
  padding: 60px 0;
  background: var(--offwhite);
}

.cert-intro-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}

.cert-intro-text p {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.cert-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--navy);
  transition: all 0.3s var(--ease);
  z-index: 10;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(13, 31, 60, 0.08);
}

.cert-card:hover::before {
  background: var(--red);
}

.cert-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--offwhite);
}

.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-img img {
  transform: scale(1.05);
}

.cert-content {
  padding: 30px;
  flex-grow: 1;
}

.cert-icon {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.cert-card:hover .cert-icon {
  color: var(--red);
}

.cert-name {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.cert-text {
  color: var(--text2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* WORKFLOW TIMELINE */
.workflow-sec {
  padding: 60px 0;
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  height: 100%;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 20px;
  font-weight: bold;
  z-index: 2;
  flex-shrink: 0;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
  transition: all 0.3s var(--ease);
}

.timeline-item:hover .timeline-icon {
  background: var(--red);
  transform: scale(1.1);
}

.timeline-content {
  margin-left: 30px;
  padding: 20px;
  background: var(--offwhite);
  border-radius: 4px;
  flex-grow: 1;
  border: 1px solid var(--border);
}

.timeline-content h4 {
  font-family: var(--ff-head);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text2);
}

/* STATS */
.stats-sec {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
  border-top: 4px solid var(--red);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 30px;
}

.stat-num {
  font-family: var(--ff-head);
  font-size: 50px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-family: var(--ff-mono);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* MAP SECTION */
.map-sec {
  padding: 60px 0;
  background: var(--white);
}

.map-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.map-content {
  flex: 1;
}

.map-content h2 {
  font-family: var(--ff-head);
  font-size: 36px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.map-content h2 span {
  color: var(--red);
}

.map-content p {
  color: var(--text2);
  margin-bottom: 30px;
  font-size: 18px;
}

.market-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 500;
}

.market-list li i {
  color: var(--red);
  font-size: 20px;
}

.map-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.world-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(192, 57, 43, 0.4);
  border-radius: 50%;
  animation: mapPulse 2s infinite ease-out;
}

@keyframes mapPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.pin-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pin-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: var(--navy) transparent transparent transparent;
}

.map-pin:hover .pin-label {
  opacity: 1;
  visibility: visible;
  top: -35px;
}

/* ACCORDION */
.docs-sec {
  padding: 60px 0;
}

.accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.acc-item {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.acc-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  background: var(--white);
  transition: background 0.3s;
}

.acc-header:hover {
  background: var(--offwhite);
}

.acc-header i {
  color: var(--red);
  transition: transform 0.3s;
  font-size: 16px;
}

.acc-item.active .acc-header i {
  transform: rotate(180deg);
}

.acc-num {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--white);
  background: var(--navy);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  margin-right: 12px;
}

.acc-title-text {
  flex-grow: 1;
}

.acc-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  color: var(--text2);
}

.acc-item.active .acc-content {
  padding: 20px;
  border-top: 1px solid var(--border);
  max-height: 500px;
  /* arbitrary max height */
}

/* CTA */
.cta-sec {
  padding: 80px 0;
  background: var(--navy);
  text-align: center;
  color: var(--white);
}

.cta-container h2 {
  font-family: var(--ff-head);
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.cta-container p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: 30px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 60px 5vw;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-heading {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}

.footer-link {
  display: block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 0;
  transition: color .2s;
}

.footer-link:hover {
  color: var(--blue2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform .2s;
}

.wa-float:hover {
  transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .map-container {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-right .nav-phone,
  .nav-right .nav-wa {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
