/* ═══════════════════════════════════════════════════
   ERICGENIUS STUDIOS — style.css
   Theme: Deep Space Purple Glow
═══════════════════════════════════════════════════ */

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

:root {
  --bg:          #07060f;
  --bg2:         #0d0b1a;
  --purple-deep: #1a0933;
  --purple-mid:  #6b21a8;
  --purple-glow: #a855f7;
  --purple-lite: #d8b4fe;
  --accent:      #c084fc;
  --gold:        #f59e0b;
  --green-wa:    #25d366;
  --red-gmail:   #ea4335;
  --text:        #f3e8ff;
  --text-muted:  #a78bca;
  --card-bg:     rgba(107,33,168,0.12);
  --card-border: rgba(168,85,247,0.25);
  --nav-h:       70px;
  --radius:      16px;
  --radius-lg:   28px;
  --shadow-glow: 0 0 60px rgba(168,85,247,0.35);
  --transition:  0.4s cubic-bezier(0.23,1,0.32,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  min-height: 100dvh;
}

/* ── PAGE SYSTEM ── */
.page {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 1;
}
.page.active {
  transform: translateY(0);
  opacity: 1;
  z-index: 2;
}
.page.exit-up {
  transform: translateY(-60px);
  opacity: 0;
  z-index: 1;
}

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── GLOW ORBS ── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite alternate;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a21caf 0%, transparent 70%);
  bottom: 0; right: -100px;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translateX(-50%);
  animation-delay: -8s;
}
@keyframes float {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-40px) scale(1.06); }
}

/* ── NAVIGATION ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--nav-h);
  background: rgba(7,6,15,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168,85,247,0.15);
}
.nav-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.nav-links-desktop {
  display: flex;
  gap: 28px;
}
.nav-links-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links-desktop a:hover { color: var(--purple-glow); }

/* ── HAMBURGER ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.3s;
}
.hamburger:hover { border-color: var(--purple-glow); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── DRAWER ── */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: rgba(13,11,26,0.97);
  backdrop-filter: blur(30px);
  border-left: 1px solid var(--card-border);
  z-index: 300;
  padding: 30px 24px;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.drawer.open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.visible { opacity: 1; pointer-events: all; }
.drawer-close {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-muted);
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 32px;
  transition: 0.3s;
}
.drawer-close:hover { color: var(--purple-glow); border-color: var(--purple-glow); }
.drawer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.drawer-links a {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.3s, color 0.3s;
}
.drawer-links a:hover { background: var(--card-bg); color: var(--purple-glow); }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 10;
  min-height: calc(100dvh - var(--nav-h) - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px 40px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  animation: fadeUp 0.9s 0.1s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 38px;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1.1s 0.3s ease both;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1.2s 0.5s ease both;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--purple-glow), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; height: 24px; }
  50%       { opacity: 1;   height: 36px; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 30px rgba(168,85,247,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(168,85,247,0.65);
}
.btn-primary.large { padding: 16px 40px; font-size: 1.05rem; }
.btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #166534, #25d366);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.3);
  transition: transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn-chat:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 36px rgba(37,211,102,0.5);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid var(--purple-glow);
  color: var(--purple-lite);
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: rgba(168,85,247,0.15); color: #fff; }

/* ── STATS STRIP ── */
.stats-strip {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 20px 40px;
  padding: 20px 28px;
  background: rgba(107,33,168,0.1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 48px; background: var(--card-border); flex-shrink: 0; }

/* ── SECTION COMMON ── */
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

/* ── ABOUT SECTION ── */
.about-section {
  position: relative;
  z-index: 10;
  padding: 80px 28px 60px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about-body { display: flex; flex-direction: column; gap: 18px; margin-bottom: 52px; }
.about-body p {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(168,85,247,0.25);
  border-color: var(--purple-glow);
}
.service-card i {
  font-size: 1.4rem;
  color: var(--accent);
}
.service-card span {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── CONTACT SECTION ── */
.contact-section {
  position: relative;
  z-index: 10;
  padding: 60px 28px 60px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  text-align: left;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.contact-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(168,85,247,0.2);
  border-color: var(--purple-glow);
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-icon.green { background: rgba(37,211,102,0.15); color: var(--green-wa); }
.contact-icon.red   { background: rgba(234,67,53,0.15);  color: var(--red-gmail); }
.contact-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.contact-val  { font-size: 0.92rem; font-weight: 500; color: var(--text); word-break: break-all; }
.chat-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

/* ── PORTFOLIO SECTION ── */
.portfolio-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.portfolio-intro { color: var(--text-muted); margin-bottom: 40px; font-size: 1rem; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
  text-align: left;
}
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.yt-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 9/16;
  max-height: 320px;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}
.portfolio-card:hover .yt-thumb img { transform: scale(1.06); }
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s;
}
.yt-play i { font-size: 3rem; color: #ff0000; filter: drop-shadow(0 0 12px rgba(255,0,0,0.6)); }
.yt-thumb:hover .yt-play { background: rgba(0,0,0,0.6); }
.portfolio-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portfolio-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.portfolio-info p { font-size: 0.85rem; color: var(--text-muted); }

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(168,85,247,0.1);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-glow); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { gap: 0; padding: 16px 14px; }
  .stat-num { font-size: 1.25rem; }
  .nav-links-desktop { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .yt-thumb { aspect-ratio: 16/9; max-height: 220px; }
}
@media (min-width: 601px) {
  .hamburger { display: none; }
  .nav-links-desktop { display: flex; }
}
