html, body { height: 100%; margin: 0; background: #1f2937; overflow: hidden; }
#app { position: fixed; inset: 0; }

/* Adblocker Warning Banner */
.adblocker-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #374151;
  color: #d1d5db;
  padding: 12px 16px;
  z-index: 10000;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.adblocker-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.adblocker-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.adblocker-text strong {
  font-weight: 600;
}

.adblocker-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.adblocker-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.adblocker-warning.hidden {
  display: none;
}


.panel {
  position: fixed;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: min(900px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  scroll-behavior: auto;
  background: rgba(249,250,251,0.95);
  border: 1px solid rgba(107,114,128,0.20);
  border-radius: 16px;
  padding: 24px;
  padding-bottom: 48px;
  color: #374151;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.15);
  display: none;
  padding-top: 24px;
}
.panel h2 { margin: 0 0 8px; font: 800 24px/1.2 'Space Grotesk', sans-serif; letter-spacing: .02em; color: #111827; }
.panel p { margin: 0 0 14px; line-height: 1.65; color: #374151; white-space: pre-line; font-family: 'Inter', sans-serif; }

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font: 600 14px/1.4 'Inter', sans-serif;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.about-link:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.about-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.panel-content { display: grid; grid-template-columns: 320px 1fr; gap: 24px; margin-bottom: 16px; }

.about-page {
  display: grid !important;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
}

.about-page .media {
  width: 100%;
  max-width: 300px;
  grid-column: 1;
  margin-top: 12px;
}

.about-page #pDesc {
  grid-column: 2;
  width: 100%;
}

.skills-certs-container .panel-content {
  display: grid;
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  .panel-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-page { grid-template-columns: 1fr; gap: 16px; }
  .about-page .media { max-width: 100%; }
  .about-page #pDesc { grid-column: auto; }

  .exp-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-header { grid-template-columns: 1fr; }
  .project-thumb {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    padding: 16px;
    padding-bottom: 32px;
  }

  .panel h2 { font-size: 20px; }
  .panel p { font-size: 14px; }

  .panel-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .hud {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    font-size: 11px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hud .pill { font-size: 10px; padding: 6px 10px; }

  .carousel-media { width: 92vw; height: 78vh; }
  .carousel-nav, .carousel-close {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

.media { display: grid; gap: 12px; }
.media img, .media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(107,114,128,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.media .cap {
  font: 600 12px/1.35 'Inter', sans-serif;
  color: #6b7280;
  margin-top: -6px;
}

.tags { display:flex; gap:8px; flex-wrap: wrap; margin: 10px 0 12px; }
.tag {
  font: 700 12px/1 'Inter', sans-serif;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #4b5563;
}

.row { display:flex; gap:10px; }
.btn {
  cursor: pointer;
  user-select: none;
  font: 800 12px/1 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
}
.btn:hover { background: #e5e7eb; }

/* HUD hint */
.hud {
  position: fixed;
  left: 18px;
  bottom: 18px;
  color: #e5e7eb;
  font: 600 12px/1.4 'Inter', sans-serif;
  letter-spacing: .04em;
  background: rgba(31,41,55,0.90);
  border: 1px solid rgba(107,114,128,0.30);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.30);
}
.hud b { color: #f3f4f6; }
.hud .pill {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #374151;
  color: #d1d5db;
  font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.hud .pill:hover { background: #4b5563; }

/* Close button */
.panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.panel-close:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Experience cards */
.experience-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.exp-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(139,116,88,0.12);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.exp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.exp-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(139,116,88,0.10);
}

.exp-content h3 {
  margin: 0 0 4px;
  font: 700 18px/1.3 'Space Grotesk', sans-serif;
  color: #000000;
}

.exp-content .exp-company {
  margin: 0 0 4px;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: #374151;
}

.exp-content .exp-date {
  margin: 0 0 12px;
  font: 400 14px/1.4 'Inter', sans-serif;
  color: #6b7280;
}

.exp-content .exp-desc {
  margin: 0 0 12px;
  font: 400 14px/1.6 'Inter', sans-serif;
  color: #374151;
}

.exp-content .exp-skills {
  margin: 0;
  font: 600 14px/1.4 'Inter', sans-serif;
  color: #111827;
}
.exp-content .exp-skills span {
  font-weight: 400;
  color: #374151;
}

/* Certification cards */
.cert-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-card:hover {
  transform: translateY(-2px);
}

.cert-link {
  margin-top: 8px;
  font: 600 13px/1.4 'Inter', sans-serif;
  color: #0066cc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Skills cards */
.skills-certs-container {
  display: block;
}

.section-subtitle {
  font: 700 18px/1.4 'Inter', sans-serif;
  color: #111827;
  margin: 24px 0 16px 0;
}

.section-subtitle:first-child {
  margin-top: 0;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: #ffffff;
  border: 1px solid rgba(107,114,128,0.15);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.skill-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.skill-name {
  font: 600 14px/1.3 'Inter', sans-serif;
  color: #111827;
  text-align: center;
}

/* Project cards */
.projects-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }

.projects-subtitle {
  font: 600 13px/1.4 'Inter', sans-serif;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 2px;
  margin-top: -8px;
}

.skills-subtitle {
  font: 600 13px/1.4 'Inter', sans-serif;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 2px;
  margin-top: -8px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(139,116,88,0.12);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.project-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.project-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
}

.project-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  cursor: pointer;
}

.project-image,
.project-video-thumb {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(139,116,88,0.10);
  display: block;
}

.project-video-thumb { background: #111827; }

.project-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.project-info h3 {
  margin: 0 0 4px;
  font: 700 18px/1.3 'Space Grotesk', sans-serif;
  color: #111827;
}

.project-info .project-type {
  margin: 0 0 8px;
  font: 500 12px/1.4 'Inter', sans-serif;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.project-desc {
  margin: 0 0 12px;
  font: 400 14px/1.6 'Inter', sans-serif;
  color: #374151;
}

.project-tech {
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-tech-tag {
  font: 500 12px/1 'Inter', sans-serif;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.project-link-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font: 600 14px/1 'Inter', sans-serif;
  transition: all 0.2s ease;
  text-align: center;
}
.project-link-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Carousel modal */
.carousel-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}
.carousel-modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.carousel-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.carousel-media {
  position: relative;
  width: 95vw;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-media img,
.carousel-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: none;
}

.carousel-media embed {
  width: 100%;
  height: 100%;
  display: none;
}

.carousel-media img.active,
.carousel-media video.active,
.carousel-media embed.active {
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}
.carousel-nav:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.carousel-nav.prev { left: 18px; }
.carousel-nav.next { right: 18px; }

.carousel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10002;
}
.carousel-close:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.carousel-info {
  margin-top: 16px;
  text-align: center;
  color: #e5e7eb;
  font: 500 14px/1.4 'Inter', sans-serif;
  z-index: 10001;
}

.carousel-indicators {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  z-index: 10001;
}
.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-indicator.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
