/* ========================================
   MAIN STYLES - Micah Portfolio
   ======================================== */

/* Base Styles */
body {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><circle cx="6" cy="6" r="5" fill="%236C5CE7" /></svg>') 6 6, auto;
  font-family: 'Outfit', sans-serif;
  position: relative;
}

/* Wireframe grid overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to right, rgba(108, 92, 231, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(108, 92, 231, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 100;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
}

/* Tech aesthetic dot pattern */
.tech-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(108, 92, 231, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* Wireframe/blueprint borders */
.wireframe-box {
  position: relative;
  border: 1px dashed rgba(108, 92, 231, 0.3);
  border-radius: 4px;
}

.wireframe-box::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border: 1px dashed rgba(0, 184, 148, 0.2);
  border-radius: 6px;
  pointer-events: none;
  z-index: -1;
}

/* Neumorphic elements */
.neumorphic {
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.2),
    -8px -8px 16px rgba(255, 255, 255, 0.03);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.5), rgba(20, 20, 20, 0.5));
  border-radius: 8px;
}

/* Terminal-like headings */
.terminal-heading {
  font-family: 'Space Mono', monospace;
  color: #6C5CE7;
  position: relative;
  padding-left: 16px;
}

.terminal-heading::before {
  content: "> ";
  position: absolute;
  left: 0;
  color: #00B894;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #131313;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.loaded .page-loader {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #6C5CE7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Mobile Menu */
.mobile-menu {
  transform-origin: top;
  transition: transform 0.3s ease;
}

.mobile-menu.hidden {
  transform: scaleY(0);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(90deg, #6C5CE7, #00B894);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass effect */
.glass {
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Terminal code block effect */
.code-block {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid #6C5CE7;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  padding: 16px;
  position: relative;
}

.code-block::before {
  content: "// code";
  position: absolute;
  top: -10px;
  left: 10px;
  background: #131313;
  padding: 0 8px;
  color: #00B894;
  font-size: 12px;
}

/* Blueprint dimensions indicators */
.blueprint-element {
  position: relative;
}

.blueprint-element::after {
  content: attr(data-width) " × " attr(data-height);
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 10px;
  color: rgba(108, 92, 231, 0.7);
  font-family: 'Space Mono', monospace;
}
