/* About Page Section Backgrounds */
.about-section {
  background: var(--surface) !important;
  position: relative;
  z-index: 1;
}

/* Ensure solid background for all about sections */
#about .section {
  background: var(--surface);
}

/* If gradients were causing issues, override */
.about-section::before,
.company-section::before {
  background: var(--surface);
}

/* Terminal Content */
.terminal-content {
  padding: 16px 10px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface);
  height: 460px;
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-container-highest);
  text-align: left;
  position: relative;
}

/* Responsive terminal heights */
@media (max-width: 768px) {
  .terminal-content {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .terminal-content {
    height: 320px;
  }
}

/* Output lines */
.terminal-output {
  word-break: break-all;
  white-space: pre-wrap;
}

/* Removed duplicate - using cleaner styles from line 4109 instead */

.text-center {
  text-align: center;
}

/* Dashboard Preview Section */
.dashboard-preview-section {
  background: rgba(var(--surface-rgb), 0.6);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.macbook-container-animated {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.macbook-device {
  position: relative;
  z-index: 1;
  transition: none;
  transform: scale(1);
  animation: none;
}

.macbook-screen-container {
  position: relative;
  display: inline-block;
}

.macbook-image {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.3s ease;
  transform: scale(1);
  animation: none;
}

/* Theme-based MacBook image switching - using opacity with absolute positioning to prevent flickering */
.macbook-light {
  position: relative;
  opacity: 1;
  z-index: 2;
}

.macbook-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
}

/* Dark theme - show dark image, hide light image */
[data-theme="dark"] .macbook-light {
  opacity: 0;
  z-index: 1;
}

[data-theme="dark"] .macbook-dark {
  opacity: 1;
  z-index: 2;
}

/* System theme with dark preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .macbook-light {
    opacity: 0;
    z-index: 1;
  }

  :root:not([data-theme="light"]):not([data-theme="dark"]) .macbook-dark {
    opacity: 1;
    z-index: 2;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .macbook-image {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .macbook-image {
    max-width: 85%;
  }
}