:root {

  --bg: #07111f;
  --bg-light: #0d1728;

  --card: rgba(16, 24, 40, 0.9);

  --accent: #00f5c4;

  --text: #d9e5ff;
  --text-muted: #94a7c6;

  --border: rgba(0, 245, 196, 0.12);

  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  background: var(--bg);

  color: var(--text);

  font-family: var(--body-font);

  line-height: 1.7;

  overflow-x: hidden;
}

/* CANVAS */

#bgCanvas {

  position: fixed;
  inset: 0;

  z-index: -1;

  opacity: 0.4;
}

/* NAVBAR */

.navbar {

  position: sticky;
  top: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1.2rem 2rem;

  backdrop-filter: blur(12px);

  background: rgba(7, 17, 31, 0.9);

  border-bottom: 1px solid var(--border);

  z-index: 1000;
}

.logo {

  font-family: var(--heading-font);

  font-weight: 700;

  color: var(--accent);
}

.nav-links {

  display: flex;
  gap: 1.5rem;

  list-style: none;
}

.nav-links a {

  color: var(--text-muted);

  text-decoration: none;

  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* HERO */

.hero {

  min-height: 92vh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 2rem;
}

.hero-content {
  max-width: 760px;
}

.hero-tag {

  color: var(--accent);

  letter-spacing: 0.18rem;

  font-size: 0.8rem;

  margin-bottom: 1rem;
}

.hero h1 {

  font-family: var(--heading-font);

  font-size: clamp(3rem, 7vw, 5.5rem);

  line-height: 1.1;

  margin-bottom: 1.5rem;
}

.hero-subtitle {

  color: var(--text-muted);

  font-size: 1.1rem;

  margin-bottom: 2rem;
}

/* BUTTONS */

.hero-buttons {

  display: flex;
  justify-content: center;

  gap: 1rem;

  flex-wrap: wrap;
}

.btn {

  padding: 0.9rem 1.6rem;

  border-radius: 10px;

  text-decoration: none;

  transition: all 0.2s ease;
}

.primary-btn {

  background: var(--accent);

  color: #00130f;

  font-weight: 700;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {

  border: 1px solid var(--accent);

  color: var(--accent);
}

.secondary-btn:hover {
  background: rgba(0, 245, 196, 0.08);
}

/* SECTIONS */

.section {
  padding: 5rem 2rem;
}

.alt-section {
  background: var(--bg-light);
}

.section-heading {

  display: flex;
  align-items: center;

  gap: 1rem;

  margin-bottom: 2rem;
}

.section-heading h2 {

  font-family: var(--heading-font);

  font-size: 2rem;
}

.line {

  flex: 1;

  height: 1px;

  background: linear-gradient(to right, var(--accent), transparent);
}

/* CARDS */

.card,
.project-card {

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 1.8rem;
}

.card p {
  margin-bottom: 1rem;
}

/* TAGS */

.tags {

  display: flex;

  flex-wrap: wrap;

  gap: 0.8rem;

  margin-top: 1rem;
}

.tags span {

  border: 1px solid var(--border);

  padding: 0.45rem 0.85rem;

  border-radius: 999px;

  color: var(--accent);

  font-size: 0.9rem;
}

/* SKILLS */

.skills-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 1.5rem;
}

.skills-grid ul {

  margin-top: 1rem;

  padding-left: 1.2rem;
}

.skills-grid li {

  margin-bottom: 0.6rem;

  color: var(--text-muted);
}

/* PROJECTS */

.projects-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 1.5rem;
}

.project-card h3 {
  margin-bottom: 1rem;
}

.project-card p {

  color: var(--text-muted);

  margin-bottom: 1rem;
}

.project-card ul {

  padding-left: 1.2rem;

  margin-bottom: 1rem;
}

.project-card li {
  margin-bottom: 0.5rem;
}

.tech-stack {

  color: var(--accent);

  font-size: 0.95rem;
}

/* CONTACT */

.contact-card {
  text-align: center;
}

.contact-links {

  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 1rem;

  margin-top: 1.5rem;
}

.contact-links a {

  color: var(--accent);

  text-decoration: none;

  border: 1px solid var(--border);

  padding: 0.8rem 1rem;

  border-radius: 10px;

  transition: 0.2s ease;
}

.contact-links a:hover {

  background: rgba(0, 245, 196, 0.08);
}

/* FOOTER */

.footer {

  text-align: center;

  padding: 2rem;

  border-top: 1px solid var(--border);

  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .navbar {

    flex-direction: column;

    gap: 1rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .hero {
    min-height: 80vh;
  }
}