/* ===================================================
   PORTFOLIO - Sapotama Mode
   =================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Variables --- */
:root {
  --red:       #c0001a;
  --red-dark:  #7a0010;
  --red-light: #e8002a;
  --gold:      #c8a227;
  --yellow:    #ffdd00;
  --silver:    #8a8a8a;
  --grey-dim:  #4a4a4a;
  --cream:     #d4c9a0;
  --white:     #f0ead6;
  --bg:        #0a0005;
  --lcd:       #061006;
  --lcd-green: #39ff14;
  --lcd-dim:   #1a4a1a;
  --fp: 'Press Start 2P', monospace;
  --fm: 'Share Tech Mono', monospace;
  /* Sapotama colors */
  --egg-white: #f5f5f0;
  --egg-shadow: #d0d0c8;
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(120,0,20,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(80,0,10,0.15) 0%, transparent 50%);
  font-family: var(--fm);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===================================================
   FLASH OVERLAY
   =================================================== */
.dv-flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}
.dv-flash.go {
  animation: doFlash 0.55s ease forwards;
}
@keyframes doFlash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ===================================================
   MODE TOGGLE BUTTON
   =================================================== */
.mode-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--red-dark);
  border: 2px solid var(--red);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--fp);
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(192,0,26,0.4);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.mode-toggle:hover {
  background: var(--red);
  box-shadow: 0 0 20px rgba(192,0,26,0.7);
  color: #fff;
}

/* ===================================================
   WEBSITE VIEW
   =================================================== */
#websiteView[hidden] { display: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,0,5,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--red-dark);
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--fp);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav { display: flex; gap: 24px; }
.site-nav-link {
  font-family: var(--fp);
  font-size: 8px;
  color: var(--silver);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s, text-shadow 0.2s;
}
.site-nav-link:hover { color: var(--red-light); text-shadow: 0 0 8px var(--red-light); }

/* ---- Hero ---- */
.site-hero {
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--red-dark);
}
.site-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.site-hero-text { flex: 1; min-width: 260px; }
.site-hero-name {
  font-family: var(--fp);
  font-size: clamp(22px, 4vw, 36px);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(192,0,26,0.4);
}
.site-hero-role {
  font-family: var(--fm);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ---- Sections ---- */
.site-section {
  padding: 60px 24px;
  border-bottom: 1px solid var(--red-dark);
}
.site-section--alt { background: rgba(120,0,20,0.04); }
.site-section-inner { max-width: 900px; margin: 0 auto; }
.site-section-title {
  font-family: var(--fp);
  font-size: 16px;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 32px;
}
.bracket { color: var(--red-light); text-shadow: 0 0 8px var(--red-light); }
.site-body-text {
  font-family: var(--fm);
  font-size: 15px;
  color: var(--cream);
  line-height: 1.8;
  max-width: 680px;
  opacity: 0.9;
  margin-bottom: 24px;
}
.site-contact-list { display: flex; flex-direction: column; gap: 16px; }
.site-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fm);
  font-size: 16px;
  color: var(--cream);
  text-decoration: none;
  padding: 14px 18px;
  background: #110003;
  border: 1px solid var(--red-dark);
  border-radius: 6px;
  max-width: 480px;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.site-contact-item:hover { border-color: var(--red); box-shadow: 0 0 16px rgba(192,0,26,0.25); color: #fff; }
.site-contact-icon { font-size: 20px; color: var(--gold); text-shadow: 0 0 8px var(--gold); width: 28px; flex-shrink: 0; }

.site-project-list { display: flex; flex-direction: column; gap: 16px; }
.site-project-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fm);
  font-size: 16px;
  color: var(--cream);
  text-decoration: none;
  padding: 14px 18px;
  background: #110003;
  border: 1px solid var(--red-dark);
  border-radius: 6px;
  max-width: 480px;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.site-project-item:hover { border-color: var(--red); box-shadow: 0 0 16px rgba(192,0,26,0.25); color: #fff; }
/*Project Images*/
.bizsite{
	display:flex;
	flex-direction; row: 16px;
	width: 180px;	
	
}
.vitalwear{
	display:flex;
	flex-direction; row: 16px;
	width: 120px
}
.wdnotebook{
	display: flex;
	flex-direction; row: 16px;
	width: 200px;
}
.aiinvest{
	display: flex;
	flex-direction; row: 16px;
	width: 200px;
}






/* ---- Footer ---- */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  font-family: var(--fp);
  font-size: 7px;
  color: var(--grey-dim);
  letter-spacing: 1px;
  border-top: 1px solid var(--red-dark);
}

/* ===================================================
   SAPOTAMA VIEW
   =================================================== */
.dv-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.dv-page[hidden] { display: none; }

/* ---- Shell - Egg shaped like Sapotama ---- */
.dv-shell {
  width: 320px;
  animation: dvFloat 4s ease-in-out infinite;
}

/* ---- Body - Egg shape with Sapotama glow ring ---- */
.dv-body {
  --glow-color: var(--red-light);
  background: linear-gradient(180deg, var(--egg-white) 0%, #e8e8e0 100%);
  border: 3px solid var(--egg-shadow);
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
  padding: 24px 20px 20px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.6),
    0 0 0 1px var(--egg-shadow),
    0 0 30px var(--glow-color),
    0 0 60px rgba(192,0,26,0.2),
    0 8px 32px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Glossy sheen (Sapotama egg surface) */
.dv-body::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
/* Float animation */
@keyframes dvFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
/* Glow pulse animation */
@keyframes glowPulse {
  0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 0 0 1px var(--egg-shadow), 0 0 30px var(--glow-color), 0 0 60px rgba(192,0,26,0.2), 0 8px 32px rgba(0,0,0,0.3); }
  50% { box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 0 0 1px var(--egg-shadow), 0 0 45px var(--glow-color), 0 0 80px rgba(192,0,26,0.35), 0 8px 32px rgba(0,0,0,0.3); }
}
.dv-body { animation: dvFloat 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite; }

/* ---- Status bar (smartphone-style top) ---- */
.dv-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  font-family: var(--fp);
  font-size: 6px;
  color: #333;
  z-index: 12;
  position: relative;
}
.dv-logo {
  font-size: 7px;
  color: var(--red);
  letter-spacing: 2px;
  text-shadow: none;
  font-weight: bold;
}
.dv-time { letter-spacing: 1px; color: #555; }
.dv-status-icons { display: flex; gap: 6px; align-items: center; }
.dv-battery { letter-spacing: 0.5px; color: #555; font-size: 5px; }
.dv-signal { display: flex; gap: 2px; align-items: flex-end; }
.dv-signal span { background: #39ff14; width: 3px; }
.dv-signal span:nth-child(1){height:3px}
.dv-signal span:nth-child(2){height:5px}
.dv-signal span:nth-child(3){height:7px}

/* ---- Screen (Sapotama interactive surface) ---- */
.dv-screen {
  background: var(--lcd);
  border-radius: 12px;
  height: 280px;
  position: relative;
  overflow: hidden;
  flex: 1;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.3);
}

/* CRT scanlines */
.dv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.15) 3px, rgba(0,0,0,0.15) 4px);
  pointer-events: none;
  z-index: 10;
}
/* CRT vignette */
.dv-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 11;
}

/* ---- Panels ---- */
.dv-panel {
  position: absolute;
  inset: 0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  z-index: 1;
}
.dv-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}
.dv-panel.exit {
  opacity: 0;
  transform: translateX(-100%);
}

/* Panel - home */
.dv-title {
  font-family: var(--fp);
  font-size: 9px;
  color: var(--lcd-green);
  text-shadow: 0 0 10px var(--lcd-green);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.dv-subtitle {
  font-family: var(--fp);
  font-size: 6px;
  color: var(--lcd-dim);
  letter-spacing: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }
.blink { animation: blink 1.8s step-end infinite; }

/* Panel - about / contact shared */
.dv-panel-heading {
  font-family: var(--fp);
  font-size: 8px;
  color: var(--red-light);
  text-shadow: 0 0 8px var(--red-light);
  align-self: flex-start;
  margin-bottom: 12px;
}
.dv-line {
  font-family: var(--fp);
  font-size: 9px;
  color: var(--lcd-green);
  align-self: flex-start;
  margin-bottom: 6px;
  line-height: 1.6;
}
.dv-key {
  color: var(--cream);
  margin-right: 6px;
}
.dv-divider { width: 100%; height: 1px; background: var(--lcd-dim); margin: 7px 0; }
.dv-body-text {
  font-family: var(--fm);
  font-size: 14px;
  color: #8aff8a;
  line-height: 1.7;
  align-self: flex-start;
  opacity: 1;
}
.dv-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 11px;
  color: #8aff8a;
  text-decoration: none;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: rgba(57,255,20,0.08);
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.dv-contact-row:hover { color: #fff; background: rgba(57,255,20,0.15); }

/* ---- Controls (smartphone-style minimal) ---- */
.dv-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
  position: relative;
}
.dv-nav-tab {
  padding: 10px 12px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  color: #555;
  font-family: var(--fp);
  font-size: 6px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-align: center;
  min-width: 70px;
}
.dv-nav-tab:hover { background: rgba(0,0,0,0.1); color: #333; }
.dv-nav-tab:active { transform: scale(0.95); }
.dv-nav-tab.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red-dark);
  box-shadow: 0 0 8px rgba(192,0,26,0.4);
  text-shadow: none;
}

.dv-action-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  background: radial-gradient(circle at 35% 35%, #f8f8f0, #d8d8d0);
  color: #333;
  font-family: var(--fp);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.dv-action-btn:active, .dv-action-btn.pressed {
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
  background: radial-gradient(circle at 35% 35%, var(--red), var(--red-dark));
  color: #fff;
}
/* Home button styling */
.dv-btn-home {
  background: radial-gradient(circle at 35% 35%, #fff, #e8e8e0);
  border-color: rgba(192,0,26,0.3);
}
