/* ============================================================
   shared.css — Common styles used across ALL portfolio pages
   ============================================================ */

/* CSS Custom Properties */
:root {
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: white;
  --main-color: #00ffee;
}

/* Base body styles */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 238, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123, 44, 191, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 255, 238, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), #7b2cbf);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loader {
  text-align: center;
}

.loader-text {
  font-size: 4rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--main-color), #7b2cbf);
  animation: loading 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

.loading-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Transparent backgrounds — prevent section overrides */
section,
.section-title,
.container,
.row,
.col-md-6,
.col-md-4,
.col-12 {
  background: transparent !important;
  background-color: transparent !important;
}
