/* ============================================================
   Portfolio Intro Page — Kingdavid Akudigwe
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-grad-a:    #1a1a2e;
  --bg-grad-b:    #16213e;
  --card-bg:      rgba(255, 255, 255, 0.97);
  --text-light:   #e2e8f0;
  --text-muted:   rgba(226, 232, 240, 0.65);
  --accent-blue:  #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --header-bg:    rgba(255,255,255,0.08);
  --section-alt-bg: rgba(255,255,255,0.04);
  --radius:       14px;
  --shadow:       0 20px 60px rgba(0, 0, 0, 0.4);
  --transition:   0.15s ease;
}

/* ---------- Dark Mode Overrides ---------- */
body.dark-mode {
  --card-bg:      rgba(15, 23, 42, 0.97);
  --section-alt-bg: rgba(0,0,0,0.15);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(135deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-light);
  transition: background var(--transition);
}

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

/* ---------- Theme Toggle ---------- */
.theme-toggle-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 100;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.1);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--text-light);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 96px 24px 72px;
}

.hero-greeting {
  color: var(--accent-green);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.hero-name {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hero-tagline {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-blue-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 24px;
}

.section-alt {
  background: var(--section-alt-bg);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: 1px;
  text-align: center;
}

.section-text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-badge {
  background: var(--card-bg);
  color: #1e293b;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.project-card {
  background: var(--card-bg);
  color: #1e293b;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
}

.project-card-placeholder {
  opacity: 0.6;
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.project-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.project-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 20px;
}

body.dark-mode .project-desc {
  color: #94a3b8;
}
body.dark-mode .project-title,
body.dark-mode .project-card {
  color: var(--text-light);
}

/* ---------- Contact ---------- */
.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
