/* -------------------------- 
   Global Styles & Layout
-------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  color: #4A4A4A;
  scroll-behavior: smooth;
}

/* Centered Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------- 
   Header
-------------------------- */
header {
  background: linear-gradient(120deg, #2c3e50, #4a6fa5);
  color: #F5F5F5;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: top 0.3s;
}

/* Class to hide header */
header.scrolled {
  top: -100px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
}

nav li {
  margin-left: 20px;
}

nav a {
  color: #F5F5F5;
  text-decoration: none;
  font-weight: 600;
}

/* -------------------------- 
   Sections
-------------------------- */
section {
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.95);
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
section h1, section h2 {
  text-align: center;
  color: #2D3142;
  margin-bottom: 20px;
}
section p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
}

/* -------------------------- 
   Dashboard Embed
-------------------------- */
.dashboard-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border: 2px solid #2D3142;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.dashboard-embed object,
.dashboard-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* -------------------------- 
   Collapsible TOC Styles
-------------------------- */
.toc-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(45,49,66,0.1);
}
.toc-section {
  border: 2px solid #2D3142;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  background: white;
}
.toc-header {
  padding: 18px 25px;
  background: linear-gradient(120deg, #2c3e50, #4a6fa5);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}
.toc-header:hover {
  background: linear-gradient(120deg, #3a3f54, #5a7fb5);
}
.toc-header h3 {
  margin: 0;
  color: #F5F5F5;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.arrow {
  font-size: 1rem;
  color: #F5F5F5;
  transition: transform 0.3s ease;
}
.toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 25px;
  background: white;
}
.toc-content p {
  margin: 18px 0;
  line-height: 1.7;
  color: #4A4A4A;
}
.toc-content ul {
  margin: 15px 0 20px;
  padding-left: 20px;
}
.toc-section.active .toc-content {
  max-height: 5000px;
  padding: 25px;
}
.toc-section.active .arrow {
  transform: rotate(180deg);
}

/* TOC Controls */
.toc-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: flex-end;
}
.toc-controls button {
  background: #2D3142;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.toc-controls button:hover {
  background: #3D4258;
}

/* --------------------------
   Skills Container Styles
-------------------------- */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
}
.skill-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 5px;
  min-width: 180px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid #4a6fa5;
}
.skill-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.skill-box i {
  font-size: 1.5rem;
  color: #4a6fa5;
}
.skill-box span {
  font-size: 1rem;
  font-weight: 600;
  color: #2D3142;
}

/* -------------------------- 
   Download Assets Section
-------------------------- */
.download-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}
.asset-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2D3142;
  text-align: center;
}
.asset-card i.fab, .asset-card i.fas {
  font-size: 2.5rem;
  color: #2D3142;
  margin-bottom: 15px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 25px;
  background: #2D3142;
  color: #F5F5F5 !important;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
}
.download-btn:hover {
  background: #3a3f54;
  transform: translateY(-2px);
}
.github-note {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
}
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2D3142 !important;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 30px;
  border: 2px solid #2D3142;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.github-link:hover {
  background: #2D3142;
  color: #F5F5F5 !important;
}

/* -------------------------- 
   Contact Section
-------------------------- */
.contact-section {
  text-align: center;
  padding: 40px 20px !important;
  background-color: rgba(255, 255, 255, 0.95);
}
.contact-divider {
  margin: 30px auto;
  width: 60%;
  border: 0;
  height: 1px;
  background-color: #2D3142;
  opacity: 0.2;
}
.contact-message {
  max-width: 600px;
  margin: 20px auto 30px;
  font-size: 1.1rem;
  color: #4A4A4A;
}
.contact-icons {
  text-align: center;
  margin: 30px 0;
}
.contact-icons a {
  font-size: 2.2rem;
  margin: 0 20px;
  color: #2D3142;
  transition: all 0.3s ease;
  display: inline-block;
}
.contact-icons a:hover {
  color: #4a6fa5;
  transform: translateY(-3px);
}

/* -------------------------- 
   Footer
-------------------------- */
footer {
  background: linear-gradient(120deg, #2c3e50, #4a6fa5);
  color: #F5F5F5;
  text-align: center;
  padding: 20px;
}
.quick-links a {
  color: #F5F5F5;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}
.quick-links a:hover {
  opacity: 0.8;
}

/* -------------------------- 
   Fade In Animation
-------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 1s ease forwards;
}

/* -------------------------- 
   Responsive Adjustments
-------------------------- */
@media (max-width: 768px) {
  section {
    padding: 40px 20px;
  }
  .dashboard-embed {
    height: 400px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav li {
    margin: 5px 0;
  }
  .download-links {
    grid-template-columns: 1fr;
  }
  .asset-card {
    padding: 20px;
  }
  .contact-icons a {
    font-size: 1.8rem;
    margin: 0 15px;
  }
  .contact-divider {
    width: 80%;
  }
}
/* --------------------------
   Fork / "kpi" Subtitle Theme
   (applies across all details.kpi / forks)
-------------------------- */

/* Palette (tweak here to change theme globally) */
:root{
  --accent-strong: #2D3142;   /* primary deep slate */
  --accent-lean:   #4a6fa5;   /* gradient secondary */
  --muted:         #6b7280;   /* subtle text */
  --card-bg:       #ffffff;
  --subtle-bg:     #f4f7fb;
  --accent-soft:   #667eea;   /* tertiary highlight */
  --success:       #2da44e;
}

/* Fork base adjustments (ensure visual breathing room) */
.kpi {
  border: 1px solid rgba(45,49,66,0.08);
  border-radius: 8px;
  background: var(--card-bg);
  margin-bottom: 12px;
  overflow: visible; /* so markers / numbers don't get clipped */
}

/* summary row styling (clickable header) */
.kpi > summary.kpi-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-lean));
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}
.kpi > summary.kpi-summary::-webkit-details-marker { display: none; } /* hide default marker */

/* small arrow glyph */
.kpi > summary.kpi-summary .arrow-sm {
  transform: rotate(0deg);
  transition: transform .25s ease;
  font-weight: 700;
}

/* rotate arrow when open */
.kpi[open] > summary.kpi-summary .arrow-sm {
  transform: rotate(90deg);
}

/* body area inside fork */
.kpi .kpi-body {
  padding: 18px 20px;
  background: var(--subtle-bg);
  border-top: 1px solid rgba(45,49,66,0.04);
  color: var(--muted);
  line-height: 1.6;
}

/* Primary subtitle inside forks (maps to your H4/H5 in content) */
.kpi .kpi-body h4,
.kpi .kpi-body h5 {
  margin: 8px 0 12px;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* If you prefer H4 as 'subtitle' and H5 as 'sub-subtitle' */
.kpi .kpi-body h4 {
  font-size: 1.06rem;       /* subtitle size */
  padding-left: 8px;
  position: relative;
}
.kpi .kpi-body h4::before {
  content: "";
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent-lean), var(--accent-soft));
  border-radius: 3px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* Sub-subtitle (slightly lighter, used for H5 or .kpi-sub) */
.kpi .kpi-body h5 {
  font-size: 0.98rem;
  color: var(--accent-lean);
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 10px;
  padding-left: 16px;
}

/* Utility class for inline subsection titles */
.kpi .kpi-subtitle {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

/* Smaller helper label used for tiny subheads */
.kpi .kpi-note {
  display: block;
  color: #5b6773;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

/* Nice divider between subsections inside fork */
.kpi .kpi-divider {
  height: 1px;
  background: rgba(45,49,66,0.06);
  margin: 12px 0;
  border-radius: 2px;
}

/* Make lists inside forks clearer and indented */
.kpi .kpi-body ol,
.kpi .kpi-body ul {
  padding-left: 1.9rem;     /* indentation for markers */
  margin-bottom: 12px;
  color: #3f4954;
}
.kpi .kpi-body ol li {
  margin-bottom: 8px;
}

/* Code blocks inside forks: keep your existing look but slightly darker */
.kpi .kpi-body pre.code-block {
  background: #0e1630;
  border-left-color: rgba(74,74,74,0.12);
  color: #e9f0ff;
  margin-top: 12px;
}

/* Ensure accessibility: sufficient contrast for small text */
.kpi .kpi-body p,
.kpi .kpi-body li {
  color: #2f3a43;
  font-size: 0.98rem;
}

/* Responsive tweaks for small screens */
@media (max-width: 700px) {
  .kpi .kpi-body { padding: 14px; }
  .kpi .kpi-body h4 { font-size: 1rem; }
  .kpi .kpi-body h5 { font-size: 0.95rem; }
}



.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: none; display: block; }
.video-placeholder { color: #ddd; font-weight: 600; padding: 20px; }

/* mobile tweak: use almost full width and cap height */
@media (max-width: 700px) {
  .presentation-box { margin: 12px auto; border-radius: 6px; }
}