/* ================================================================
   DESIGN TOKENS — thejavi.com Portfolio 2026
   ================================================================ */
:root {
  --color-bg:           #ffffff;
  --color-surface:      #f8f8f8;
  --color-accent:       #c8cc00;
  --color-accent-dark:  #a8ab00;
  --color-text:         #0a0a0a;
  --color-text-muted:   #444444;
  --color-client-label: #a8ab00;
  --color-route:        #0a0a0a;

  --font-family-base: 'Inter', system-ui, sans-serif;
  --font-size-section-title: clamp(3.5rem, 9vw, 7.5rem);
  --font-size-header:  1.2rem;
  --font-size-body:    1.25rem;

  --spacing-slide-pad: clamp(1.2rem, 2.5vw, 2.2rem);
  --header-height: 3.6rem;
  --logo-mark-size: 2.8rem;

  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 4px 24px rgba(0,0,0,0.07);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.reveal {
  font-family: var(--font-family-base);
  background: var(--color-bg);
  color: var(--color-text);
}

.reveal .slides section {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  background: var(--color-bg);
}

/* Remove Reveal's default style resets that conflict */
.reveal h1, .reveal h2, .reveal h3, .reveal p, .reveal ul, .reveal li {
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.55;
}

/* ================================================================
   LOGO — SVG Image Styles
   ================================================================ */
.logo-img-header {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-img-section {
  height: 140px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-small {
  display: flex;
  align-items: center;
}

/* ================================================================
   SECTION SLIDES (Slide 1, 19 — big title dividers)
   ================================================================ */
.slide-section {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--spacing-slide-pad) !important;
  min-height: 100%;
  position: relative;
  background: var(--color-bg) !important;
}

.section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 75%;
}

.section-title {
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-section-title) !important;
  font-weight: 900 !important;
  color: var(--color-text) !important;
  line-height: 1 !important;
  margin-bottom: 0.15em !important;
  letter-spacing: -0.04em !important;
}

.section-underline {
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  margin-top: 0.1em;
  transition: width var(--transition-base);
}

/* Logo positioned center-right vertically on section slides */
.logo-corner--center {
  position: absolute;
  right: var(--spacing-slide-pad);
  top: 50%;
  transform: translateY(-50%);
}

/* ================================================================
   INFO & SCREENSHOT SLIDES — common header
   ================================================================ */
.slide-info,
.slide-screenshot {
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  min-height: 100%;
  background: var(--color-bg) !important;
}

/* Header bar */
.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem var(--spacing-slide-pad);
  border-bottom: 2px solid var(--color-accent);
  min-height: var(--header-height);
  flex-shrink: 0;
}

.slide-header__title {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  flex-wrap: wrap;
}

.client-label {
  font-size: var(--font-size-header);
  font-weight: 400;
  color: var(--color-text);
}

.client-name {
  font-weight: 700;
  color: var(--color-accent-dark);
}

.slide-route {
  font-size: var(--font-size-header);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* ================================================================
   SLIDE BODY — two-column layout
   ================================================================ */
.slide-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.slide-body--two-col {
  flex-direction: row;
  gap: 0;
  align-items: stretch;
}

.col-image {
  width: 42%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-slide-pad);
  background: var(--color-surface);
  overflow: hidden;
}

.screenshot-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-base);
}

.screenshot-img:hover {
  transform: scale(1.015);
}

.col-text {
  flex: 1;
  padding: var(--spacing-slide-pad) calc(var(--spacing-slide-pad) * 1.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65em;
  overflow: hidden;
}

.col-text p {
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.65;
  font-weight: 450;
  margin: 0 !important;
}

.col-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.col-text ul li {
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.65;
  font-weight: 450;
  padding-left: 1em;
  position: relative;
}

.col-text ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.col-text strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ================================================================
   FULL-IMAGE SLIDES (screenshot showcase)
   ================================================================ */
.slide-body--full-img {
  flex-direction: column;
  padding: var(--spacing-slide-pad);
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
}

.full-screenshot {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  transition: transform var(--transition-base);
}

.full-screenshot:hover {
  transform: scale(1.005);
}

/* ================================================================
   SLIDE NUMBER — Reveal.js override
   ================================================================ */
.reveal .slide-number {
  font-family: var(--font-family-base);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  padding: 4px 8px;
}

/* ================================================================
   PROGRESS BAR
   ================================================================ */
.reveal .progress {
  height: 3px;
  background: rgba(200, 204, 0, 0.15);
}

.reveal .progress span {
  background: var(--color-accent);
  transition: width 0.3s ease;
}

/* ================================================================
   NAVIGATION CONTROLS
   ================================================================ */
.reveal .controls {
  color: var(--color-accent);
}

.reveal .controls button {
  color: var(--color-accent);
}

/* ================================================================
   FRAGMENT ANIMATIONS
   ================================================================ */
.reveal .fragment {
  transition: all 0.35s ease;
}

/* ================================================================
   RESPONSIVE ADJUSTMENTS & MOBILE READABILITY
   ================================================================ */
@media (max-width: 768px) {
  .slide-header {
    padding: 0.4rem 1rem;
    min-height: 2.8rem;
  }

  .slide-header__title {
    font-size: 1.2rem !important;
  }

  .client-label,
  .slide-route {
    font-size: 1.15rem !important;
  }

  .logo-img-header {
    height: 30px;
  }

  .logo-img-section {
    height: 90px;
  }

  .slide-body--two-col {
    flex-direction: column;
  }

  .col-image {
    width: 100%;
    max-height: 32%;
    padding: 0.8rem;
  }

  .col-text {
    flex: 1;
    padding: 1rem 1.2rem 3.5rem 1.2rem;
    gap: 0.8em;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .col-text p,
  .col-text ul li {
    font-size: 1.35rem !important;
    line-height: 1.65 !important;
    color: #050505 !important;
  }

  .section-title {
    font-size: clamp(2.5rem, 12vw, 4.5rem) !important;
  }

  .custom-nav-bar {
    bottom: 0.4rem;
    padding: 0.3rem 0.6rem;
    transform: translateX(-50%) scale(0.88);
  }
}

/* ================================================================
   PORTRAIT MOBILE CANVAS LAYOUT (720x1280 portrait canvas)
   ================================================================ */
@media (max-width: 768px) and (orientation: portrait), (max-aspect-ratio: 1/1) and (max-width: 768px) {
  .slide-info,
  .slide-screenshot {
    height: 1280px !important;
    width: 720px !important;
  }

  .slide-header {
    height: 100px !important;
    padding: 0 32px !important;
    border-bottom: 3px solid var(--color-accent) !important;
    box-sizing: border-box;
  }

  .slide-header__title {
    gap: 12px;
  }

  .client-label,
  .slide-route {
    font-size: 26px !important;
    font-weight: 700 !important;
  }

  .logo-img-header {
    height: 48px !important;
  }

  .slide-body--two-col {
    flex-direction: column !important;
    height: 1180px !important;
  }

  .col-image {
    width: 100% !important;
    height: 450px !important;
    padding: 24px !important;
    flex-shrink: 0;
    background: var(--color-surface);
  }

  .screenshot-img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .col-text {
    width: 100% !important;
    height: 730px !important;
    padding: 32px 36px 140px 36px !important;
    gap: 20px !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .col-text p,
  .col-text ul li {
    font-size: 28px !important;
    line-height: 1.6 !important;
    font-weight: 450 !important;
    color: #050505 !important;
  }

  .col-text ul li::before {
    font-size: 28px !important;
    font-weight: 700 !important;
  }

  /* Section Cover Slides */
  .slide-section {
    height: 1280px !important;
    width: 720px !important;
    padding: 60px !important;
  }

  .section-title {
    font-size: 96px !important;
  }

  .logo-img-section {
    height: 140px !important;
  }

  /* Navigation bar in portrait mode (compact pill) */
  .custom-nav-bar {
    bottom: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 30px !important;
    transform: translateX(-50%) scale(1) !important;
  }

  .nav-btn {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    gap: 0.3rem !important;
  }

  .nav-counter {
    font-size: 0.78rem !important;
    min-width: 3.2rem !important;
  }
}

/* ================================================================
   ENTER ANIMATION — slide-in on appear
   ================================================================ */
.reveal .present .slide-header {
  animation: headerSlideIn 0.45s ease both;
}

.reveal .present .section-title {
  animation: titleFadeUp 0.5s 0.1s ease both;
}

.reveal .present .section-underline {
  animation: underlineExpand 0.5s 0.3s ease both;
  transform-origin: left;
}

.reveal .present .col-text p,
.reveal .present .col-text ul li {
  animation: textFadeIn 0.4s ease both;
}

.reveal .present .col-text p:nth-child(1)  { animation-delay: 0.15s; }
.reveal .present .col-text p:nth-child(2)  { animation-delay: 0.25s; }
.reveal .present .col-text p:nth-child(3)  { animation-delay: 0.35s; }
.reveal .present .col-text ul li:nth-child(1) { animation-delay: 0.15s; }
.reveal .present .col-text ul li:nth-child(2) { animation-delay: 0.25s; }
.reveal .present .col-text ul li:nth-child(3) { animation-delay: 0.35s; }
.reveal .present .col-text ul li:nth-child(4) { animation-delay: 0.45s; }

.reveal .present .screenshot-img,
.reveal .present .full-screenshot {
  animation: imgReveal 0.55s 0.1s ease both;
}

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

@keyframes titleFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes underlineExpand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes imgReveal {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   CUSTOM CENTERED NAVIGATION BAR
   ================================================================ */
.custom-nav-bar {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.custom-nav-bar:hover {
  background: rgba(17, 17, 17, 0.96);
  border-color: rgba(200, 204, 0, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(200, 204, 0, 0.2);
  color: var(--color-accent);
}

.nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.nav-btn--arrow {
  padding: 0.35rem 0.5rem;
  color: var(--color-accent);
}

.nav-btn--home {
  color: #e0e0e0;
}

.nav-btn--home:hover {
  color: var(--color-accent);
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 0.2rem;
}

.nav-counter {
  font-family: var(--font-family-base);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 4rem;
  text-align: center;
  letter-spacing: 0.03em;
  user-select: none;
}

