:root {
  --accent: #ff8800;
  --status-yellow: #ffd166;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.10);
  --panel-text: #eafcff;
  --ui-z: 60;
  --bg-dark: #071227;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(120deg, #071227 0%, #082033 35%, #0b1630 65%, #071227 100%);
  background-size: 200% 200%;
  animation: bgShift 20s linear infinite;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 18, 39, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 136, 0, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 136, 0, 0.6);
}

/* Layout */
main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px;
  /* Space for fixed topbar */
}

section {
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* topbar layout */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--ui-z);
  height: 64px;
  background: rgba(7, 18, 39, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.left,
.right {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  pointer-events: auto;
}

.logo {
  font-family: "Baloo 2", Inter;
  font-weight: 600;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.00));
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 12px rgba(255, 136, 0, 0.03) inset;
  transition: transform .18s cubic-bezier(.2, .9, .2, 1);
}

.chip {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(255, 136, 0, 0.06), rgba(255, 255, 255, 0.01));
}

.tab {
  padding: 10px 16px;
  border-radius: 12px;
  color: #bfefff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
}

.tab:hover,
.tab.active-link {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: var(--status-yellow);
  font-size: 14px;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.03), rgba(255, 209, 102, 0.01));
  border-radius: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 209, 102, 0.08);
  pointer-events: auto;
  cursor: pointer;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-yellow);
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.45);
  transition: opacity 0.15s ease;
}

.status-dot.flicker {
  animation: flickerBlink 1s ease;
}

@keyframes flickerBlink {

  0%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0.2;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card-shadow {
  position: absolute;
  width: 600px;
  height: 380px;
  border-radius: 30px;
  background: radial-gradient(ellipse at center, rgba(0, 60, 90, 0.2), rgba(0, 0, 0, 0) 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  transition: transform .12s linear, opacity .18s ease;
}

.center-card {
  width: min(90vw, 600px);
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 50px rgba(3, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: box-shadow .18s ease, transform .12s ease;
  position: relative;
  z-index: 20;
  /* Ensure above shadow and background */
  pointer-events: auto !important;
  /* Force clicks to work */
}

.center-card h1 {
  margin: 0;
  font-family: "Baloo 2", Inter;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  text-shadow: 0 6px 18px rgba(255, 136, 0, 0.08);
  line-height: 1.1;
}

.center-card p {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--panel-text);
  max-width: 90%;
  line-height: 1.5;
}

.center-card .name {
  margin-top: auto;
  font-size: .95rem;
  color: #ffdcb3;
  font-weight: 600;
  opacity: 0.8;
  cursor: pointer;
  /* Hint that it's clickable */
  user-select: none;
  padding: 10px;
  /* Larger hit area */
}

.scroll-indicator {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: opacity 0.2s ease;
  pointer-events: auto;
  /* Ensure clickable */
  padding: 10px;
  /* Hit area */
}

.scroll-indicator:hover {
  opacity: 1;
}

.arrow-down {
  font-size: 1.2rem;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }

  60% {
    transform: translateY(-3px);
  }
}

/* Content Sections */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
}

.section-header h2 {
  font-family: "Baloo 2", Inter;
  font-size: 2.5rem;
  color: var(--accent);
  margin: 0 0 16px 0;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--panel-text);
  margin: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1000px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-image {
  height: 180px;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.placeholder-gradient-1 {
  background: linear-gradient(45deg, #ff0055, #0033ff);
}

.placeholder-gradient-2 {
  background: linear-gradient(45deg, #00ff99, #6600ff);
}

.placeholder-gradient-3 {
  background: linear-gradient(45deg, #ffcc00, #ff0066);
}

.placeholder-gradient-4 {
  background: linear-gradient(45deg, #00ccff, #9900ff);
}

.placeholder-gradient-5 {
  background: linear-gradient(45deg, #ff6600, #ffcc00);
}

.placeholder-gradient-6 {
  background: linear-gradient(45deg, #cc00ff, #00ccff);
}

.card-info {
  padding: 20px;
}

.card-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  color: #fff;
}

.card-info p {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--status-yellow);
  font-weight: 600;
}

/* Animations & Reveals */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* cursor glow + spotlight */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-9999px, -9999px, 0);
  z-index: 4;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.28) 0%, rgba(255, 140, 0, 0.12) 20%, rgba(0, 180, 255, 0.06) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(20px);
  mix-blend-mode: screen;
  transition: opacity .12s linear, width .12s ease, height .12s ease;
}

.spotlight {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  transform: translate3d(-9999px, -9999px, 0);
  z-index: 2;
  mix-blend-mode: screen;
  filter: blur(36px);
  background: radial-gradient(circle at center, rgba(80, 200, 255, 0.10) 0%, rgba(40, 160, 220, 0.06) 25%, rgba(0, 0, 0, 0) 60%);
  transition: opacity .12s linear;
}

/* Footer */
.footer {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* bottom messages */
.bottom-msg {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  color: #dff8ff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.bottom-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#confetti {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

@media (max-width:760px) {
  .center-card {
    width: 92%;
    padding: 22px
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .center {
    display: none;
  }

  /* Simplify nav for mobile */
}