/* ============================================
   TrenchStriker - Crypto Web Design Portfolio
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --surface: #16161f;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --accent-2: #06b6d4;
  --green: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent-light); }

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s;
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.logo-icon {
  font-size: 20px;
}

.logo-text {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  gap: 8px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(139, 92, 246, 0.12);
  top: -200px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.08);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.06);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-typed {
  color: var(--accent-light);
  font-style: italic;
}

.typed-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat { text-align: center; }

.stat-number {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
}

.stat-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Sections ---- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-dark {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 100px;
  color: var(--accent-light);
  font-weight: 500;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  gap: 32px;
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.portfolio-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.portfolio-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.portfolio-grid > :not(.portfolio-featured) {
  display: inline;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.portfolio-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.portfolio-preview {
  position: relative;
  overflow: hidden;
}

.portfolio-browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #eab308; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
}

.portfolio-screenshot {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Clippy Preview - Windows XP Recreation */
.clippy-preview {
  background: linear-gradient(180deg, #245EDC 0%, #3A7BD5 30%, #56A845 50%, #87C23E 70%, #56A845 100%);
  padding: 16px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  position: relative;
  overflow: hidden;
}

.xp-desktop {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.xp-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  flex-shrink: 0;
}

.xp-icon {
  font-size: 10px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  padding: 4px;
  border-radius: 2px;
  text-align: center;
  cursor: default;
}

.xp-window {
  background: #ECE9D8;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 2px 4px 16px rgba(0,0,0,0.4);
  margin: 8px;
  flex: 1;
  min-height: 0;
}

.xp-titlebar {
  background: linear-gradient(180deg, #0A57D0 0%, #2B8AEA 30%, #0A57D0 100%);
  color: white;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.xp-buttons {
  display: flex;
  gap: 2px;
}

.xp-btn-min, .xp-btn-max, .xp-btn-close {
  width: 18px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border-radius: 2px;
}

.xp-btn-min, .xp-btn-max {
  background: linear-gradient(180deg, #3C8CF7, #1B5FC4);
}

.xp-btn-close {
  background: linear-gradient(180deg, #E87565, #C7382D);
}

.xp-body {
  padding: 12px;
  text-align: center;
}

.xp-clippy-char {
  font-size: 32px;
  margin-bottom: 6px;
}

.xp-welcome {
  font-size: 11px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.xp-btns {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.xp-action-btn {
  font-size: 10px;
  padding: 3px 10px;
  background: linear-gradient(180deg, #fff, #ddd);
  border: 1px solid #999;
  border-radius: 3px;
  color: #333;
  font-weight: 600;
}

.xp-secondary {
  background: linear-gradient(180deg, #f5f5f5, #ccc);
}

.xp-taskbar {
  background: linear-gradient(180deg, #245EDC 0%, #1941A5 100%);
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.xp-start {
  background: linear-gradient(180deg, #3FAF3D, #2D8E2B);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
}

.xp-start-icon { font-size: 12px; }

.xp-tray {
  display: flex;
  align-items: center;
}

.xp-clock {
  color: white;
  font-size: 10px;
}

/* Placeholder previews */
.placeholder-preview {
  background: linear-gradient(135deg, var(--bg) 0%, #1a1a2e 100%);
}

.placeholder-alt {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0a2e 100%);
}

.placeholder-content {
  text-align: center;
  color: var(--text-dim);
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.placeholder-content span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.placeholder-content p {
  font-size: 13px;
  color: var(--text-dim);
}

/* Portfolio Info */
.portfolio-info {
  padding: 32px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.portfolio-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
}

.tag-featured {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: var(--accent-light) !important;
}

.portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-info > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.portfolio-tech span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 4px;
  color: var(--accent-2);
}

.portfolio-features {
  display: grid;
  gap: 8px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.feature svg { color: var(--green); flex-shrink: 0; }

@media (max-width: 900px) {
  .portfolio-featured { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---- Process ---- */
.process-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.process-step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.step-number {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--bg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .process-timeline::before { left: 23px; }
  .process-step { gap: 20px; }
}

/* ---- Contact ---- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 16px 0 16px;
  line-height: 1.2;
}

.contact-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--accent-light);
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
}

/* Terminal */
.terminal {
  background: #1a1a2e;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #eab308; }
.terminal-dots span:nth-child(3) { background: #22c55e; }

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}

.terminal-line {
  white-space: nowrap;
}

.t-prompt { color: var(--accent-light); }
.t-cmd { color: var(--text); font-weight: 600; }
.t-flag { color: var(--accent-2); }
.t-output { color: var(--text-muted); }
.t-success { color: var(--green); }
.t-ready { color: var(--green); animation: blink 1s infinite; }

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Footer ---- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 12px; }
}

/* ---- Animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card[data-animate] { transition-delay: calc(var(--i, 0) * 100ms); }
.service-card:nth-child(1) { --i: 0; }
.service-card:nth-child(2) { --i: 1; }
.service-card:nth-child(3) { --i: 2; }
.service-card:nth-child(4) { --i: 3; }
.service-card:nth-child(5) { --i: 4; }
.service-card:nth-child(6) { --i: 5; }

/* ---- Selection ---- */
::selection {
  background: var(--accent);
  color: white;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
