﻿:root {
  color-scheme: dark;
  --bg: #09070f;
  --surface: rgba(22, 12, 36, 0.84);
  --surface-strong: rgba(20, 13, 34, 0.95);
  --text: #f7f5ff;
  --muted: #b9a9dd;
  --accent: #b765ff;
  --accent-2: #6e5cff;
  --border: rgba(148, 67, 255, 0.18);
  --shadow: 0 25px 90px rgba(0, 0, 0, 0.28);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, rgba(146, 74, 255, 0.1), transparent 18%), linear-gradient(180deg, #060309 0%, #0c0817 48%, #09070f 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(12, 6, 24, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(183, 100, 255, 0.18), rgba(114, 82, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  letter-spacing: 0.15em;
}

.brand-name,
.brand-tag {
  margin: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.86rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: inline-block;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: #fff;
  background: rgba(136, 86, 255, 0.32);
  box-shadow: 0 10px 20px rgba(93, 58, 181, 0.18);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.navbar-toggler-icon i {
  font-size: 1.1rem;
  color: #fff;
}

.fa-solid,
.fa-brands,
.fa-regular {
  color: #fff;
}

.panel-label i,
.skills-list i,
.project-chip i,
.stat-icon i,
.contact-list i,
.contact-form i {
  color: #fff;
}

.section {
  padding: 3rem 0;
}

.section-dark {
  background: rgba(12, 6, 24, 0.92);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-section {
  padding-top: 3.5rem;
}

.hero-copy {
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

.gradient-text {
  background: linear-gradient(135deg, #ff8dff, #8bc8ff 52%, #b3fffa);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions .btn {
  min-width: 160px;
}

.btn-primary {
  background: linear-gradient(135deg, #b765ff, #7c5cff);
  color: #fff;
  border: none;
  transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(183, 100, 255, 0.18);
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  min-width: 120px;
}

.stat-pill strong {
  display: block;
  font-size: 1.6rem;
}

.hero-panel {
  background: rgba(12, 6, 24, 0.88);
  border: 1px solid rgba(183, 100, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.28);
  padding: 2.2rem;
  margin-top: 2rem;
  color: var(--text);
  backdrop-filter: blur(18px);
}

.hero-panel .section-header,
.hero-panel .eyebrow,
.hero-panel h1,
.hero-panel .hero-copy,
.hero-panel .hero-actions,
.hero-panel .hero-stats {
  color: inherit;
}

.hero-panel .eyebrow {
  color: var(--accent);
}

.hero-panel h1 {
  color: #fff;
}

.hero-panel .hero-copy {
  color: #cfc8f7;
}

.hero-profile-card {
  position: relative;
  background: #09070f;
  border-radius: 32px;
  padding: 2rem 1.5rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  min-height: 520px;
}

.hero-profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(183, 100, 255, 0.18), transparent 38%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-profile-card-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  z-index: 1;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f3ff;
  font-weight: 600;
}

.hero-profile-card-body {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 2rem;
  z-index: 1;
}

.profile-photo-frame {
  width: min(420px, 100%);
  border-radius: 38px;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px rgba(0,0,0,0.3);
}

.profile-photo-frame img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.profile-card-footer {
  text-align: center;
  margin-top: 2rem;
  z-index: 1;
}

.profile-card-role {
  margin: 0;
  color: #c2b5ff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .hero-panel {
    padding: 2.5rem;
  }
}

@media (max-width: 992px) {
  .hero-panel {
    padding: 2rem;
  }

  .hero-profile-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .hero-panel {
    padding: 1.6rem;
  }

  .hero-profile-card {
    margin-top: 2rem;
  }
}

.btn-resume {
  background: linear-gradient(135deg, #ff5f6d, #ff3d71);
  border: none;
  color: #fff;
}

.btn-resume:hover {
  opacity: 0.95;
}

.hero-badge,
.hero-badge-end,
.hero-badge-top-right,
.hero-badge-bottom-left {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 107, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
}

.hero-badge {
  top: 1rem;
  left: 1rem;
}

.hero-badge-top-right {
  top: 1rem;
  right: 1rem;
}

.hero-badge-bottom-left {
  bottom: 1rem;
  left: 1rem;
}

.hero-badge-end {
  bottom: 1rem;
  right: 1rem;
}

.glass-card {
  background: rgba(18, 10, 27, 0.82);
  border: 1px solid rgba(196, 107, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.details-card ul,
.skill-box ul,
.project-card ul,
.contact-card .contact-list,
.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-card li,
.skill-box ul li,
.project-card ul li,
.timeline-content ul li {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.details-card h3,
.skill-box h3,
.project-card h3,
.timeline-card h3,
.contact-card h3,
.cert-card h3 {
  margin-top: 0;
}

.details-card ul {
  display: grid;
  gap: 0.85rem;
}

.skill-box ul,
.project-card ul,
.modules-list {
  padding-left: 1.2rem;
}

.skill-box li,
.project-card ul li,
.modules-list li {
  position: relative;
}

.skill-box li::before,
.project-card ul li::before,
.modules-list li::before {
  content: '•';
  position: absolute;
  left: -1em;
  color: var(--accent);
}

.panel-card {
  position: relative;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(196, 107, 255, 0.12);
  color: #fff;
  margin-bottom: 1.2rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.skills-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3edff;
}

.project-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(196, 107, 255, 0.12);
  color: #dcd7ff;
  font-weight: 700;
  width: fit-content;
}

.stats-grid {
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1.6rem;
  text-align: center;
  border-radius: 28px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: rgba(196, 107, 255, 0.16);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.project-image {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.project-content {
  padding-top: 0.5rem;
}

.project-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cert-grid .cert-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
}

#certificates .cert-link {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

#certificates .cert-link:hover {
  transform: translateY(-3px);
}

.cert-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
}

/* Hover effect for certificate images */
#certificates .cert-link img {
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
  transform-origin: center;
}

#certificates .cert-link:hover img,
#certificates .cert-link:focus img {
  transform: translateY(-6px) scale(0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 6px 18px rgba(110, 92, 255, 0.06);
}

/* Visible focus ring for keyboard users */
#certificates .cert-link:focus {
  outline: 3px solid rgba(110, 92, 255, 0.12);
  outline-offset: 6px;
  border-radius: 18px;
}

/* Large centered popup preview for certificates (shown on hover/focus) */
/* Shared modal for certificate preview (used on click) */
.cert-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.cert-modal.open {
  display: flex;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 6, 0.68);
  /* stronger blur for clearer background softening */
  backdrop-filter: blur(12px) saturate(1.02) contrast(0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.cert-modal.open .cert-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.cert-modal-content {
  position: relative;
  max-width: min(92vw, 980px);
  width: 92vw;
  max-height: 88vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 45px 140px rgba(0,0,0,0.55), 0 12px 34px rgba(110,92,255,0.08);
  background: #ffffff;
  transform: translateY(10px) scale(0.98);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease;
  z-index: 2010;
}

.cert-modal.open .cert-modal-content {
  transform: translateY(0) scale(1);
}

.cert-modal-header {
  padding: 20px 24px 0;
  background: #fff;
}

.cert-modal-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
}

.cert-modal-subtitle {
  margin: 0.45rem 0 0;
  color: #5f5f7a;
  font-size: 0.95rem;
}

.cert-modal-image-wrapper {
  width: 100%;
  max-height: calc(88vh - 90px);
  overflow: hidden;
  position: relative;
}

.cert-modal-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  image-rendering: auto;
}

.cert-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 18px 24px 24px;
  background: #fff;
}

.cert-download {
  min-width: 160px;
}

.cert-share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(16, 13, 44, 0.08);
  color: #2f2f2f;
  border: 1px solid rgba(16, 13, 44, 0.08);
  transition: background 200ms ease, transform 200ms ease;
}

.share-btn:hover,
.share-btn:focus {
  background: rgba(120, 85, 255, 0.15);
  transform: translateY(-1px);
}

.cert-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2020;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cert-modal-close:hover,
.cert-modal-close:focus-visible {
  background: rgba(120, 85, 255, 0.9);
  transform: translateY(-1px);
}

.contact-card .contact-list a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .cert-modal-content { width: 96vw; }
  .cert-modal-actions { padding: 16px 18px 20px; }
  .share-btn { width: 38px; height: 38px; }
}

.timeline-card {
  padding: 2rem;
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--accent));
  box-shadow: 0 0 15px rgba(196, 107, 255, 0.35);
}

.timeline-content {
  padding-left: 3rem;
}

.contact-card .contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card .contact-list div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
}

.contact-card .contact-list i,
.contact-form i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(196, 107, 255, 0.14);
  color: #fff;
}

.contact-form label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 1rem 1rem;
  margin-top: 0.5rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(183, 100, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(110, 92, 255, 0.12);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  color: #9e92d4;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 992px) {
  .hero-card {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hero-stats {
    flex-direction: column;
  }
  .skills-list {
    grid-template-columns: 1fr;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .cert-grid .cert-card {
    grid-template-columns: 1fr;
  }
  .timeline-content {
    padding-left: 0;
  }
}
