:root {
  --bg-page: #070a12;
  --bg-card: rgba(17, 24, 39, 0.78);
  --bg-card-solid: #111827;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.5);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-page: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-solid: #ffffff;
  --border-color: rgba(15, 23, 42, 0.1);
  --text-main: #0f172a;
  --text-sub: #475569;
  --accent-blue: #2563eb;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

/* Visual Ambient Glows */
.ambient-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow-1 { background: #3b82f6; top: -180px; left: -120px; }
.glow-2 { background: #06b6d4; bottom: -180px; right: -120px; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   FLOATING NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin: 14px auto 0;
  max-width: 1180px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: 9px;
}

/* ==========================================================================
   VISUAL HERO SECTION (BENTO METRICS + LESS TEXT)
   ========================================================================== */
.hero {
  padding: 56px 0 42px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 55%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-bottom: 26px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-bento-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visual-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.visual-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* ==========================================================================
   VISUAL TECH STACK RIBBON
   ========================================================================== */
.stack-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px 0 36px;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   SECTION HEADERS (SHORT & VISUAL)
   ========================================================================== */
section {
  padding: 44px 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.section-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   LIVE INTERACTIVE APP TESTER WINDOW
   ========================================================================== */
.app-switcher-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.app-switch-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.app-switch-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.app-switch-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.18));
  color: var(--text-main);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.switch-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.browser-window {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  background: #f4f6fb;
  color: #14243a;
}

.browser-chrome {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chrome-dots {
  display: flex;
  gap: 7px;
}

.chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.chrome-url-bar {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tester-hint-banner {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-viewport {
  display: none;
  min-height: 520px;
  background: #f4f3fb;
  color: #17163a;
}

.app-viewport.active {
  display: block;
}

/* App 1: ERADA Portal */
.erada-portal-header {
  background: linear-gradient(120deg, #1b1a4b 0%, #3b38a0 100%);
  color: #fff;
  padding: 14px 24px;
  border-bottom: 3px solid #fdba14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.erada-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.erada-logo-badge {
  background: #fff;
  color: #1b1a4b;
  font-weight: 900;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.erada-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.erada-subnav button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.erada-subnav button.on {
  background: #fdba14;
  color: #1b1a4b;
  border-color: transparent;
}

.sms-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 460px;
}

.sms-sidebar {
  background: #0d2a4c;
  color: #cfdbea;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sms-nav-btn {
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.sms-nav-btn.on,
.sms-nav-btn:hover {
  background: #1d6fe0;
  color: #fff;
}

.sms-main {
  background: #f3f6fa;
  padding: 20px;
}

/* App 2: Classroom Booking */
.booking-app-header {
  background: #111527;
  color: #fff;
  padding: 14px 24px;
  border-bottom: 2px solid #F9BA1C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.room-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.real-room-card {
  background: #1a2038;
  border: 1px solid rgba(249, 186, 28, 0.28);
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.83rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.app-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.app-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.badge-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-pending { background: #fef3c7; color: #b45309; }
.badge-accepted { background: #dcfce7; color: #15803d; }
.badge-free { background: #ede9fe; color: #6d28d9; }

/* ==========================================================================
   VISUAL PROJECT CARDS (MOCKUP THUMBNAILS + MINIMAL TEXT)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, border-color 0.22s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.project-visual-thumb {
  height: 170px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.thumb-portal {
  background: radial-gradient(circle at 85% 15%, rgba(253, 186, 20, 0.35), transparent 60%), linear-gradient(135deg, #1b1a4b 0%, #3b38a0 100%);
}
.thumb-booking {
  background: radial-gradient(circle at 85% 15%, rgba(249, 186, 28, 0.35), transparent 60%), linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.thumb-hr {
  background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.32), transparent 60%), linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
}
.thumb-cloud {
  background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.35), transparent 60%), linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}

.mini-ui-preview {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.project-body p {
  color: var(--text-sub);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .tech-tag {
  color: #1d4ed8;
  background: #eff6ff;
}

/* ==========================================================================
   VISUAL CONTACT CARDS
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s, border-color 0.2s;
}

.contact-visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .app-switcher-bar { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-cards-grid { grid-template-columns: 1fr; }
  .room-cards-grid { grid-template-columns: 1fr; }
  .sms-shell { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
