/* Root colours */
:root {
  --bs-primary: #7b5cff;
  --bs-primary-rgb: 123, 92, 255;
  --bs-secondary: #8e8efa;
  --bs-dark: #0e0e2b;
  --bs-light: #f8f9fa;

  --primary: #7b5cff;
  --primary-dark: #5938c8;
  --dark-bg: #0e0e2b;
  --dark-bg-alt: #1b1740;
}

/* Reset & global fixes */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background-color: var(--bs-light);
}

/* Side navigation (desktop) */
#sideNav {
  width: 64px;
  height: 100vh;
  background: var(--dark-bg);
  top: 0;
  left: 0;
  z-index: 1050;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#sideNav .nav-icon {
  display: block;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
#sideNav .nav-icon:hover {
  color: #fff;
}
@media (min-width: 992px) {
  body {
    margin-left: 64px;
  }
}

/* Hero section */
.hero-section {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-alt));
  overflow: hidden;
  min-height: 100dvh; /* iOS dynamic viewport fix */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-section h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.hero-section .lead {
  font-size: clamp(1rem, 3vw, 1.25rem);
}

/* Buttons */
.btn-outline-light {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-light:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Skill cards */
.skill-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.skill-card i {
  display: block;
}
.skill-card h6 {
  margin-bottom: 0;
}

/* About cards */
.about-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Mobile navbar */
.navbar-dark {
  background-color: rgba(14, 14, 43, 0.9) !important;
  backdrop-filter: blur(10px);
}
.navbar-dark .navbar-toggler-icon {
  filter: invert(1);
}

/* Footer */
footer {
  font-size: 0.875rem;
}

.skill-pill {
  padding: 0.6rem 1.2rem;
  background: rgba(123, 92, 255, 0.15);
  border: 1px solid rgba(123, 92, 255, 0.3);
  border-radius: 999px;
  font-size: 0.95rem;
  color: #fff;
  transition: background 0.2s ease;
}
.skill-pill:hover {
  background: rgba(123, 92, 255, 0.3);
}
