@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+Pro:wght@400;600&family=Fira+Code:wght@400;500&display=swap');

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

body {
  font-family: 'Source Sans Pro', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #ffffff;
}

.slide {
  max-width: 1100px;
  width: 100%;
  min-height: 80vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
  overflow: hidden;
}

/* Page load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e94560;
}

h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #e94560;
}

.subtitle {
  font-size: 1.2rem;
  color: #a0a0a0;
  margin-bottom: 2rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.2rem;
  line-height: 1.5;
}

ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #e94560;
}

ul ul li {
  font-size: 1rem;
  color: #c0c0c0;
}

ul ul li::before {
  content: "•";
  color: #e94560;
}

.highlight {
  color: #e94560;
  font-weight: 600;
}

code {
  background: rgba(233, 69, 96, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
}

pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  border-left: 3px solid #e94560;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.slide-number {
  display: none;
}

.nav {
  position: fixed;
  bottom: 20px;
  left: 30px;
  display: flex;
  gap: 8px;
}

.nav a {
  color: #e94560;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #e94560;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  background: #0f3460;
}

.nav a:hover {
  background: #e94560;
  color: #ffffff;
}

.slide-footer {
  position: fixed;
  bottom: 20px;
  right: 30px;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0f3460;
  padding: 8px 16px;
  border-radius: 4px;
}

.slide-footer .sep {
  color: #e94560;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.three-column {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
}

.card.accent {
  background: rgba(233, 69, 96, 0.15);
  border-color: rgba(233, 69, 96, 0.3);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.image-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gif-container {
  max-width: 300px;
  margin: 1rem 0;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tool-tag {
  background: rgba(233, 69, 96, 0.2);
  border: 1px solid rgba(233, 69, 96, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.quote {
  font-style: italic;
  color: #c0c0c0;
  border-left: 3px solid #e94560;
  padding-left: 1rem;
  margin: 1rem 0;
}

.architecture-diagram {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  white-space: pre;
  line-height: 1.4;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  color: #e94560;
  font-weight: 600;
}

.section-title {
  color: #e94560;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.break-slide {
  text-align: center;
  justify-content: center;
}

.break-slide h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info a {
  color: #e94560;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .two-column, .three-column {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  body {
    padding: 20px;
  }
}

/* Keyboard navigation hint - hidden */
.nav-hint {
  display: none;
}

/* Hover Effects for Interactive Slides */

/* Pattern A: Tooltip-style (preferred) */
.tooltip-trigger {
  position: relative;
  cursor: pointer;
}

.tooltip-trigger .tooltip {
  position: absolute;
  background: rgba(15, 52, 96, 0.95);
  border: 1px solid #e94560;
  border-radius: 8px;
  padding: 12px 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  min-width: 200px;
  max-width: 300px;
  font-size: 0.85rem;
  color: #c0c0c0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tooltip-trigger:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Pattern B: Fade-in descriptions */
.fade-detail {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hover-card:hover .fade-detail {
  opacity: 1;
  max-height: 100px;
}

/* Pattern C: Expandable cards */
.expand-card {
  transition: all 0.3s ease;
}

.expand-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(233, 69, 96, 0.2);
}

/* ===========================================
   ANIMATION SYSTEM
   =========================================== */

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  70% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Base animation properties */
.animate {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: both;
}

.animate-fast { animation-duration: 0.3s; }
.animate-slow { animation-duration: 0.7s; }

/* Animation types */
.animate-fade { animation-name: fadeIn; }
.animate-scale { animation-name: scaleIn; }
.animate-slide-left { animation-name: slideInLeft; }
.animate-slide-right { animation-name: slideInRight; }
.animate-pop { animation-name: popIn; }

/* Stagger delays for children */
.animate-stagger > * {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: both;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.animate-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.animate-stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* Slower stagger for dramatic effect */
.animate-stagger-slow > * {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: both;
}

.animate-stagger-slow > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger-slow > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger-slow > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger-slow > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger-slow > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger-slow > *:nth-child(6) { animation-delay: 0.6s; }

/* Stagger with scale animation */
.animate-stagger-scale > * { animation-name: scaleIn; }
.animate-stagger-pop > * { animation-name: popIn; }
.animate-stagger-fade > * { animation-name: fadeIn; }
.animate-stagger-left > * { animation-name: slideInLeft; }
.animate-stagger-right > * { animation-name: slideInRight; }
