/* =====================================================
   Base + Theme (Re-aligned with Project 7 Tech Vibe)
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #0d0d0d;
  --primary-color: #ff4d00;
  /* Orange */
  --secondary-color: #1a1a1a;
  /* Near-black */
  --accent-color: #ff8c00;
  /* Dark orange */
  --text-main: #ffffff;
  --text-muted: #cfcfcf;
  --card-bg: #141414;
  --line-color: #262626;
  --font-family: 'Inter', sans-serif;
  --font-tech: 'Space Mono', monospace;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  cursor: none;
}

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--primary-color);
  z-index: 10000;
  transition: width .25s ease;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Floating Orbs */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: #ff4d00;
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: #ff8c00;
  bottom: 20%;
  right: -50px;
  animation-delay: -5s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: #aaaaaa;
  top: 40%;
  left: 30%;
  animation-delay: -10s;
  opacity: 0.2;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

/* 3D Model Viewer */
.model-viewer-container {
  width: 100%;
  height: 450px;
  border: 1px solid rgba(255, 77, 0, 0.3);
  margin-bottom: var(--spacing-lg);
  border-radius: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

/* Presentation Wrapper */
.presentation-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000;
  border: 1px solid rgba(255, 77, 0, 0.3);
  border-radius: 0;
  overflow: hidden;
}

.presentation-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Specs & Source Code Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: 40px;
}

.spec-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg);
  border-radius: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.spec-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  font-family: var(--font-tech);
  letter-spacing: 1px;
}

.spec-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.spec-card ul {
  list-style: none;
  padding: 0;
}

.spec-card li {
  color: var(--text-main);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
}

.spec-card li i {
  color: var(--accent-color);
  margin-top: 4px;
}

/* Section Header Utility */
.section-header {
  font-family: var(--font-tech);
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 30px;
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
}

/* Documentation / Code Sections (Like Project 7) */
.source-code-section {
  margin-top: 60px;
}

.file-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-color);
  border-radius: 0;
  padding: 20px;
  margin-bottom: 20px;
}

.file-block h4 {
  color: var(--accent-color);
  font-family: var(--font-tech);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-block .file-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}