/* =====================================================
   PORTFOLIO — Ahmed Shawki
   style.css  |  Main Stylesheet
   ===================================================== */

:root {
  --bg:           #050810;
  --bg2:          #080d1a;
  --accent:       #6c63ff;
  --accent2:      #00d4ff;
  --accent3:      #ff6584;
  --text:         #e8eaf6;
  --text-muted:   #8892b0;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card:         rgba(13, 18, 35, 0.8);
  --glow:         0 0 40px rgba(108, 99, 255, 0.3);
  --tr:           cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── BACKGROUND GRID ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── AMBIENT ORBS ─── */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; top: -150px; left: -100px; background: rgba(108, 99, 255, 0.12); }
.orb-2 { width: 400px; height: 400px; bottom: -100px; right: -100px; background: rgba(0, 212, 255, 0.08); animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; top: 50%; left: 50%; background: rgba(255, 101, 132, 0.06); animation-delay: -2s; }

/* ─── PROGRESS BAR ─── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 2000;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%; transition: width 0.1s;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.6);
}

/* ─── CURSOR ─── */
.cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--accent2); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid rgba(108, 99, 255, 0.5); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 9998;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s var(--tr), transform 0.7s var(--tr);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── SECTION BASE ─── */
section { position: relative; z-index: 1; padding: 7rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
  font-family: var(--font-body);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 1rem; line-height: 1.1;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { color: var(--text-muted); max-width: 560px; font-size: 1.05rem; line-height: 1.75; }
.section-header { margin-bottom: 4rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; font-family: var(--font-body);
  transition: transform 0.3s var(--tr), box-shadow 0.3s, opacity 0.3s;
  position: relative; overflow: hidden;
}
.btn::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity 0.3s; }
.btn:hover::before { opacity: 0.06; }
.btn:hover      { transform: translateY(-3px); }
.btn:active     { transform: translateY(-1px); }
.btn-primary    { background: linear-gradient(135deg, var(--accent), #8b83ff); color: #fff; box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5); }
.btn-secondary  { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-secondary:hover { border-color: rgba(108, 99, 255, 0.4); }
.btn-outline    { background: transparent; color: var(--accent2); border: 1px solid rgba(0, 212, 255, 0.4); }
.btn-outline:hover { background: rgba(0, 212, 255, 0.06); border-color: var(--accent2); }
