/* ===========================
   ROOT & RESET
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #FFC107;
  --yellow-hover: #FFD54F;
  --yellow-light: #FFF8E1;
  --yellow-accent: #FFAB00;
  --glass: rgba(255, 255, 255, 0.7);
  --black: #000000;
  --white: #FFFFFF;
  --bg-main: #F0F2F5;
  --bg-card: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --sidebar-width: 240px;
  --border-radius: 14px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   LAYOUT
   =========================== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 14px 24px;
  z-index: 100;
  overflow-y: auto;
}

/* Profile */
.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.profile-avatar-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--white);
  background: #ddd;
}

.available-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

.nav-item.active {
  background: var(--black);
  color: var(--white);
  font-weight: 600;
}

.nav-dot {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  margin-left: auto;
}

.nav-item.active .nav-dot {
  display: block;
}

/* Socials */
.sidebar-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--black);
  color: var(--yellow);
  transform: scale(1.1);
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  position: relative;
  background: var(--bg-main);
}

/* Outer glow effect */
.main-content::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: radial-gradient(ellipse at right center, rgba(100, 120, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  min-height: 100vh;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.section-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 10px;
}

.title-black {
  color: var(--black);
}

.title-yellow {
  color: var(--yellow);
}

.section-title-underline {
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 0 auto 44px;
}

/* ===========================
   HOME SECTION
   =========================== */
.section-home {
  justify-content: center;
  padding-top: 32px;
  overflow: hidden;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: white;
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 40px;
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  animation: slideDown 0.8s ease-out forwards;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  animation: fadeIn 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 24px;
  color: var(--black);
  letter-spacing: -0.03em;
}

.hero-name {
  background: linear-gradient(135deg, var(--yellow-accent), #FFD54F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 5px;
  filter: drop-shadow(0 2px 4px rgba(255, 171, 0, 0.1));
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--yellow);
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
}

/* Hero Image */
.hero-image-container {
  position: relative;
  width: 340px;
  flex-shrink: 0;
  animation: slideLeft 1s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-image-accent {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  border-radius: 24px;
  z-index: 0;
  transition: var(--transition);
}

.hero-image-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 4px solid var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.hero-image-card:hover {
  transform: translateY(-10px);
}

.hero-image-card:hover + .hero-image-accent {
  transform: translate(5px, 5px);
}

.hero-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(10%) contrast(105%);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===========================
   ABOUT SECTION
   =========================== */
.section-about {
  justify-content: center;
  align-items: center;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 48px 56px;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.about-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.highlight-yellow {
  color: var(--yellow);
  font-weight: 600;
}

/* ===========================
   EXPERIENCE SECTION
   =========================== */
.section-experience {
  align-items: stretch;
}

.interests-subsection {
  margin-bottom: 48px;
}

.subsection-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  margin-bottom: 24px;
}

.interest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.interest-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.interest-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.interest-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.interest-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.interest-desc {
  font-size: 13.5px;
  color: var(--yellow);
  line-height: 1.6;
}

/* Professional Experience Timeline */
.prof-experience-subsection {
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), rgba(255,193,7,0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--yellow);
}

.timeline-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.exp-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exp-icon-ai { background: var(--yellow); }
.exp-icon-work { background: var(--yellow); }
.exp-icon-code { background: var(--yellow); }

.exp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exp-date {
  font-size: 13px;
  font-weight: 600;
  color: #FFA000;
}

.exp-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-internship { background: #FFF8E1; color: #F57F17; }
.badge-fulltime { background: #E8F5E9; color: #2E7D32; }
.badge-leadership { background: #E3F2FD; color: #1565C0; }
.badge-campus { background: #F3E5F5; color: #6A1B9A; }
.badge-research { background: #FCE4EC; color: #880E4F; }

.exp-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}

.exp-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   ACHIEVEMENTS SECTION
   =========================== */
.section-achievements {
  align-items: stretch;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--yellow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 38px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.certs-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  margin-bottom: 28px;
}

/* Cert Categories */
.cert-category {
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1.5px solid transparent;
}

.cert-ai { border-color: rgba(100, 160, 255, 0.3); background: rgba(100, 160, 255, 0.02); }
.cert-cyber { border-color: rgba(255, 80, 80, 0.3); background: rgba(255, 80, 80, 0.02); }
.cert-prog { border-color: rgba(80, 200, 120, 0.3); background: rgba(80, 200, 120, 0.02); }
.cert-other { border-color: rgba(160, 80, 255, 0.3); background: rgba(160, 80, 255, 0.02); }

.cert-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cert-category-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  flex: 1;
}

.cert-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cert-item {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cert-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.cert-org {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cert-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
}

/* ===========================
   EDUCATION SECTION
   =========================== */
.section-education {
  justify-content: flex-start;
  align-items: stretch;
}

.edu-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.edu-header-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
}

.edu-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--yellow);
  transition: var(--transition);
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
}

.edu-year {
  font-size: 13px;
  font-weight: 700;
  color: #FFA000;
  margin-bottom: 10px;
}

.edu-degree {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.edu-institution {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.edu-desc {
  font-size: 14px;
  color: var(--yellow);
  line-height: 1.7;
  margin-bottom: 20px;
}

.edu-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.edu-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #666;
  background: #F5F5F5;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.section-contact {
  align-items: stretch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info-item:hover {
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.contact-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.connect-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.contact-social-btn {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--black);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-social-btn:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #E0E0E0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #BDBDBD;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.submit-btn:hover {
  background: #FFB300;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  text-align: center;
  padding: 28px 40px;
  background: var(--bg-main);
  border-top: 1px solid #E0E0E0;
}

.footer p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-name {
  color: var(--yellow);
  font-weight: 700;
}

.footer-sub {
  margin-top: 4px;
  font-size: 13px !important;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 3px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-heading { font-size: 40px; }
  .section { padding: 40px 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .hero-content { flex-direction: column; }
  .hero-image-container { width: 100%; max-width: 280px; align-self: center; }
  .section { padding: 32px 20px; }
  .section-title { font-size: 32px; }
  .interest-cards { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===========================
   VIEW CERTIFICATE BUTTON
   =========================== */
.view-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--yellow-light);
  border: 1.5px solid var(--yellow);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8a6300;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.view-cert-btn:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255,193,7,0.4);
}

.view-cert-btn svg {
  flex-shrink: 0;
}

/* ===========================
   CERTIFICATE MODAL
   =========================== */
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cert-modal-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.cert-modal-overlay.active .cert-modal-box {
  transform: scale(1) translateY(0);
}

.cert-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.cert-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}

.cert-modal-org {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.cert-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  margin-left: 12px;
}

.cert-modal-close:hover {
  background: #fee;
  color: #c00;
  transform: rotate(90deg);
}

.cert-modal-img-wrap {
  flex: 1;
  overflow: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.cert-modal-img-wrap img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.cert-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.cert-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  transition: var(--transition);
  text-decoration: none;
}

.cert-download-btn:hover {
  background: #FFB300;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,193,7,0.4);
}

@media (max-width: 600px) {
  .cert-modal-box { border-radius: 14px; }
  .cert-modal-header { padding: 16px 18px 14px; }
  .cert-modal-img-wrap { padding: 14px 18px; }
  .cert-modal-footer { padding: 12px 18px; }
  .cert-modal-title { font-size: 15px; }
}
