/* ==========================================================================
   CURA — TEMPLATE #002 BY CODE5IN (RESPONSIVE ANTI-GRAVITY DOCTOR PORTFOLIO)
   Design System & Fully Responsive Rules
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

/* first load */
/* first load */

.loader-wrapper {
  position: fixed;
  inset: 0;

  background: #e9f1ef;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 1000;

  transition: opacity 0.8s ease;
}

.loader-content {
  text-align: center;
}

#loader-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 50px;
  margin-bottom: 0;
  font-weight: 700;

  opacity: 0;
  transform: translateY(16px);

  transition: all 1s ease;
}

#loader-line {
  width: 0;
  height: 2px;

  background: #000;

  margin: 12px auto 0;
  margin-top: -5px;
  transition: width 1s ease;
}

/* Hide navbar while page is loading */
#navbar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* Show navbar after loader */
#navbar.navbar-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

:root {
  /* Color Palette */
  --bg-main: #f8faf9;
  --bg-card: #ffffff;
  --bg-card-hover: #f2f7f5;
  --text-primary: #15201d;
  --text-secondary: #526660;
  --text-muted: #7e948e;
  --accent: #2e7d6b;
  --accent-hover: #246556;
  --accent-light: #e8f3ef;
  --accent-glow: rgba(46, 125, 107, 0.18);
  --border-subtle: rgba(46, 125, 107, 0.12);
  --border-focus: rgba(46, 125, 107, 0.4);

  /* Shadows for Anti-Gravity Depth */
  --shadow-sm: 0 4px 12px rgba(21, 32, 29, 0.03);
  --shadow-md: 0 12px 30px -8px rgba(21, 32, 29, 0.06);
  --shadow-lg: 0 24px 50px -12px rgba(21, 32, 29, 0.09);
  --shadow-float: 0 35px 70px -15px rgba(46, 125, 107, 0.14);
  --shadow-glow: 0 0 35px rgba(46, 125, 107, 0.2);

  /* Typography */
  --font-heading:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions & Easing */
  --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-float: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --transition-normal: 0.35s var(--ease-out-smooth);
}

/* Reset & Strict Viewport Overflow Protection */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-main);
}

/* Typography with Responsive Clamp */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ambient Canvas Background */
#ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 32px);
  position: relative;
  z-index: 1;
}

/* Fluid Section Padding */
section {
  padding: clamp(50px, 8vw, 110px) 0;
  position: relative;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 60px) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.section-title {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.96rem;
  transition:
    transform 0.3s var(--ease-out-smooth),
    box-shadow 0.3s ease,
    background 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(46, 125, 107, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(46, 125, 107, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Floating Card Base Component */
.floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.4s var(--ease-out-smooth),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.floating-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  border-color: rgba(46, 125, 107, 0.25);
}

/* ==========================================================================
   NAVIGATION BAR & MOBILE DRAWER
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 clamp(12px, 3vw, 24px);
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  padding: 10px clamp(16px, 2.5vw, 28px);
  background: rgba(248, 250, 249, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(46, 125, 107, 0.15);
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--accent);
}

.nav-badge {
  font-size: 0.65rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Hamburger Menu Button */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  background: rgba(248, 250, 249, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-float);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 24px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-smooth);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

/* HERO SECTION */
.hero-section {
  padding-top: clamp(120px, 14vw, 170px);
  padding-bottom: clamp(50px, 8vw, 100px);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero-left {
  max-width: 580px;
}

.doctor-subtitle {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(
    135deg,
    var(--text-primary) 30%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item svg {
  color: var(--accent);
}

/* HERO RIGHT - PORTRAIT & FLOATING CARDS */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.portrait-frame {
  position: relative;
  width: min(380px, 90vw);
  height: auto;
  aspect-ratio: 4/5;
  border-radius: 36px;
  overflow: hidden;
  background: var(--accent-light);
  box-shadow: var(--shadow-float);
  border: 4px solid #ffffff;
  transition: transform 0.5s var(--ease-out-smooth);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 32, 29, 0) 65%,
    rgba(21, 32, 29, 0.25) 100%
  );
  pointer-events: none;
}

/* Floating Info Cards */
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.hero-float-card .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-card .card-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-float-card .card-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Desktop Float Positions */
.card-float-1 {
  top: 8%;
  left: -30px;
  animation: floatAnim1 6.5s ease-in-out infinite alternate;
}
.card-float-2 {
  bottom: 10%;
  right: -25px;
  animation: floatAnim2 5.2s ease-in-out infinite alternate;
}
.card-float-3 {
  top: 55%;
  left: -40px;
  animation: floatAnim3 7.8s ease-in-out infinite alternate;
}

@keyframes floatAnim1 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-14px) rotate(1.5deg);
  }
}
@keyframes floatAnim2 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-18px) rotate(-1.5deg);
  }
}
@keyframes floatAnim3 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.about-profile-card {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  text-align: center;
}

.about-avatar {
  width: 100%;
  height: clamp(280px, 30vw, 380px);
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 18px;
}

.about-badge-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.about-details-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.meta-box {
  background: var(--bg-main);
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

.meta-box-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.meta-box-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
}

/* STATISTICS SECTION */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.stat-card {
  text-align: center;
  padding: clamp(24px, 3vw, 36px) 18px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  font-weight: 500;
}

/* EXPERTISE SECTION */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}

.expertise-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expertise-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition:
    transform 0.4s ease,
    background-color 0.4s ease;
}

.expertise-card:hover .expertise-icon {
  transform: scale(1.08) rotate(4deg);
  background: var(--accent);
  color: #ffffff;
}

.expertise-title {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  margin-bottom: 10px;
}

.expertise-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* EXPERIENCE TIMELINE */
.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-svg-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  z-index: 1;
}

.timeline-svg-line line {
  stroke: var(--border-subtle);
  stroke-width: 4;
}

.timeline-svg-line .active-line {
  stroke: var(--accent);
  stroke-width: 4;
  transition: stroke-dashoffset 0.1s linear;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 2;
}
.timeline-item:nth-child(even) .timeline-empty {
  grid-column: 1;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-light);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.timeline-item.active .timeline-dot {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 16px var(--accent);
}

.timeline-year {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.timeline-role {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  margin-bottom: 6px;
}

.timeline-hospital {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

/* EDUCATION SECTION */
.education-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.edu-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.4s var(--ease-out-smooth),
    box-shadow 0.4s ease;
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.edu-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-degree {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 4px;
}

.edu-inst {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.4s var(--ease-out-smooth);
}

.service-card:hover {
  background: var(--accent-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  border-color: rgba(46, 125, 107, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.service-title {
  font-size: clamp(1.15rem, 1.8vw, 1.25rem);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(46, 125, 107, 0.1);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
}

.service-arrow {
  transition: transform 0.3s ease;
}
.service-card:hover .service-arrow {
  transform: translateX(6px);
}

/* CERTIFICATES SECTION */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}

.cert-card {
  perspective: 1000px;
  cursor: pointer;
}

.cert-card-inner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.cert-img-box {
  width: 100%;
  height: clamp(140px, 15vw, 180px);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-main);
}

.cert-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* PUBLICATIONS SECTION */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pub-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out-smooth),
    box-shadow 0.4s ease;
}

.pub-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pub-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  transition: width 0.6s var(--ease-out-smooth);
}

.pub-item:hover .pub-line {
  width: 100%;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pub-title {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pub-journal {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* TESTIMONIALS MARQUEE */
.testimonials-section {
  padding: clamp(50px, 8vw, 100px) 0;
  overflow: hidden;
  width: 100%;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 20px;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 20px;
  animation: marqueeScroll 35s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  width: min(380px, 85vw);
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* CLINIC SECTION */
.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
}

.clinic-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}

.clinic-name {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 14px;
}

.clinic-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px 0;
}

.clinic-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.clinic-info-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.clinic-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-card {
  border-radius: 28px;
  overflow: hidden;
  height: clamp(300px, 35vw, 460px);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-subtle);
  position: relative;
  width: 100%;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 40px);
}

/* APPOINTMENT CTA SECTION */
.cta-banner {
  background: linear-gradient(135deg, #15201d 0%, #2e7d6b 100%);
  border-radius: 32px;
  padding: clamp(36px, 6vw, 70px) clamp(20px, 5vw, 60px);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-sphere {
  position: absolute;
  width: clamp(200px, 30vw, 350px);
  height: clamp(200px, 30vw, 350px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 243, 239, 0.25) 0%,
    rgba(232, 243, 239, 0) 70%
  );
  top: -80px;
  right: -40px;
  pointer-events: none;
  animation: floatAnim1 9s ease-in-out infinite alternate;
}

/* CV DOCUMENT SECTION */
.cv-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
}

.cv-mockup-frame {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.cv-document {
  width: min(320px, 90vw);
  height: 420px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: floatAnim2 7s ease-in-out infinite alternate;
}

.cv-header-line {
  height: 8px;
  width: 60px;
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 18px;
}

.cv-dummy-line {
  height: 10px;
  background: var(--accent-light);
  border-radius: 6px;
  margin-bottom: 12px;
}

.cv-dummy-line.short {
  width: 60%;
}
.cv-dummy-line.medium {
  width: 80%;
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(30px, 5vw, 50px);
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-mini-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.contact-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* FOOTER */
.footer {
  background: #15201d;
  color: #ffffff;
  padding: clamp(40px, 6vw, 60px) 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.footer-brand span {
  color: var(--accent);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  gap: 16px;
  flex-wrap: wrap;
}

.code5in-badge {
  color: var(--accent-light);
  font-weight: 600;
}

/* MODAL SYSTEM */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 29, 0.6);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-float);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s var(--ease-out-smooth);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

/* VIEWPORT SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease-out-smooth),
    transform 0.8s var(--ease-out-smooth);
  transition-delay: var(--delay, 0s);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BREAKPOINTS & RESPONSIVE ADAPTATIONS
   ========================================================================== */

/* 1. LARGE DESKTOP (1440px and above) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  .hero-title {
    font-size: 3.8rem;
  }
}

/* 2. DESKTOP / LAPTOP (1024px – 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .portrait-frame {
    width: 340px;
    height: 430px;
  }
}

/* 3. TABLET (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links {
    gap: 16px;
  }
  .nav-link {
    font-size: 0.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .portrait-frame {
    width: 300px;
    height: 390px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .clinic-grid,
  .cv-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-float-card.card-float-1 {
    left: -10px;
  }
  .hero-float-card.card-float-2 {
    right: -10px;
  }
  .hero-float-card.card-float-3 {
    left: -10px;
  }
}

/* 4. MOBILE & SMALL TABLET (< 768px) */
@media (max-width: 767px) {
  /* Navbar adjustments */
  .nav-links,
  .nav-desktop-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .navbar {
    padding: 8px 16px;
  }

  /* Hero Mobile Re-ordering */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust-badges {
    justify-content: center;
  }

  .hero-right {
    flex-direction: column;
    gap: 16px;
  }

  .portrait-frame {
    width: min(300px, 85vw);
    height: auto;
    aspect-ratio: 4/5;
  }

  /* Inline Badges on Mobile to prevent overflow */
  .hero-float-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    animation: floatAnim1 5s ease-in-out infinite alternate !important;
    transform: none !important;
    width: min(280px, 90vw);
    margin: 4px auto;
  }

  /* Grid Stackings */
  .about-grid,
  .clinic-grid,
  .cv-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-profile-card {
    order: -1;
  }
  .clinic-card {
    order: 1;
  }
  .map-card {
    order: 2;
    height: 300px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .expertise-grid,
  .services-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Experience Timeline Left-Aligned for Mobile */
  .timeline-svg-line {
    left: 14px;
    transform: none;
  }
  .timeline-dot {
    left: 14px;
    transform: translate(-50%, -50%);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 36px;
    margin-bottom: 36px;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
  }

  .timeline-empty {
    display: none;
  }

  /* Education Stack */
  .edu-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* 5. SMALL MOBILE (320px – 479px) */
@media (max-width: 479px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-details-meta {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .clinic-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .clinic-btn-group .btn {
    width: 100%;
  }

  .section-tag {
    font-size: 0.78rem;
  }
}

/* ACCESSIBILITY: Reduced Motion Rule */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ========================================
   RESUME / CV MODAL
======================================== */

.resume-modal {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 99999;
}

.resume-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Box */

.resume-modal-box {
  width: min(1000px, 95vw);
  height: 90vh;

  background: #ffffff;

  border-radius: 20px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);

  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
}

.resume-modal.active .resume-modal-box {
  transform: translateY(0) scale(1);
}

/* Header */

.resume-modal-header {
  min-height: 75px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 15px 22px;

  background: #ffffff;

  border-bottom: 1px solid #e5e5e5;
}

.resume-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.resume-modal-header span {
  display: block;

  margin-top: 3px;

  font-size: 0.8rem;
  color: #777;
}

/* Actions */

.resume-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-action-btn {
  border: none;

  padding: 10px 18px;

  border-radius: 8px;

  background: #237c69;
  color: #ffffff;

  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;

  text-decoration: none;

  cursor: pointer;

  transition: 0.2s ease;
}

.resume-action-btn:hover {
  background: #185f50;
  transform: translateY(-1px);
}

/* Close Button */

.resume-close {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: #f1f3f2;
  color: #333;

  font-size: 18px;

  cursor: pointer;

  transition: 0.2s ease;
}

.resume-close:hover {
  background: #e3e7e5;
}

/* PDF */

.resume-pdf {
  width: 100%;
  flex: 1;

  border: none;

  background: #eeeeee;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .resume-modal {
    padding: 10px;
  }

  .resume-modal-box {
    width: 100%;
    height: 95vh;

    border-radius: 14px;
  }

  .resume-modal-header {
    padding: 12px;
    gap: 8px;
  }

  .resume-modal-header h3 {
    font-size: 1rem;
  }

  .resume-modal-header span {
    font-size: 0.7rem;
  }

  .resume-actions {
    gap: 5px;
  }

  .resume-action-btn {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .resume-close {
    width: 34px;
    height: 34px;

    font-size: 15px;
  }
}

/* certificate pop up */
/* certificate pop up */

/* =========================================
   CERTIFICATE FULL SCREEN MODAL
========================================= */

.certificate-item {
  cursor: pointer;
}

/* FULL SCREEN BACKGROUND */

.certificate-modal {
  position: fixed !important;

  top: 0 !important;
  left: 0 !important;

  width: 100vw !important;
  height: 100vh !important;

  z-index: 99999999 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  box-sizing: border-box;

  /* dark transparent overlay */
  background: rgba(10, 20, 18, 0.45);

  /* blur EVERYTHING behind */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

/* OPEN */

.certificate-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* CERTIFICATE + BUTTONS */

.certificate-modal-content {
  width: min(900px, 90vw);

  max-height: 92vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: relative;

  transform: scale(0.9);

  transition: transform 0.25s ease;
}

.certificate-modal.active .certificate-modal-content {
  transform: scale(1);
}

/* CERTIFICATE IMAGE */

#certificateModalImage {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 72vh;

  object-fit: contain;

  border-radius: 5px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* BUTTON AREA */

.certificate-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 14px;

  margin-top: 20px;
}

/* BUTTONS */

.certificate-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 24px;

  border: none;
  border-radius: 50px;

  background: #278873;

  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.certificate-action-btn:hover {
  background: #1f705f;

  transform: translateY(-2px);
}

/* CLOSE BUTTON */

.certificate-close {
  position: fixed;

  top: 25px;
  right: 30px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: #ffffff;

  color: #17231f;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  z-index: 100000000;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* MOBILE */

@media (max-width: 768px) {
  .certificate-modal {
    padding: 15px;
  }

  .certificate-modal-content {
    width: 96vw;
  }

  #certificateModalImage {
    max-width: 100%;
    max-height: 65vh;
  }

  .certificate-modal-actions {
    width: 100%;

    gap: 8px;
  }

  .certificate-action-btn {
    flex: 1;

    padding: 11px 10px;

    font-size: 12px;
  }

  .certificate-close {
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    font-size: 24px;
  }
}

/* show certificate inner button */
/* show certificate inner button */
/* show certificate inner button */

/* ========================================
   CERTIFICATE IMAGE HOVER
======================================== */

.cert-img-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.cert-img-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

/* Dark overlay */

.certificate-hover-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.58);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Show overlay ONLY when hovering image */

.cert-img-box:hover .certificate-hover-overlay {
  opacity: 1;
  visibility: visible;
}

/* Small image zoom */

.cert-img-box:hover img {
  transform: scale(1.04);
}

/* View Certificate button */

.view-certificate-btn {
  border: none;
  outline: none;

  background: #ffffff;
  color: #111111;

  padding: 14px 26px;

  border-radius: 50px;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transform: translateY(10px);
  opacity: 0;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}

/* Button animation */

.cert-img-box:hover .view-certificate-btn {
  transform: translateY(0);
  opacity: 1;
}

.view-certificate-btn:hover {
  background: #f1f1f1;
}
