/* ==========================================================================
   Ventos Design System & Core Styles
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-primary: #0a0c10;
  --bg-secondary: #121620;
  --bg-card: rgba(22, 28, 41, 0.65);
  --bg-card-pure: #0f131a;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #3b82f6; /* Electric Blue */
  --accent-primary-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.45);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.3);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.5);
  
  /* Layout & Fonts */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition-speed: 0.3s;
}

/* Base resets & scroll behavior */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

/* ==========================================================================
   Typography & Reusable Components
   ========================================================================== */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 1.6rem; /* 20% smaller */
  color: #fff; /* White */
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  border-radius: 2px;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: #fff;
}

.btn, .scroll-to-top, .nav-link, .btn-icon {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn:focus-visible, .scroll-to-top:focus-visible {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

.btn-navigation {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn-navigation:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary-hover);
}

.btn-navigation:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Icon button helper */
.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all var(--transition-speed);
}

.btn-icon:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Header Navigation Layout
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition-speed);
  transform: translateZ(0);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* Anchor for absolute menu toggle */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-speed);
  background-color: transparent;
}

.brand:hover .nav-logo {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: none; /* Always use hamburger menu */
  gap: 4rem; /* Triple spaced vertically */
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-speed);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition-speed);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff !important;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 9999;
  padding: 0.5rem;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   Page Sections & Hero (Logo Visual Effects)
   ========================================================================== */

.content-wrapper {
  margin-top: var(--header-height);
  flex: 1;
}

.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
  border-bottom: none;
}

/* Hero Section (Black Background Card & Glowing Logo) */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 6rem 2rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem; /* Twice the space (originally 2.5rem) */
  max-width: 800px;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-glow-effect {
  position: absolute;
  bottom: -30px; /* Under the logo text (doubled from -15px) */
  left: 6%;
  width: 88%;
  height: 3px; /* Glowing underscore line */
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 1) 20%, rgba(59, 130, 246, 1) 80%, transparent);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.85), 0 6px 18px rgba(59, 130, 246, 0.5);
  border-radius: 2px;
  z-index: 1;
  animation: logoPulse 3s ease-in-out infinite alternate;
}

.main-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px; /* 50% bigger than original */
  height: auto;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-logo:hover {
  transform: scale(1.04);
}

@keyframes logoPulse {
  0% { transform: scaleX(0.95); opacity: 0.65; }
  100% { transform: scaleX(1.03); opacity: 1.0; }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  color: #fff;
  font-size: 1.6rem; /* Same size as .section-title */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-text .subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-text .description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Video Player Layout
   ========================================================================== */

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
}

.video-glow-bg {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-indigo-glow) 0%, transparent 80%);
  filter: blur(25px);
  z-index: 1;
}

.video-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: var(--bg-card-pure);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-speed);
}

.video-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

.video-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Overlay Poster */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 12, 16, 0.9) 0%, rgba(18, 22, 32, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.video-play-btn {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-overlay:hover .video-play-btn {
  transform: scale(1.15);
  background-color: transparent;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.video-duration-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Class to hide overlay once playing */
.video-overlay.video-playing {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Interactive Book Reader Layout
   ========================================================================== */

.reader-container {
  display: flex;
  position: relative; /* Anchor for overlay absolute sidebar */
  background-color: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  min-height: 650px;
  max-height: 800px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

/* Sidebar Styling */
.reader-sidebar {
  width: 280px;
  background-color: var(--bg-card-pure);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform var(--transition-speed) ease;
  
  /* Make overlay collapsable on all screen sizes */
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 100;
  transform: translateX(-100%);
  box-shadow: 15px 0 35px rgba(0, 0, 0, 0.7);
}

.reader-sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.sidebar-close {
  display: block; /* Always show close button */
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.chapter-list {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid transparent;
}

.chapter-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.chapter-item.active {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--accent-primary-hover);
}

.chapter-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.chapter-item.active .chapter-num {
  color: var(--accent-primary);
  background-color: rgba(59, 130, 246, 0.15);
}

.chapter-title {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Book Display Canvas Dashboard */
.book-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: rgba(10, 12, 16, 0.4);
}

/* Header toolbar controls */
.reader-top-bar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(18, 22, 32, 0.5);
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

#zoomPercent {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 42px;
  text-align: center;
  color: var(--text-secondary);
}

/* Canvas Area */
.canvas-container {
  flex: 1;
  overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  background-color: #0b0c10;
}

#pdfCanvas {
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  background-color: #fff;
  transition: transform 0.2s ease-out;
  transform-origin: center top;
  -webkit-tap-highlight-color: transparent;
}

/* Fullscreen Reader Styling */
.reader-container:fullscreen {
  border-radius: 0;
  border: none;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background-color: #000;
  display: flex;
  flex-direction: column;
}

.reader-container:fullscreen .canvas-container {
  padding: 0;
  margin: 0;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  background-color: #000;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  display: block;
  text-align: center;
}

.reader-container:fullscreen #pdfCanvas {
  box-shadow: none;
  border-radius: 0;
}

.reader-container:fullscreen .reader-top-bar,
.reader-container:fullscreen .reader-bottom-bar {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s;
  opacity: 1;
}

.reader-container:fullscreen .reader-top-bar {
  top: 0;
  transform: translateY(0);
}

.reader-container:fullscreen .reader-bottom-bar {
  bottom: 0;
  transform: translateY(0);
}

.reader-container:fullscreen.controls-hidden .reader-top-bar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.reader-container:fullscreen.controls-hidden .reader-bottom-bar {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Loader indicators */
.reader-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.reader-loader i {
  font-size: 2rem;
  color: var(--accent-primary);
}

/* Bottom Nav bar */
.reader-bottom-bar {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(18, 22, 32, 0.5);
}

.page-indicator {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

#pageNum {
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   Quick Guide Onboarding Carousel
   ========================================================================== */

.quickguide-carousel {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.quickguide-viewport {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-card-pure);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.quickguide-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background-color: #000;
}

.quickguide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease-in-out;
}

.quickguide-img.fade-out {
  opacity: 0;
}

.quickguide-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.92));
  pointer-events: none;
}

.quickguide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.quickguide-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.quickguide-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.quickguide-dot.active {
  width: 24px;
  background-color: var(--accent-primary);
}

.quickguide-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.quickguide-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  max-width: 380px;
}

/* ==========================================================================
   Scroll-Reveal Entrance Animations
   ========================================================================== */

.scroll-reveal {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.reveal-right {
  transform: translateX(140px);
}

.scroll-reveal.reveal-left {
  transform: translateX(-140px);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */

.site-footer {
  background-color: var(--bg-card-pure);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

/* ==========================================================================
   Media Queries & Responsive Layouts
   ========================================================================== */

/* Tablet & Mobile Screens */
@media (max-width: 900px) {
  .hero-section {
    padding: 3rem 1rem;
    gap: 2rem;
  }
  
  .hero-text {
    align-items: center;
  }
  
  /* hero-text h1 size handled by .hero-title */
  
  .logo-container {
    width: 260px;
    height: 260px;
  }
  
}

/* Small Screens / Mobile Viewports */
@media (max-width: 950px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header {
    height: var(--header-height);
  }
  
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* hero-text h1 size handled by .hero-title */
  
  .hero-text .subtitle {
    font-size: 1.2rem;
  }

  .logo-wrapper {
    width: 90%;
    max-width: 360px; /* 10% smaller on mobile */
  }
  
  .section {
    padding: 3rem 1rem;
  }
    .video-play-btn {
      width: 60px;
      height: 60px;
      font-size: 2.5rem;
      background-color: transparent;
      box-shadow: none;
    }
    
    .btn-text {
      display: none; /* Hide labels inside buttons on mobile toolbar */
    }
    
    .reader-top-bar {
      padding: 0.75rem 1rem;
    }
    
    .reader-bottom-bar {
      padding: 0.75rem 1rem;
    }
    
    .btn-navigation {
      padding: 0.5rem 0.8rem;
      font-size: 0.8rem;
    }

    .canvas-container {
      padding: 0.5rem;
    }
  }

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--accent-primary-hover);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  transform: translateY(-3px);
}

/* Download Dropdown Styling */
.download-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--bg-card-pure);
  min-width: 220px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.6);
  z-index: 250;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-top: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dropdown-content a {
  color: var(--text-secondary);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.dropdown-content a:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
}

.download-dropdown:hover .dropdown-content {
  display: block;
}

.canvas-wrapper {
  display: inline-flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-align: left;
  transition: max-width 0.3s ease;
}

.canvas-wrapper.double-view canvas {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .canvas-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .canvas-wrapper.double-view canvas {
    max-width: 100%;
  }
}

