
:root {
  --bg-dark: #232024;
  --text-dark: #ffffff;
  --accent: #0e0d0d;
  --panel: rgba(24, 22, 24, 0.78);
  --panel-2: rgba(46, 43, 46, 0.72);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --maxw: 980px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  scroll-behavior: smooth;
  transition: background-color 0.4s, color 0.4s;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Better base typography */
h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 12px;
}

ul {
  margin: 10px 0 18px;
  padding-left: 20px;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  margin: 22px 0;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 16px 60px;
}

.about a {
 display: block;
  background: #0a090a;
  border: 1px solid #1d1b1d;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  text-decoration: none;
  color: var(--text-dark);
}

header {
  text-align: center;
  padding: 44px 18px 22px;
  margin: 18px auto 18px;
  max-width: var(--maxw);
  background: linear-gradient(180deg, rgba(24, 22, 24, 0.88), rgba(24, 22, 24, 0.58));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  color: var(--text-dark);
}

header h1 {
  margin: 8px 0 6px;
  font-size: clamp(32px, 4vw, 44px);
}

nav a {
  display: inline-block;
  margin: 10px 8px 0;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: bold;
  color: var(--text-dark);
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-2);
}

nav a:focus-visible {
  outline: 2px solid rgba(20, 216, 204, 0.75);
  outline-offset: 2px;
}

.project-list a {
  display: block;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 12px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.project-list a:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  background: rgba(46, 43, 46, 0.86);
}

#profile-pic {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.50);
}

/* Card-like sections */
section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  margin: 16px 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* Respect users/devices that prefer less motion/effects */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

section h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #1b1a1b;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(20, 216, 204, 0.10), transparent 55%),
    radial-gradient(900px 500px at 90% 30%, rgba(193, 130, 17, 0.08), transparent 55%),
    radial-gradient(1000px 700px at 50% 90%, rgba(255, 255, 255, 0.04), transparent 60%),
    #0b0a0c;
  pointer-events: none;
}

@keyframes animateBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* Work Showcase Section */
/* ========================= */

#showcase {
  padding: 40px;
}

.showcase-group {
  background: #2b282b;
  border: 1px solid #070607;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
}

.showcase-group h3 {
  margin-top: 0;
  color: var(--text-dark);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.showcase-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #1e1d1f;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.showcase-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(27, 25, 26, 0.6);
}
