/* ========================================
   Fresh Mobile Shell (hidden on desktop)
   ======================================== */
.m-app { display: none; }

/* Desktop background moved to end of file for highest cascade priority */

@media (max-width: 768px) {
  :root { --header-h: 120px; }
  /* allow page to scroll on mobile */
  html, body { overflow: hidden !important; height: 100vh !important; background: #0a0a0a; }
  
  /* Mobile background with original gradients */
  html::before, body::before { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%), radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%); 
    background-size: 100% 100%, 800px 800px, 600px 600px, 400px 400px; 
    background-attachment: fixed; 
    z-index: -1; 
  }
  html::after, body::after { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); 
    z-index: -1; 
  }
  /* Hide desktop UI on mobile */
  .desktop-layout { display: none !important; }
  .site-header { display: none !important; }
  .m-app { display: block; }

  .m-header { position: sticky; top: 0; z-index: 1000; display:flex; align-items:center; justify-content:center; gap: 6px; padding:5px 0; background: transparent; height: 60px; }
.m-back-btn { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; font-size: 18px; font-weight: 300; padding: 8px 12px; cursor: pointer; transition: all 0.2s ease; backdrop-filter: blur(8px); }
.m-back-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.m-back-btn:active { transform: translateY(-50%) scale(0.95); }
  .m-logo-wrap { display:flex; align-items:center; justify-content:center; width: 100%; }
  .m-logo { height: 120px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.55)); }
  .m-toggle { display: none; }
  .m-back { margin-left: auto; margin-right: 8px; background: rgba(255,255,255,0.06); color:#fff; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 6px 10px; display:none; }

  /* Curtain menu as stacked options under banner (no hamburger) */
  .m-curtain { position: static; inset: auto; background: transparent; transform: none; padding: 0; }
  .m-accordion { display: flex; flex-direction: column; margin: 0; padding: 16px; height: calc(100vh - 120px); justify-content: space-between; background: transparent; }
  .m-menu-items { display: flex; flex-direction: column; flex: 1; gap: 8px; }
  /* Tech luxury menu items */
  .m-item { width: 100%; text-align: center; background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%); border: 1px solid rgba(255,255,255,0.08); color: #e8e8e8; border-radius: 12px; padding: 20px 16px; font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace; font-size: 16px; font-weight: 400; box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); display: block; letter-spacing: 1.2px; margin: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex: 1; position: relative; overflow: hidden; }
  .m-item::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: left 0.6s ease; }
  .m-item:hover { background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
  .m-item:hover::before { left: 100%; }
  .m-item.selected { background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%); color: #000; border-color: #4a9eff; box-shadow: 0 8px 32px rgba(74,158,255,0.3), inset 0 1px 0 rgba(255,255,255,0.2); }

  /* Footer removal on mobile */
  .site-footer { display: none !important; }
  .m-footer { text-align: center; padding: 24px 20px; color: #888; font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.8px; background: transparent; }
  .m-item:active { transform: translateY(1px); }

  /* Luxury Tech About Us Design */
  .about-luxury-layout {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
  }
  
  .mission-statement {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .mission-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .mission-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #e8e8e8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  
  .mission-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
  }
  
  .mission-text {
    font-size: 12px;
    color: #d0d0d0;
    margin-bottom: 12px;
    line-height: 1.5;
  }
  
  .mission-closing {
    font-size: 11px;
    color: #a0a0a0;
    font-style: italic;
    line-height: 1.4;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
  
  .service-column {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  
  .service-column:last-child {
    border-bottom: none;
  }
  
  .service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  
  .service-number {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
    min-width: 20px;
  }
  
  .service-header h5 {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #e8e8e8;
    letter-spacing: 0.3px;
  }
  
  .service-column p {
    font-size: 10px;
    color: #a0a0a0;
    line-height: 1.4;
    margin: 0;
    padding-left: 32px;
  }
  
  .approach-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .approach-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .approach-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #e8e8e8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  
  .approach-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
  }
  
  .approach-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }
  
  .approach-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
  }
  
  .metric-value {
    font-size: 16px;
    font-weight: 300;
    color: #e8e8e8;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }
  
  .metric-label {
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    line-height: 1.2;
  }
  
  .approach-description {
    font-size: 11px;
    color: #a0a0a0;
    line-height: 1.4;
    margin: 0;
    flex: 1;
  }
  
  .team-section {
    margin-bottom: 0;
  }
  
  .team-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .team-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #e8e8e8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  
  .team-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .team-member {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  
  .team-member:last-child {
    border-bottom: none;
  }
  
  .member-identifier {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
  }
  
  .member-initial {
    width: 24px;
    height: 24px;
    background: #e8e8e8;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .member-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
  }
  
  .member-content {
    flex: 1;
  }
  
  .member-name {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 500;
    color: #e8e8e8;
    letter-spacing: 0.3px;
  }
  
  .member-title {
    margin: 0 0 8px 0;
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
  
  .member-achievement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .achievement-metric {
    font-size: 11px;
    font-weight: 500;
    color: #e8e8e8;
    letter-spacing: 0.3px;
  }
  
  .achievement-context {
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .member-bio {
    font-size: 10px;
    color: #a0a0a0;
    line-height: 1.4;
    margin: 0;
  }

  .m-content { display: none; }
  .m-stage { position: relative; min-height: calc(100vh - var(--header-h, 120px)); }
  .m-view { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 240ms ease; display: none; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
  .m-view.is-active { display: block; opacity: 1; transform: translateY(0); }
  .m-section h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: 0.5px; }
}
/* Font loaded via HTML for better performance */

/* ========================================
   Base Styles & Reset
   ======================================== */

* {
  box-sizing: border-box;
}

/* ========================================
   Theme Variables for Easy Overrides
   ======================================== */

:root {
  --page-bg-color: #121316;            /* dark charcoal */
  --page-bg-image: none;
}
/* Mobile shell removed to start fresh */


/* ========================================
   Global Base Rules - Loaded Last in Cascade
   ======================================== */

/* Ensure the root and page fill the viewport */
html, body {
  height: 100%;        /* let background cover the whole page height */
  overflow: hidden;
}

/* Primary background application with higher specificity - MOBILE ONLY */
@media (max-width: 768px) {
  html, body {
    background-color: var(--page-bg-color) !important;   /* paint immediately, guarded fallback */
    background-image: none !important;
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center center;
  }
}

body {
  font-family: 'Lato', sans-serif;
  color: #ffffff;
  margin: 0;
  padding: 0;
  will-change: auto;
}

/* Make common wrappers transparent so they do not cover the page background */
.desktop-layout, .draggable-container, main, .app, .page, .container {
  background: transparent !important;                  /* avoid white panels spanning full screen */
  min-height: 100vh;                                   /* ensure full height for proper reveal */
}

/* Neutralize any framework utilities that force white backgrounds at page level */
body.bg-white, .page.bg-white, .min-h-screen.bg-white {
  background: transparent !important;                  /* allow our global background to show through */
}



/* Example overlay fix if a full-screen white layer exists */
.fullscreen-overlay, .page-overlay::before, .page-overlay::after {
  background: transparent !important;                  /* remove accidental white overlay */
  pointer-events: none;                                /* overlays should not block interaction if decorative */
}

/* ========================================
   Container & Layout
   ======================================== */

.draggable-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* Cargo-specific adjustment */
[id="T3057851291"] .page-content {
  padding: 1.0rem;
}



/* ========================================
   Base Draggable Box Styles
   ======================================== */

.draggable-box {
  position: absolute;
  background: 
    linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 12px 12px 20px 12px;
  cursor: default;
  user-select: none;
  width: 280px;
  height: auto;
  max-height: 100px;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  will-change: transform, max-height;
  backdrop-filter: blur(1px);
}

.draggable-box,
.draggable-box * {
  color: #ffffff !important;
  font-family: 'Lato', sans-serif;
}

.draggable-box:hover {
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.9),
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  backdrop-filter: blur(2px);
}

.draggable-box:not(:hover) {
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-behavior: auto;
}

.draggable-box.dragging {
  max-height: 80px !important;
  overflow: hidden !important;
  transition: none !important;
  opacity: 0.9;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Drag handle */
.drag-handle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  cursor: default;
  z-index: 10;
  pointer-events: none;
}

.draggable-box:hover .drag-handle,
.draggable-box.dragging .drag-handle {
  pointer-events: auto;
}

/* Hidden content */
.hidden-content {
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
  pointer-events: none;
}

.draggable-box:hover .hidden-content {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 11;
}

/* Ensure main content is always visible */
.draggable-box h3,
.draggable-box > p:first-of-type {
  position: relative;
  z-index: 12;
}

/* ========================================
   Typography
   ======================================== */

.draggable-box h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  padding: 4px 0;
}

.draggable-box h4 {
  margin: 8px 0 4px 0;
  font-size: 13px;
  font-weight: 400;
  padding: 2px 0;
}

.draggable-box p {
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-size: 12px;
  font-weight: 300;
  padding: 2px 0;
}

.draggable-box a {
  color: #ffffff;
  text-decoration: underline;
  font-family: inherit;
  font-weight: inherit;
}

.draggable-box a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ========================================
   Scrollbar Styles - All Hidden
   ======================================== */

/* Hide scrollbars for all draggable boxes and modules */
.draggable-box,
.draggable-box:hover,
.about-box,
.about-box:hover,
.portfolio-box,
.portfolio-box:hover,
.featured-project-box,
.featured-project-box:hover,
.proposals-box,
.proposals-box:hover,
.contacts-box,
.contacts-box:hover,
.project-details,
.project-details:hover,
.music-player-box,
.music-player-box:hover {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Hide webkit scrollbars for all modules */
.draggable-box::-webkit-scrollbar,
.draggable-box:hover::-webkit-scrollbar,
.about-box::-webkit-scrollbar,
.about-box:hover::-webkit-scrollbar,
.portfolio-box::-webkit-scrollbar,
.portfolio-box:hover::-webkit-scrollbar,
.featured-project-box::-webkit-scrollbar,
.featured-project-box:hover::-webkit-scrollbar,
.proposals-box::-webkit-scrollbar,
.proposals-box:hover::-webkit-scrollbar,
.contacts-box::-webkit-scrollbar,
.contacts-box:hover::-webkit-scrollbar,
.project-details::-webkit-scrollbar,
.project-details:hover::-webkit-scrollbar,
.music-player-box::-webkit-scrollbar,
.music-player-box:hover::-webkit-scrollbar {
  display: none !important;
}

/* Desktop-only luxury scrollbar for feed module - CACHE BUST 2025-01-11 */
@media (min-width: 769px) {
  .draggable-box.feed-box {
    scrollbar-width: thin !important;
    -ms-overflow-style: scrollbar !important;
    overflow-y: scroll !important;
  }
  
  .draggable-box.feed-box::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
    -webkit-appearance: none !important;
  }
  
  .draggable-box.feed-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
  }
  
  .draggable-box.feed-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
  }
  
  .draggable-box.feed-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 4px 8px rgba(0, 0, 0, 0.5) !important;
    transform: scale(1.1) !important;
  }
  
  .draggable-box.feed-box::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 2px 6px rgba(0, 0, 0, 0.6) !important;
  }
  
  /* Enhanced glow effect */
  .draggable-box.feed-box:hover::-webkit-scrollbar-thumb {
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 4px 8px rgba(0, 0, 0, 0.5),
      0 0 12px rgba(255, 255, 255, 0.2) !important;
  }
}

/* ========================================
   About Box
   ======================================== */

.about-box {
  width: auto !important;
  max-width: 280px !important;
  max-height: 110px !important;
  transition: all 0.3s ease;
  padding: 12px 12px 20px 12px !important;
}

.about-box:hover {
  max-height: 800px !important;
  overflow-y: auto;
  padding-bottom: 20px !important;
}

.about-box:hover .hidden-content {
  padding-top: 12px;
}



/* ========================================
   Feed Box
   ======================================== */

.feed-box {
  width: 175px !important;
  height: 300px !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  padding: 12px 12px 20px 12px !important;
}

.feed-box:hover {
  max-height: 500px !important;
  padding-bottom: 20px !important;
}

.feed-item {
  border-bottom: 1px solid #333;
  padding: 4px 0 6px 0;
  margin-bottom: 8px;
  pointer-events: auto;
  position: relative;
  z-index: 12;
}

.feed-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.feed-date {
  margin: 8px 0 4px 0;
  font-size: 13px;
  font-weight: 400;
  padding: 2px 0;
}

.feed-box p {
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-size: 12px;
  font-weight: 300;
  padding: 2px 0;
}

.feed-box a {
  font-size: 9px !important;
  color: #ffffff;
  font-weight: 500;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.feed-box a:hover {
  color: #ffffff;
  font-weight: 600;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.feed-box p:hover {
  opacity: 0.8;
}

/* Mini-embed styling */
.mini-embed {
  background: #3a3a3a !important;
  border: 1px solid #666 !important;
  border-radius: 6px;
  padding: 8px;
  margin: 4px 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  backdrop-filter: none !important;
  filter: none !important;
}

.mini-embed:hover {
  background: #2a2a2a;
  border-color: #4a9eff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.mini-embed:hover .embed-title {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.mini-embed:hover .embed-subtitle {
  color: #ddd;
  opacity: 1;
}

.mini-embed:hover .embed-content p {
  color: #f0f0f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.embed-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.embed-icon {
  font-size: 16px;
  margin-right: 8px;
  opacity: 0.8;
}

.embed-info {
  flex: 1;
}

.feed-box .mini-embed .embed-title,
.feed-box .mini-embed .embed-title *,
.feed-box .mini-embed .embed-title::before,
.feed-box .mini-embed .embed-title::after {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 2px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  opacity: 1 !important;
  filter: brightness(1.5) !important;
  background: transparent !important;
  -webkit-text-fill-color: #ffffff !important;
}

.feed-box .mini-embed .embed-subtitle,
.feed-box .mini-embed .embed-subtitle *,
.feed-box .mini-embed .embed-subtitle::before,
.feed-box .mini-embed .embed-subtitle::after {
  font-size: 10px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 1 !important;
  filter: brightness(1.3) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  background: transparent !important;
  -webkit-text-fill-color: #ffffff !important;
}

.feed-box .mini-embed .embed-content p,
.feed-box .mini-embed .embed-content p *,
.feed-box .mini-embed .embed-content p::before,
.feed-box .mini-embed .embed-content p::after {
  font-size: 11px !important;
  color: #ffffff !important;
  margin: 0;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  opacity: 1 !important;
  filter: brightness(1.3) !important;
  background: transparent !important;
  -webkit-text-fill-color: #ffffff !important;
}

.embed-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

/* Embed type-specific borders */
.tweet-embed {
  border-left: 3px solid #1da1f2;
}

.tweet-embed:hover {
  box-shadow: 0 2px 8px rgba(29, 161, 242, 0.2);
}

.video-embed {
  border-left: 3px solid #ff0000;
}

.video-embed:hover {
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.song-embed {
  border-left: 3px solid #ff7700;
}

.song-embed:hover {
  box-shadow: 0 2px 8px rgba(255, 119, 0, 0.2);
}

.location-embed {
  border-left: 3px solid #4CAF50;
}

.location-embed:hover {
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.article-embed {
  border-left: 3px solid #9C27B0;
}

.article-embed:hover {
  box-shadow: 0 2px 8px rgba(156, 39, 176, 0.2);
}

.thought-subsection {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  opacity: 1;
  filter: brightness(1.15);
}

/* ========================================
   Contacts Box - Clean Interactive Map
   ======================================== */

.contacts-box {
  height: auto !important;
  max-height: 80px !important;
  width: 280px !important;
  transition: max-height 0.4s ease, width 0.4s ease;
  position: absolute;
  overflow: hidden;
  padding: 12px !important;
}

.contacts-box:hover {
  max-height: 500px !important;
  width: 400px !important;
}

.contacts-box:hover .hidden-content {
  opacity: 1;
}

.hidden-content {
  opacity: 0;
  transition: opacity 0.4s ease;
}



/* ========================================
   Featured Project Box
   ======================================== */

.featured-project-box {
  width: 380px !important;
  max-height: 100px !important;
  transition: all 0.3s ease;
  padding: 12px 12px 20px 12px !important;
  overflow: hidden !important;
}

.featured-project-box:hover {
  max-height: 600px !important;
  overflow-y: auto !important;
  padding-bottom: 20px !important;
}

.featured-project-box:hover .hidden-content {
  padding-top: 8px;
}

/* ========================================
   Portfolio Box
   ======================================== */

.portfolio-box {
  height: auto !important;
  max-height: 80px !important;
  width: 300px !important;
  transition: all 0.3s ease;
  position: absolute;
  overflow: hidden;
  padding: 12px 12px 20px 12px !important;
}

.portfolio-box:hover {
  max-height: 500px !important;
  padding-bottom: 20px !important;
}

.portfolio-box:hover .hidden-content {
  padding-top: 8px;
}

.portfolio-box.project-expanded {
  width: 700px !important;
  max-height: 600px !important;
  overflow-y: auto !important;
}

/* Client list */
.client-list {
  margin-top: 10px;
  width: 100%;
}

.client-item {
  padding: 8px;
  margin-bottom: 3px;
  background: #111;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 300;
  font-size: 12px;
}

.client-item:hover {
  background: #222;
}

.client-item.selected {
  background: #4a9eff;
  color: #000000 !important;
}

/* Project details panel */
.project-details {
  position: absolute;
  left: 300px;
  top: 0;
  width: 400px;
  background: #000;
  padding: 12px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.7);
  display: none;
  z-index: 1000;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-height: 600px;
  overflow-y: auto;
}

.project-details.visible {
  opacity: 1;
  transform: translateX(0);
}

.project-detail {
  display: none;
  animation: fadeIn 0.3s ease;
}

.project-detail h4 {
  margin: 0 0 12px 0;
  color: #4a9eff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-description {
  margin-top: 16px;
}

.project-description p {
  margin: 0 0 8px 0;
  line-height: 1.4;
  font-size: 12px;
}

.project-description h5 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #4a9eff;
  font-weight: 500;
  line-height: 1.3;
}

.project-description h6 {
  margin: 16px 0 8px 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

/* Project media grid */
.project-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.project-media .media-item {
  background: #111;
  padding: 0;
  border: 1px solid #333;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media .media-item:hover {
  background: #222;
  border-color: #4a9eff;
  transform: scale(1.02);
}

.media-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 158, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #4a9eff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-media .media-item:hover .media-overlay {
  opacity: 1;
}

/* ========================================
   Sophisticated SoundCloud Radio Module
   ======================================== */

/* Compact radio module that matches existing draggable box style */
.radio-module {
  --accent: #4a9eff;                   /* match existing accent color */
  --muted: #9a9a9a;                    /* secondary text color */
  --track: rgba(255,255,255,0.12);     /* progress track color */
  --thumb: #fff;                       /* slider thumb color */

  width: 100%;
  color: #ffffff;
}

/* Compact controls */
.radio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn.pill {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  font-weight: 500;
  padding: 6px 16px;
}
.btn.icon {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.btn:hover { 
  background: rgba(255,255,255,0.1); 
  border-color: rgba(255, 255, 255, 0.3);
}
.btn.pill:hover { 
  background: #5ba8ff; 
}

/* Volume control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #cccccc;
}

.volume {
  width: 80px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Progress row */
.radio-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.time {
  font-variant-numeric: tabular-nums;
  color: #cccccc;
  font-size: 11px;
}
.seek {
  width: 100%;
  height: 3px;
  appearance: none;
  background: var(--track);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.seek::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--thumb);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: -3px;
}
.seek::-moz-range-thumb {
  width: 10px; height: 10px; background: var(--thumb);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
}

/* Track info */
.track-info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.radio-meta {
  color: #cccccc;
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}



/* Light mode support if your site switches */
@media (prefers-color-scheme: light) {
  .radio-module {
    --bg: rgba(250,250,250,0.85);
    --fg: #151515;
    --muted: #6a6a6a;
    --ring: rgba(0,0,0,0.12);
    --track: rgba(0,0,0,0.12);
    --thumb: #151515;
  }
}

/* ========================================
   Music Player Box - Compact Radio Module
   ======================================== */

.music-player-box {
  height: auto !important;
  max-height: 100px !important;
  width: 280px !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 12px 12px 20px 12px !important;
}

.music-player-box:hover {
  max-height: 400px !important;
  overflow-y: auto !important;
  padding-bottom: 20px !important;
}

.music-player-box:hover .hidden-content {
  padding-top: 8px;
}

/* ========================================
   Proposals Box
   ======================================== */

.proposals-box {
  max-height: 110px !important;
  width: 200px !important;
  padding: 12px 12px 20px 12px !important;
  overflow: hidden !important;
}

.proposals-box:hover {
  max-height: 500px !important;
  padding-bottom: 20px !important;
  overflow: hidden !important;
}

.proposals-box:hover .hidden-content {
  padding-top: 8px;
}

.proposals-box p {
  margin: 4px 0;
  line-height: 1.3;
}

/* ========================================
   Form Styles
   ======================================== */

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.8;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 6px;
  background: #111;
  border: 1px solid #333;
  color: #ffffff;
  font-size: 13px;
  box-sizing: border-box;
  font-weight: 300;
}

.form-group textarea {
  min-height: 50px;
  resize: vertical;
}

.submit-btn {
  background: #4a9eff;
  color: #ffffff !important;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
  width: 100%;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #3a8eef;
}

/* ========================================
   Avant-Garde Glass Button
   ======================================== */

/* 1) Design tokens, tweak to your palette */
:root{
  --btn-accent: #e3d28f;           /* primary accent, change to your brand */
  --btn-accent-2: #7db9ff;         /* secondary accent for sheen */
  --btn-bg: rgba(20,20,24,0.65);   /* glass backdrop color */
  --btn-border: rgba(255,255,255,0.18);
  --btn-text: #eaeaea;             /* high-contrast text on dark */
  --btn-text-dim: rgba(234,234,234,0.75);
  --btn-radius: 12px;              /* soft, modern radius */
  --btn-height: 48px;              /* comfortable target size */
  --btn-pad-x: 20px;               /* horizontal padding */
  --btn-shadow: 0 2px 10px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
  --btn-shadow-hover: 0 6px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  --ring: 0 0 0 3px rgba(227,210,143,0.24); /* focus ring using accent */
}

/* 2) Base reset for consistent look everywhere */
.cta-btn{
  -webkit-appearance: none; /* remove native styles */
  appearance: none;
  border: 1px solid var(--btn-border); /* delicate border for glass edge */
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.1)), var(--btn-bg); /* subtle glass gradient over tinted bg */
  color: var(--btn-text);
  height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--btn-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* room if you add an icon later */
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji"; /* refined sans */
  font-size: 15px; /* crisp size for dark UI */
  font-weight: 550; /* slightly heavier than medium */
  letter-spacing: 0.2px; /* subtle tracking */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  box-shadow: var(--btn-shadow);
  outline: none; /* we'll draw our own focus ring */
  position: relative; /* needed for inner effects */
  transition: transform 140ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
  isolation: isolate; /* keep pseudo-element effects contained */
}

/* 3) Thin inner light, adds depth without glare */
.cta-btn::after{
  content: "";
  position: absolute;
  inset: 1px; /* inside border */
  border-radius: calc(var(--btn-radius) - 1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none; /* decorative only */
  mix-blend-mode: screen; /* gentle highlight on dark */
}

/* 4) Animated sheen on hover, very minimal */
.cta-btn::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px 80px at 20% 0%, rgba(125,185,255,0.18), transparent 60%),
              radial-gradient(160px 100px at 80% 120%, rgba(227,210,143,0.16), transparent 60%);
  opacity: 0; /* hidden by default */
  transition: opacity 200ms ease;
  pointer-events: none;
}

/* 5) Label styling for subtle dual-tone effect */
.cta-label{
  position: relative;
  z-index: 1; /* above effects */
  background: linear-gradient(180deg, var(--btn-text), var(--btn-text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* show gradient text */
}

/* 6) Hover, focus-visible, active */
.cta-btn:hover{
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px); /* tiny lift */
}
.cta-btn:hover::before{
  opacity: 1; /* reveal sheen */
}

.cta-btn:active{
  transform: translateY(0); /* press back down */
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.16)), var(--btn-bg); /* slightly darker while pressed */
}

.cta-btn:focus-visible{
  box-shadow: var(--btn-shadow-hover), var(--ring); /* custom focus ring for accessibility */
}

/* 7) Subtle accent edge glow, ties to brand color */
.cta-btn{
  /* outer glow using accent color, very restrained */
  text-shadow: 0 0 0 transparent; /* ensure no text glow */
}
.cta-btn:hover{
  /* add a halo using both accents for richness */
  box-shadow: var(--btn-shadow-hover), 0 0 32px rgba(227,210,143,0.08), 0 0 18px rgba(125,185,255,0.06);
}

/* 8) Disabled state */
.cta-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(12%);
}

/* 9) High-contrast safety and reduced motion */
@media (prefers-reduced-motion: reduce){
  .cta-btn{ transition: none; }
  .cta-btn:hover{ transform: none; }
  .cta-btn::before{ transition: none; }
}

/* 10) If you need a solid accent variant for key moments */
.cta-btn.is-primary{
  background: linear-gradient(180deg, color-mix(in oklab, var(--btn-accent), white 12%), color-mix(in oklab, var(--btn-accent), black 10%));
  color: #0f0f12;
  border-color: color-mix(in oklab, var(--btn-accent), black 22%);
}
.cta-btn.is-primary .cta-label{
  background: none; /* keep solid text */
  color: #0f0f12;
}
.cta-btn.is-primary:hover{
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

/* ========================================
   Expanded Image Modal
   ======================================== */

.expanded-image-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.expanded-image-container.visible {
  opacity: 1;
  visibility: visible;
}

.expanded-image-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border: 2px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.expanded-image-container.visible .expanded-image-content {
  transform: scale(1);
}

.expanded-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.expanded-image-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #111;
  border-bottom: 1px solid #333;
}

.expanded-image-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.close-expanded-image {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.close-expanded-image:hover {
  color: #4a9eff;
}

/* ========================================
   Video Embed Styles
   ======================================== */

.video-embed {
  margin: 16px 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-embed:hover {
  transform: scale(1.02);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-embed:hover .video-overlay {
  opacity: 1;
}

.play-button {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.video-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Mobile optimizations */
@media (max-width: 768px) {
  body {
    background-size: 400px 400px, 2px 2px, 100% 100%;
  }
  
  .draggable-box {
    width: calc(100vw - 40px) !important;
    max-width: 320px !important;
    font-size: 14px;
    padding: 10px !important;
  }
  
  .draggable-box:hover {
    max-height: 400px;
  }
  
  .portfolio-box.project-expanded {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
  }
  
  .contacts-box.map-expanded {
    width: calc(100vw - 20px) !important;
  }
  
  .contacts-box:hover {
    width: calc(100vw - 40px) !important;
    max-width: 360px !important;
  }
  
  .world-map-container {
    height: 200px !important;
  }
  
  .interactive-world-map {
    transform: scale(0.9);
    transform-origin: center;
  }
  
  .project-details {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-top: 10px;
  }
  
  .featured-project-box {
    width: calc(100vw - 40px) !important;
    max-width: 340px !important;
  }
  
  .music-player-box {
    width: calc(100vw - 40px) !important;
    max-width: 300px !important;
  }
  
  .feed-box {
    width: calc(100vw - 60px) !important;
    max-width: 280px !important;
  }
  
  .project-media {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .metric-item {
    min-width: 50px;
  }
  
  .metric-number {
    font-size: 20px;
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .draggable-box {
    width: 260px;
  }
  
  .portfolio-box.project-expanded {
    width: 600px !important;
  }
  
  .featured-project-box {
    width: 340px !important;
  }
  
  .project-details {
    width: 300px;
  }
}

/* Performance optimizations */
.draggable-box {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.draggable-box.dragging {
  will-change: transform;
}

.draggable-box:not(.dragging) {
  will-change: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .draggable-box,
  .draggable-box:hover,
  .mini-embed,
  .project-media .media-item {
    transition: none !important;
    animation: none !important;
  }
  
  body {
    background-attachment: scroll;
  }
}

/* ========================================
   Animations
   ======================================== */

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



/* ========================================
   Header & Footer Styles
   ======================================== */

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 15.3px 2px 35.7px 2px;
  background: transparent;
  pointer-events: none;
}

.logo-container {
  pointer-events: auto;
  margin-top: -45px;
  margin-left: -60px;
}

.planetarium-logo {
  height: 140px;
  width: auto;
  margin: 0;
  opacity: 0.95;
  transition: opacity 0.3s ease;
  object-fit: cover;
  object-position: top left;
  transform: scale(0.9);
  transform-origin: top left;
  margin-bottom: -90px;
  clip-path: inset(0 0 30% 0);
}

.planetarium-logo:hover {
  opacity: 1;
}

/* Site Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 15px 30px;
  background: transparent;
  pointer-events: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Lato', sans-serif;
  pointer-events: auto;
}

.footer-text,
.footer-contact {
  font-size: 12px;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease;
}

.footer-contact:hover {
  opacity: 1;
  cursor: pointer;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    padding: 12.24px 1px 25.5px 1px;
  }
  
  .planetarium-logo {
    height: 110px;
    width: auto;
    transform: scale(0.9);
    transform-origin: top left;
    clip-path: inset(0 0 30% 0);
  }
  
  .site-footer {
    padding: 12px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .footer-text,
  .footer-contact {
    font-size: 11px;
  }
}



/* NEW SIMPLE FEED LINKS */
.feed-link {
  display: block;
  color: #ffffff;
  text-decoration: underline;
  font-family: inherit;
  font-weight: inherit;
  margin: 4px 0;
  padding: 2px 0;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
}

/* Feed link type-specific color highlights */
.feed-link[href*="stoneleighabbey"] {
  border-left: 2px solid #4CAF50; /* Location - green */
  padding-left: 6px;
}

.feed-link[href*="artnews"] {
  border-left: 2px solid #9C27B0; /* Article - purple */
  padding-left: 6px;
}

.feed-link[href*="x.com"], .feed-link[href*="twitter"] {
  border-left: 2px solid #1da1f2; /* Tweet - blue */
  padding-left: 6px;
}

.feed-link[href*="youtube"] {
  border-left: 2px solid #ff0000; /* Video - red */
  padding-left: 6px;
}

.feed-link[href*="soundcloud"] {
  border-left: 2px solid #ff7700; /* Song - orange */
  padding-left: 6px;
}



.feed-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Subtle hover effects with type-specific colors */
.feed-link[href*="stoneleighabbey"]:hover {
  border-left-color: #66bb6a;
  background: rgba(76, 175, 80, 0.05);
}

.feed-link[href*="artnews"]:hover {
  border-left-color: #ba68c8;
  background: rgba(156, 39, 176, 0.05);
}

.feed-link[href*="x.com"]:hover, .feed-link[href*="twitter"]:hover {
  border-left-color: #42a5f5;
  background: rgba(29, 161, 242, 0.05);
}

.feed-link[href*="youtube"]:hover {
  border-left-color: #ef5350;
  background: rgba(255, 0, 0, 0.05);
}

.feed-link[href*="soundcloud"]:hover {
  border-left-color: #ffa726;
  background: rgba(255, 119, 0, 0.05);
}

/* Styles for new SVG map */
/* Avant Garde World Map with Proper ViewBox Scaling */
.world-map-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Root and page layout, dark but not pure black, avoids black-out if nothing draws */
:root {
  --bg: #0e0f12;            /* deep charcoal */
  --fg: #e9edf1;            /* near white for strokes and text */
  --muted: #7a8088;         /* muted grid lines */
  --sea: #111319;           /* sea fill */
  --land: #0f141a;          /* land fill, just a hair different from sea */
  --accent1: #ff5a5f;       /* red coral */
  --accent2: #22c55e;       /* emerald */
  --accent3: #60a5fa;       /* cornflower */
  --accent4: #f59e0b;       /* amber */
}

/* The actual SVG host element, no CSS transforms on <svg> or <g> that would distort paths */
.map-frame {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sea) 0%, #0b0d12 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 20px 80px rgba(0,0,0,0.45);
  position: relative;
}

/* SVG uses viewBox for scaling, preserveAspectRatio ensures no non-uniform scaling */
.map-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Land style, thin neon-esque stroke */
.land {
  fill: url(#landFill);
  stroke: rgba(233, 237, 241, 0.65);
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;  /* keeps outline crisp on zoom */
}

/* Country borders, very subtle */
.borders {
  fill: none;
  stroke: rgba(233, 237, 241, 0.2);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

/* Graticule lines for avant-garde grid feel */
.graticule {
  fill: none;
  stroke: var(--muted);
  stroke-opacity: 0.25;
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

/* Pins use layered circles for glow without filters, performs better */
.pin-outer {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.pin-inner {
  fill: currentColor;
}

/* Tooltip */
.tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 18, 24, 0.9);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0;
  transition: opacity 120ms ease-out;
  z-index: 1000;
}

/* Minimal UI hint text */
.hint {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 11px;
  color: rgba(233, 237, 241, 0.55);
  user-select: none;
}

/* Fallback message if data fails to load */
.error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffb4b4;
  background: repeating-linear-gradient(
    -45deg, rgba(255,90,95,0.06) 0 10px, transparent 10px 20px
  );
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ========================================
   D3 Pin Styles with Bright Colors
   ======================================== */

/* Subtle glow for avant garde vibe */
#pin-layer .pin-ring {
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.25));
}

/* Hover emphasis without changing position or size */
#pin-layer .pin:hover .pin-ring {
  stroke-width: 3.5;            /* slightly thicker ring on hover */
}

/* Dark themes benefit from stronger core brightness */
#pin-layer .pin-core {
  mix-blend-mode: screen;        /* helps colors pop on dark map */
}

/* ========================================
   Contact List Styles
   ======================================== */

.contact-list {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
  margin-bottom: 12px;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding-left: 8px;
  padding-right: 8px;
}

.contact-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-info p {
  margin: 0;
  font-size: 12px;
  color: #cccccc;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Instagram Link Styles */
.social-link {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.instagram-link:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 8px;
  padding-right: 8px;
  color: #ffffff;
  text-decoration: none;
}

.instagram-icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
  transition: all 0.2s ease;
}

.instagram-link:hover .instagram-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.instagram-link span {
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* Mobile overrides removed to start fresh; desktop styles now apply everywhere */

/* ========================================
   DESKTOP BACKGROUND OVERRIDE - HIGHEST PRIORITY
   ======================================== */
@media (min-width: 769px) {
  html, body {
    background-image: url('assets/abstract-black.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: #000000 !important; /* Fallback color */
  }
}

/* Site Footer - Desktop Only, All Screen Sizes */
@media (min-width: 769px) {
  .site-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .footer-container {
    pointer-events: auto !important;
    width: 100% !important;
  }

  .site-footer p {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  }
}


/* Hide footer on mobile */
@media (max-width: 768px) {
  .site-footer {
    display: none !important;
  }
}

