/* Clean Code Presentation Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ffffff;
  --secondary-color: #60a5fa;
  --accent-color: #f87171;
  --success-color: #4ade80;
  --warning-color: #fbbf24;
  --background-color: #0f1419;
  --card-background: #1e293b;
  --text-color: #f8fafc;
  --text-light: #cbd5e1;
  --border-color: #334155;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-success: linear-gradient(135deg, #38a169 0%, #4299e1 100%);
  --gradient-bg: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--gradient-bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(66, 153, 225, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(56, 161, 105, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(237, 137, 54, 0.1) 0%, transparent 50%);
  animation: floatParticles 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatParticles {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--primary-color);
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
h5 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
h6 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
a:visited {
  color: var(--text-light);
}
a:active {
  color: var(--accent-color);
}
a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}
/* Presentation Container */
.presentation-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Slides */
.slide {
  min-height: 100vh;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide:nth-child(even) {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.02) 0%, rgba(155, 89, 182, 0.02) 100%);
}

/* Speaker Info */
.speaker-info {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--card-background);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.speaker-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.speaker-info p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* Key Takeaway */
.key-takeaway {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
  border-left: 5px solid var(--success-color);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 15px 15px 0;
  font-size: 1.2rem;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

.key-takeaway::before {
  content: "💡";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.7;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.principle-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--secondary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.principle-card:hover::before {
  transform: scaleX(1);
}

.principle-card h3,
.principle-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.principle-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Code Blocks */
.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 2rem;
  border-radius: 15px;
  font-family: "Fira Code", "Monaco", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: var(--shadow-medium);
}

.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Syntax highlighting */
.code-block .keyword {
  color: #569cd6;
  font-weight: bold;
}
.code-block .string {
  color: #ce9178;
}
.code-block .comment {
  color: #6a9955;
  font-style: italic;
}
.code-block .function {
  color: #dcdcaa;
}
.code-block .variable {
  color: #9cdcfe;
}
.code-block .type {
  color: #4ec9b0;
}

/* Good/Bad Examples Container */
.good-bad-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.good-example,
.bad-example {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.good-example {
  border-left: 5px solid var(--success-color);
}

.bad-example {
  border-left: 5px solid var(--accent-color);
}

.good-example h4 {
  color: var(--success-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.bad-example h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Architecture Diagram */
.architecture-diagram {
  margin: 2rem 0;
  text-align: center;
}

.layer {
  padding: 1.5rem;
  margin: 0.5rem 0;
  border-radius: 15px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.layer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.layer:hover::before {
  left: 100%;
}

/* Metrics Container */
.metrics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.metric-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.metric-card:hover::before {
  opacity: 0.05;
}

.metric-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.metric-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.metric-card p {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tool-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.tool-card:hover::after {
  transform: scaleX(1);
}

.tool-card h3,
.tool-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.tool-card p {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tool-card small {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 0.8rem;
  top: 0.2rem;
}

/* Navigation */
.navigation {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 1000;
  background: rgba(26, 32, 44, 0.9);
  backdrop-filter: blur(15px);
  padding: 1.5rem 0.8rem;
  border-radius: 25px;
  box-shadow: var(--shadow-heavy);
  border: 1px solid var(--border-color);
}

.nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

.nav-dot:hover {
  background: var(--secondary-color);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(66, 153, 225, 0.4);
}

.nav-dot.active {
  background: var(--secondary-color);
  transform: scale(1.4);
  box-shadow: 0 0 20px rgba(66, 153, 225, 0.6);
  border-color: rgba(66, 153, 225, 0.3);
}

.nav-dot.active::after {
  content: "";
  position: absolute;
  top: -6.25px;
  left: -6.25px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}
/* Responsive Design */
@media (max-width: 1024px) {
  .presentation-container {
    padding: 0 1.5rem;
  }

  .navigation {
    right: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .good-bad-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .metrics-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .slide {
    padding: 3rem 0;
    min-height: auto;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .code-block {
    font-size: 0.8rem;
    padding: 1.5rem;
  }

  .principle-card,
  .tool-card {
    padding: 1.5rem;
  }

  .key-takeaway {
    padding: 1.5rem;
    font-size: 1.1rem;
  }

  .navigation {
    right: 0.5rem;
    padding: 0.5rem 0.25rem;
  }

  .nav-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .presentation-container {
    padding: 0 1rem;
  }

  .slide {
    padding: 2rem 0;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .metrics-container {
    grid-template-columns: 1fr 1fr;
  }

  .metric-number {
    font-size: 2.5rem;
  }
}

/* Smooth animations */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Print styles */
@media print {
  .navigation {
    display: none;
  }

  .slide {
    min-height: auto;
    page-break-after: always;
    padding: 2rem 0;
  }

  .code-block {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd;
  }
}

/* Enhanced code blocks */
.code-block {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
  color: #d4d4d4;
  padding: 2.5rem;
  border-radius: 18px;
  font-family: "Fira Code", "JetBrains Mono", "Monaco", "Consolas", monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  overflow-x: auto;
  margin: 2rem 0;
  position: relative;
  box-shadow: var(--shadow-heavy);
  border: 1px solid #404040;
}

.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.code-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 18px 18px 0 0;
}

/* Enhanced syntax highlighting */
.code-block .keyword {
  color: #569cd6;
  font-weight: bold;
}
.code-block .string {
  color: #ce9178;
}
.code-block .comment {
  color: #6a9955;
  font-style: italic;
  opacity: 0.8;
}
.code-block .function {
  color: #dcdcaa;
  font-weight: 600;
}
.code-block .variable {
  color: #9cdcfe;
}
.code-block .type {
  color: #4ec9b0;
  font-weight: 500;
}
.code-block .number {
  color: #b5cea8;
}
.code-block .operator {
  color: #d4d4d4;
  font-weight: bold;
}
.code-block .punctuation {
  color: #d4d4d4;
}

/* Add copy button to code blocks */
.code-block {
  position: relative;
}

.code-block:hover::after {
  opacity: 0.8;
}

/* Enhanced card styles */
.principle-card,
.tool-card,
.metric-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.principle-card:hover,
.tool-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 0 30px rgba(66, 153, 225, 0.2);
}

.slide {
  min-height: 100vh;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInEnhanced 1s ease-out forwards;
}

@keyframes slideInEnhanced {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.slide:nth-child(even) {
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.linkedin-qr {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--card-background);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.qr-container {
  display: inline-block;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  margin: 1rem 0;
  box-shadow: var(--shadow-light);
}

.qr-container img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
}

.linkedin-qr h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.linkedin-qr p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Responsive updates */
@media (max-width: 768px) {
  .navigation {
    right: 1rem;
    padding: 1rem 0.5rem;
    gap: 0.6rem;
  }

  .nav-dot {
    width: 12px;
    height: 12px;
  }

  .code-block {
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 15px;
  }

  .code-block::before {
    top: 0.8rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
}
