/* =====================================================
   YAW NDAASE — PERSONAL PORTFOLIO
   Design System & Styles
   ===================================================== */

/* ── LIGHT MODE (default) ── */
:root, [data-theme="light"] {
  --bg:              #f0f2f5;
  --bg-card:         #ffffff;
  --bg-card-hover:   #f8fafc;
  --bg-input:        #f8fafc;
  --bg-hero:         #f0f2f5;
  --bg-header:       rgba(255,255,255,0.92);

  --primary:         #1a1a2e;
  --primary-hover:   #2d2d4e;
  --primary-dim:     rgba(99,102,241,0.10);
  --gold:            #fbbf24;
  --indigo:          #6366f1;
  --emerald:         #10b981;

  --text-primary:    #1a1a2e;
  --text-secondary:  #374151;
  --text-muted:      #64748b;

  --border:          #e2e8f0;
  --border-bright:   #94a3b8;
  --border-accent:   rgba(99,102,241,0.25);

  --shadow-sm:       0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:       0 8px 40px rgba(0,0,0,0.10);
  --shadow-premium:  0 20px 60px rgba(0,0,0,0.12);

  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;
  --font-main:       'Outfit', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
  color-scheme: light;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --bg:              #05080f;
  --bg-card:         #0d1117;
  --bg-card-hover:   #111827;
  --bg-input:        rgba(255,255,255,0.05);
  --bg-hero:         #07090f;
  --bg-header:       rgba(5,8,15,0.88);

  --primary:         #6366f1;
  --primary-hover:   #818cf8;
  --primary-dim:     rgba(99,102,241,0.12);
  --gold:            #fbbf24;
  --indigo:          #6366f1;
  --emerald:         #10b981;

  --text-primary:    #f1f5f9;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;

  --border:          rgba(255,255,255,0.07);
  --border-bright:   rgba(255,255,255,0.15);
  --border-accent:   rgba(99,102,241,0.35);

  --shadow-sm:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:       0 8px 40px rgba(0,0,0,0.7);
  --shadow-premium:  0 20px 60px rgba(0,0,0,0.8);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.2s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── THEME TOGGLE ── */
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text-muted); transition: all 0.2s; padding: 0;
}
.theme-toggle-btn:hover {
  background: var(--primary); color: var(--gold); border-color: var(--primary);
}
.theme-icon-dark  { display: block; }
.theme-icon-light { display: none;  }
[data-theme="dark"] .theme-icon-dark  { display: none;  }
[data-theme="dark"] .theme-icon-light { display: block; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-header); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); height: 64px;
  display: flex; align-items: center; padding: 0 2rem;
  justify-content: space-between; transition: all 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.05rem; color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-brand-dot {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--indigo); display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 900;
  font-size: 0.95rem; box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  padding: 6px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary); background: var(--primary-dim);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── HERO ── */
.hero {
  padding: 160px 2rem 100px; text-align: center;
  position: relative; overflow: hidden;
  background: #07090f;
  border-bottom: 1px solid rgba(99,102,241,0.15);
}

/* Dot-grid mesh overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}

/* Animated glow orbs */
.hero-orb-1 {
  position: absolute; top: -120px; left: -80px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%);
  animation: floatOrb 8s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
.hero-orb-2 {
  position: absolute; bottom: -160px; right: -60px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 70%);
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
  pointer-events: none; z-index: 0;
}
.hero-orb-3 {
  position: absolute; top: 40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
@keyframes floatOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.06); }
}

.hero > * { position: relative; z-index: 1; }

/* Override text colors for dark hero */
.hero .hero-sub     { color: rgba(255,255,255,0.6); }
.hero h1            { color: #fff; }
.hero .hero-badge   { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); color: #a5b4fc; }
.hero .social-btn   { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); }
.hero .social-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }

.hero-photo-wrapper {
  width: 140px; height: 140px; margin: 0 auto 2rem;
  border-radius: 50%; padding: 4px; position: relative;
  background: linear-gradient(135deg, var(--indigo), var(--gold));
  box-shadow: 0 8px 32px rgba(99,102,241,0.25);
}
.hero-photo {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 900; color: var(--indigo);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--indigo);
  background: var(--primary-dim); border: 1px solid var(--border-accent);
  border-radius: 100px; padding: 6px 18px; margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--emerald);
  border-radius: 50%; animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 1rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #818cf8, #6366f1, #c084fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem; color: var(--text-secondary);
  line-height: 1.75; max-width: 600px; margin: 0 auto 2.5rem;
}

.hero-socials {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; font-size: 0.85rem; font-weight: 600;
  border-radius: 10px; transition: all 0.25s; border: 1px solid var(--border);
  color: var(--text-secondary); background: var(--bg-card);
}
.social-btn:hover {
  border-color: var(--border-accent); color: var(--text-primary);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.social-btn svg { flex-shrink: 0; }
.social-btn.primary-btn {
  background: var(--indigo); color: #fff; border-color: var(--indigo);
}
.social-btn.primary-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 2rem 1.5rem; background: var(--bg-card); text-align: center;
}
.stat-num {
  font-size: 2rem; font-weight: 900; color: var(--text-primary);
  line-height: 1; margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── SECTION LAYOUT ── */
.section {
  max-width: 960px; margin: 0 auto; padding: 5rem 2rem;
}
.section-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}
.section-title {
  font-size: 2rem; font-weight: 900; color: var(--text-primary);
  margin-bottom: 0.5rem; letter-spacing: -0.03em;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted); margin-bottom: 3rem;
  line-height: 1.7; max-width: 640px;
}
.divider {
  border: none; border-top: 1px solid var(--border); margin: 0;
}

/* ── ABOUT CARD ── */
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  line-height: 1.85; color: var(--text-secondary); font-size: 1rem;
}
.about-card p + p { margin-top: 1.25rem; }
.about-card strong { color: var(--text-primary); font-weight: 700; }

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.project-card:hover {
  border-color: var(--border-accent); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.project-card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--indigo);
  background: var(--primary-dim); border: 1px solid var(--border-accent);
  padding: 3px 12px; border-radius: 100px; margin-bottom: 1rem;
}
.project-card-title {
  font-size: 1.15rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.project-card-desc {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65;
  margin-bottom: 1.25rem;
}
.project-card-tech {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem;
}
.tech-tag {
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: 6px; background: var(--bg-input);
  border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-mono);
}
.project-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: var(--indigo);
  transition: gap 0.2s;
}
.project-card-link:hover { gap: 10px; }

/* ── SKILLS GRID ── */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: border-color 0.2s;
}
.skill-card:hover { border-color: var(--border-accent); }
.skill-icon {
  width: 40px; height: 40px; background: var(--primary-dim);
  border: 1px solid var(--border-accent); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--indigo);
}
.skill-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.skill-desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
}

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2rem;
  display: flex; align-items: flex-start; gap: 1.25rem;
  transition: all 0.25s;
}
.contact-card:hover {
  border-color: var(--border-accent); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-dim); border: 1px solid var(--border-accent);
  color: var(--indigo);
}
.contact-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.25rem;
}
.contact-value {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
  word-break: break-all;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--primary); border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(251,191,36,0.15), transparent);
  pointer-events: none;
}
.cta-banner h3 {
  font-size: 1.75rem; font-weight: 900; margin-bottom: 0.75rem;
  letter-spacing: -0.02em; position: relative;
}
.cta-banner p {
  font-size: 1rem; opacity: 0.8; margin-bottom: 2rem;
  max-width: 480px; margin-left: auto; margin-right: auto;
  position: relative;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: #fff; color: var(--primary);
  font-weight: 700; font-size: 0.95rem; border-radius: 10px;
  transition: all 0.25s; position: relative;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border); padding: 2.5rem 2rem;
  text-align: center; background: var(--bg);
}
.footer p {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
}
.footer a { color: var(--indigo); }
.footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 130px 1.5rem 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-photo-wrapper { width: 110px; height: 110px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.5rem; }
  .hero-socials { gap: 0.5rem; }
  .social-btn { padding: 8px 14px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .nav { padding: 0 1rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 0.95rem; }
  .section-title { font-size: 1.6rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
