/* ============================================
   CERTIFICATES CSS - GET Enterprises
   Gallery-style bubble animations
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f8fafc; --white: #fff; --alt: #f3f7fa; --navy: #0b1623;
  --text: #1d2939; --secondary: #667085; --orange: #f26a21;
  --orange2: #ff8a1e; --line: #e4ebf2;
  --head: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --body: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); overflow-x: hidden;
}

/* ============================================
   PROGRESS BAR & GLOW
   ============================================ */
.progress {
  position: fixed; z-index: 1000; top: 0; left: 0; height: 3px;
  background: var(--orange); box-shadow: 0 0 12px rgba(242,106,33,.35);
  transition: width 0.08s linear;
}
.glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,138,30,.05), transparent 68%);
  pointer-events: none; z-index: 0;
}

/* ============================================
   BACKGROUND BUBBLES
   ============================================ */
.bubbles-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(242,106,33,.15), rgba(242,106,33,.05));
  border: 1px solid rgba(242,106,33,.08);
  animation: floatBubble 8s ease-in-out infinite;
}
.bubble::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30%;
  height: 25%;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-20px) scale(1.05); opacity: 0.9; }
  50% { transform: translateY(-10px) scale(0.95); opacity: 0.7; }
  75% { transform: translateY(-30px) scale(1.02); opacity: 0.8; }
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed; z-index: 100; inset: 0 0 auto; height: 116px;
  padding: 0 6vw; display: flex; align-items: center;
  justify-content: space-between; transition: 0.4s;
  background: transparent;
}
header.scrolled {
  height: 88px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px); border-bottom: 1px solid rgba(228,235,242,.8);
  box-shadow: 0 8px 28px rgba(11,22,35,.055);
}
.logo { 
  width: 420px; 
  height: 110px; 
  display: block; 
  flex-shrink: 0;
}
.logo img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

nav { display: flex; gap: 38px; align-items: center; }
nav a, .nav-dropdown > a {
  color: var(--secondary); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .6px;
  padding: 10px 0; cursor: pointer; position: relative;
  background: transparent; border: none;
}
nav a:after, .nav-dropdown > a:after {
  content: ''; position: absolute; left: 0; bottom: 2px;
  width: 0; height: 2px; border-radius: 3px;
  background: var(--orange); transition: .3s;
}
nav a:hover:after, .nav-dropdown > a:hover:after,
nav .active:after { width: 100%; }
nav .active { color: var(--navy); }

.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown > a { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
}
.nav-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
  transition: 0.2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 38px; left: 0; min-width: 200px;
  background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 0; box-shadow: 0 18px 40px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.25s ease; display: flex; flex-direction: column;
  gap: 4px; z-index: 50;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  padding: 10px 24px; font-size: 13px; color: var(--text);
  text-decoration: none; font-weight: 500; letter-spacing: 0;
  transition: 0.2s; border-radius: 6px;
}
.dropdown-menu a:hover { background: var(--alt); color: var(--orange); }

.menu { display: none; background: none; border: 0; flex-direction: column; gap: 6px; }
.menu i { display: block; width: 26px; height: 2px; background: var(--navy); }

/* ============================================
   CERT HERO
   ============================================ */
.cert-hero {
  position: relative;
  z-index: 1;
  min-height: 35vh;
  padding: 175px 8vw 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,.7) 0%, rgba(248,250,252,.5) 55%, rgba(243,247,250,.3) 100%);
}
.hero-content {
  max-width: 800px;
}
.hero-content .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--orange);
  text-transform: uppercase;
}
.hero-content h1 {
  font: 700 clamp(44px, 5.5vw, 70px)/1.05 var(--head);
  letter-spacing: -.045em;
  color: var(--navy);
  margin: 16px 0 20px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-content p {
  color: var(--secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CERTIFICATE CONTENT
   ============================================ */
.cert-content {
  position: relative;
  z-index: 1;
  padding: 20px 8vw 80px;
  background: transparent;
}
.cert-content .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== CERT CARD ===== */
.cert-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 45px 45px 40px;
  margin-bottom: 45px;
  border: 1px solid rgba(228,235,242,.6);
  box-shadow: 0 8px 30px rgba(0,0,0,.03);
  transition: 0.3s;
}
.cert-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  border-color: rgba(242,106,33,.15);
}

/* Cert Header */
.cert-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line);
}
.cert-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 30px;
  background: rgba(242,106,33,.10);
  color: var(--orange);
  margin-bottom: 10px;
}
.cert-header h2 {
  font: 700 clamp(28px, 3vw, 38px)/1.15 var(--head);
  color: var(--navy);
  letter-spacing: -.03em;
}
.cert-subtitle {
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 4px;
}

/* Cert Body - Single column, centered image */
.cert-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.cert-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--alt);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  max-width: 100%;
  width: auto;
}
.cert-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.3s;
  max-height: 600px;
  object-fit: contain;
}
.cert-image:hover img {
  transform: scale(1.02);
}

/* ===== SUMMARY SECTION ===== */
.cert-summary {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 45px 45px 40px;
  border: 1px solid rgba(228,235,242,.6);
  margin-top: 20px;
}
.cert-summary h3 {
  font: 700 clamp(26px, 2.5vw, 36px)/1.15 var(--head);
  color: var(--navy);
  margin-bottom: 16px;
  text-align: center;
}
.cert-summary > p {
  text-align: center;
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto 35px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.summary-item {
  text-align: center;
  padding: 25px 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: 0.3s;
}
.summary-item:hover {
  border-color: rgba(242,106,33,.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.summary-item .icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}
.summary-item h4 {
  font: 600 1rem var(--head);
  color: var(--navy);
  margin-bottom: 6px;
}
.summary-item p {
  font-size: 0.85rem;
  color: var(--secondary);
  line-height: 1.5;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: .85s; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  position: relative;
  z-index: 1;
  min-height: 170px;
  padding: 35px 8vw;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--secondary);
  font-size: 11px;
}
footer img { width: 260px; height: 100px; object-fit: contain; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
  .cert-card { padding: 35px 30px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  header { height: 80px; padding: 0 20px; }
  .logo { width: 220px; height: 60px; }
  .menu { display: flex; }
  nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: rgba(255,255,255,.98); padding: 20px; gap: 12px; box-shadow: 0 18px 30px rgba(0,0,0,.06); }
  header.open nav { display: flex; }
  .nav-dropdown .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; background: transparent; }
  .nav-dropdown > a::after { display: none; }
  
  .cert-hero { padding: 120px 20px 30px; min-height: 25vh; }
  .hero-content h1 { font-size: 32px; }
  
  .cert-content { padding: 10px 16px 50px; }
  .cert-card { padding: 25px 18px; }
  .cert-header h2 { font-size: 24px; }
  .cert-image img { max-height: 300px; object-fit: contain; }
  
  .cert-summary { padding: 30px 18px; }
  .summary-grid { grid-template-columns: 1fr; gap: 16px; }
  
  footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .glow { display: none; }
  .bubble { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bubble { display: none; }
}