/* Lloyd Vheremu Portfolio - Global Styles */

/* CSS Variables - Dark Theme (Default) */
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-surface: #111111;
  --bg-border: #1a1a1a;
  --accent-green: #00ff41;
  --accent-cyan: #00b4d8;
  --text-primary: #e0e0e0;
  --text-muted: #666666;

  /* Typography */
  --font-display: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Effects - Reduced glow */
  --glow-green: 0 0 5px var(--accent-green);
  --glow-cyan: 0 0 5px var(--accent-cyan);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-surface: #ffffff;
  --bg-border: #e0e0e0;
  --accent-green: #00b300;
  --accent-cyan: #0088cc;
  --text-primary: #1a1a1a;
  --text-muted: #666666;

  /* Effects - Minimal in light mode */
  --glow-green: 0 0 2px rgba(0, 179, 0, 0.3);
  --glow-cyan: 0 0 2px rgba(0, 136, 204, 0.3);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-cyan);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent-green);
}

.text-cyan {
  color: var(--accent-cyan);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--bg-border);
  border-top: 3px solid var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  .section {
    padding: var(--spacing-xl) 0;
  }
}
