:root {
  --text: #f8efe7;
  --muted: #d5c8d5;
  --accent: #f5b84d;
  --accent-soft: #f06f4f;
  --bg-dark: rgba(12, 18, 37, 0.31);
  --border: rgba(255, 234, 196, 0.16);
  --font-body: "Source Sans 3", sans-serif;
  --font-display: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
  -ms-overflow-style: none;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 187, 83, 0.2), transparent 28%),
    radial-gradient(circle at 83% 16%, rgba(65, 183, 210, 0.18), transparent 30%),
    linear-gradient(180deg, #0c1025 0%, #171126 52%, #080a13 100%);
}

/* Canvas fixed in the background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Overlay content container */
.content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  pointer-events: none; /* Let clicks pass through empty space to canvas */
}

/* Re-enable pointer events for actual UI elements */
.glass-panel, .btn, a {
  pointer-events: auto; 
}

/* Sleek frosted glass effect */
.glass-panel {
  background: var(--bg-dark);
  backdrop-filter: blur(9px) saturate(1.18);
  -webkit-backdrop-filter: blur(9px) saturate(1.18);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 246, 236, 0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  margin-bottom: 80px;
  background:
    linear-gradient(180deg, rgba(22, 31, 62, 0.58), rgba(13, 17, 34, 0.34));
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  padding: 60px;
  margin-bottom: 80px;
  background:
    linear-gradient(135deg, rgba(21, 28, 58, 0.32), rgba(29, 19, 40, 0.2)),
    radial-gradient(circle at top right, rgba(248, 181, 67, 0.18), transparent 36%);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 5.2vw, 4.2rem);
  line-height: 1;
  margin-bottom: 24px;
  color: #f6ede3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  max-width: 800px;
}

.hero p {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 40px;
}

.actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #2a160d;
  box-shadow: 0 10px 24px rgba(243, 187, 106, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(243, 187, 106, 0.38);
  background: linear-gradient(135deg, #f7c779, #ff9e77);
}

.btn.secondary {
  background: rgba(122, 158, 212, 0.1);
  color: var(--text);
  border: 1px solid rgba(180, 213, 255, 0.2);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.35rem;
  margin-bottom: 30px;
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 188, 119, 0.08);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.project-link {
  color: #e8c89b;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
}

.project-link:hover {
  color: #fff4e6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(245, 184, 77, 0.16);
  border: 1px solid rgba(245, 184, 77, 0.34);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffd3a5;
}

.contact {
  margin-top: 44px;
  padding: 36px;
}

.contact p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.info-section {
  margin-top: 44px;
  padding: 36px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-item,
.stack-item {
  background:
    linear-gradient(180deg, rgba(127, 171, 222, 0.075), rgba(255, 255, 255, 0.026));
  border: 1px solid rgba(201, 222, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
}

.info-item h3,
.stack-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-item p,
.stack-item p {
  color: var(--muted);
  line-height: 1.6;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 16px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    padding: 40px 20px;
  }
  .info-section,
  .contact {
    padding: 24px;
  }
  .actions {
    flex-direction: column;
  }
  .btn {
    text-align: center;
  }
}
