/* =========================================
   MAIN STYLES — DevSystems Portfolio
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── CSS Variables ─── */
:root {
  --bg-primary: #060a0f;
  --bg-secondary: #0c1118;
  --bg-card: #111820;
  --bg-card-hover: #162030;
  --accent-cyan: #00e5ff;
  --accent-green: #39ff6a;
  --accent-purple: #7c3aed;
  --accent-orange: #ff6b35;
  --text-primary: #f0f4f8;
  --text-secondary: #8899aa;
  --text-muted: #445566;
  --border-color: rgba(0, 229, 255, 0.12);
  --border-glow: rgba(0, 229, 255, 0.4);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ─── Custom Cursor ─── */
.cursor {
  width: 12px; height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 229, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s;
}
body:hover .cursor { opacity: 1; }

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

/* ─── Selection ─── */
::selection { background: rgba(0, 229, 255, 0.25); color: var(--text-primary); }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; }
p { font-family: var(--font-body); font-weight: 300; }
a { color: inherit; text-decoration: none; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--text-primary);
  margin-bottom: 18px;
}
.section-title span { color: var(--accent-cyan); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

/* ─── Layout ─── */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

section { padding: 100px 0; position: relative; }

/* ─── Noise Overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.45;
}

/* ─── Grid Background ─── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── Glow Orbs ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.18;
}
.orb-cyan { background: var(--accent-cyan); }
.orb-purple { background: var(--accent-purple); }
.orb-green { background: var(--accent-green); }
