:root {
  --bg: #0b0f1a;
  --bg-soft: #101525;
  --card: rgba(19, 26, 45, 0.75);
  --text: #e6eefc;
  --muted: #a7b3cc;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, #1b2440 0%, transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, #0c3a5c 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 20, 0.6);
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(124, 92, 255, 0.3);
}

.btn-ghost {
  background: rgba(124, 92, 255, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  perspective: 1200px;
}

.page-hero {
  display: grid;
  gap: 16px;
  margin-top: 60px;
  margin-bottom: 30px;
}

.page-hero .lead {
  margin-bottom: 6px;
}

.page-hero .lead + .lead {
  margin-top: -6px;
}

.page-hero .lead:last-of-type {
  margin-bottom: 0;
}

/* Certificate Filters */
.cert-filters {
  margin-top: 20px;
}

.filter-toggle {
  margin-bottom: 16px;
}

.filter-panel {
  display: none;
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.95), rgba(30, 20, 50, 0.95));
  border: 2px solid rgba(124, 92, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-panel.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-of-type {
  margin-bottom: 0;
}

.filter-group h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.05);
  border: 1px solid rgba(124, 92, 255, 0.2);
  transition: all 0.2s;
  font-size: 0.9rem;
}

.filter-options label:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateX(3px);
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 92, 255, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.back-to-home-section {
  text-align: center;
  margin: 40px 0 20px;
}

.filter-results {
  display: none;
  margin-top: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 92, 255, 0.1));
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  animation: slideDown 0.3s ease;
}

.filter-results-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0, 212, 255, 1);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.results-platforms {
  font-size: 0.85rem;
  color: rgba(124, 92, 255, 1);
  padding: 4px 12px;
  background: rgba(124, 92, 255, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(124, 92, 255, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-card-inner {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 255, 0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.hero-card--main {
  max-width: 980px;
  margin: 0 auto;
}

.hero-card-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.photo-holder {
  min-height: 300px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.candidate-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  transform: translateZ(55px);
}

.photo-note {
  color: var(--muted);
  font-size: 0.9rem;
  transform: translateZ(30px);
}

.hero-card-content {
  position: relative;
  z-index: 2;
}

.glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at top right, rgba(124, 92, 255, 0.3), transparent 55%);
  filter: blur(30px);
  opacity: 0.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 1.3rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  margin-top: 90px;
  scroll-margin-top: 110px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.card-header span {
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 18px;
}

.timeline {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 18px;
}

.timeline li {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.timeline-desc {
  color: var(--muted);
  line-height: 1.6;
}

.education-grid {
  display: grid;
  gap: 16px;
}

.section-tight {
  margin-top: 0;
}

.back-home {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.edu-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(19, 26, 45, 0.6);
  overflow: hidden;
}

.edu-button {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.25), rgba(0, 212, 255, 0.15));
  border-bottom: 1px solid var(--border);
}

.edu-button span {
  display: block;
  font-weight: 600;
}

.edu-button span + span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
}

.edu-score {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.35), rgba(0, 212, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}

.edu-button::-webkit-details-marker {
  display: none;
}

.edu-item[open] .edu-button {
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.35), rgba(0, 212, 255, 0.2));
}

.edu-details {
  padding: 18px 20px 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.certificate-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid rgba(124, 92, 255, 0.3);
  font-size: 0.9rem;
}

.scene {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  perspective: 900px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 14s linear infinite;
}

.cube__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.35);
  font-weight: 600;
}

.cube__face--front { transform: translateZ(110px); }
.cube__face--back { transform: rotateY(180deg) translateZ(110px); }
.cube__face--right { transform: rotateY(90deg) translateZ(110px); }
.cube__face--left { transform: rotateY(-90deg) translateZ(110px); }
.cube__face--top { transform: rotateX(90deg) translateZ(110px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(110px); }

@keyframes spin {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-row span {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.project-links .btn {
  font-size: 0.85rem;
  padding: 8px 16px;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.2), rgba(0, 212, 255, 0.12));
  border: 1px solid var(--border);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 30px 24px 60px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(520px, 92vw);
}

.modal::backdrop {
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(6px);
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.modal-content h3 {
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cert-platforms {
  display: grid;
  gap: 14px;
}

.cert-platform {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(19, 26, 45, 0.6);
  overflow: hidden;
}

.cert-platform-title {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.25), rgba(0, 212, 255, 0.15));
  border-bottom: 1px solid var(--border);
  display: block;
}

.cert-platform-title::-webkit-details-marker {
  display: none;
}

.cert-platform[open] .cert-platform-title {
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.35), rgba(0, 212, 255, 0.2));
}

.cert-list {
  padding: 12px 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cert-item {
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 212, 255, 0.05));
  border: 1.5px solid rgba(124, 92, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cert-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.cert-item:hover::before {
  transform: translateX(100%);
}

.cert-item:hover {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(0, 212, 255, 0.12));
  border-color: rgba(124, 92, 255, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(124, 92, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cert-item:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(124, 92, 255, 0.15);
}

.cert-item h4 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.cert-item:hover h4 {
  color: var(--accent);
}

.cert-link {
  display: none;
}

.cert-meta {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cert-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.cert-level {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(124, 92, 255, 0.15));
  color: rgba(124, 92, 255, 1);
  border: 1px solid rgba(124, 92, 255, 0.3);
}

.cert-type {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.15));
  color: rgba(0, 212, 255, 1);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.cert-item:hover .cert-badge {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.2);
}

.cert-modal {
  background: transparent;
  border: none;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

.cert-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  animation: fadeInBackdrop 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInBackdrop {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.5);
  }
}

.cert-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.99), rgba(30, 20, 50, 0.99));
  border: 2px solid rgba(124, 92, 255, 0.4);
  border-radius: 20px;
  width: 90vw;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 30px 60px rgba(124, 92, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.cert-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(124, 92, 255, 0.2);
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.99), rgba(30, 20, 50, 0.99));
}

.cert-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 600;
  flex: 1;
}

.cert-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-modal-actions .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cert-modal-close {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cert-modal-close:hover {
  background: rgba(124, 92, 255, 0.25);
  border-color: rgba(124, 92, 255, 0.5);
  color: var(--accent);
  transform: scale(1.05);
}

.cert-modal-body {
  padding: 28px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.02);
}

#certPreview {
  width: 100%;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#certPreview img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.15);
}

#certPreview iframe {
  width: 100%;
  height: 500px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

#certPreview p {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.1rem;
}

.cert-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.badge-item {
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: var(--text);
  text-align: center;
}

.badge-hidden {
  display: none;
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
