/* style.css — Consolidated for verxus.me */

/* Import a modern font (optional) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root{
  --bg: #0a0a0a;
  --surface: #0f1113;
  --card: #1a1a1a;
  --text: #eaeaea;
  --muted: #bfc9cf;
  --accent: #ff00dd;
  --glass: rgba(255,255,255,0.03);
  --radius: 12px;
  --header-height: 64px;
}

/* Basic reset + sensible defaults */
*,
*::before,
*::after { box-sizing: border-box; }
html,body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Global link styles */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
  background: rgba(10,10,10,0.6); /* translucent so hero shows through slightly */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

header h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.6px;
  font-weight: 800;
  color: var(--text);
}

nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}

nav a:hover { color: var(--accent); background: rgba(255,255,255,0.02); }

/* Section spacing and anchor offset so sticky header doesn't hide content */
section {
  padding: calc(var(--header-height) + 3rem) 1.25rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Hero */
#hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
  background:
    linear-gradient(120deg, rgba(0,195,255,0.03), rgba(0,195,255,0.00)),
    radial-gradient(600px 300px at 10% 20%, rgba(0,195,255,0.04), transparent 10%),
    var(--bg);
}

.hero-content { max-width: 900px; }

#hero h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  margin: 0 0 0.5rem;
}

.highlight { color: var(--accent); }

#hero p { color: var(--muted); margin: 0 0 1rem; max-width: 720px; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .12s ease, opacity .12s ease;
}

.btn:hover { transform: translateY(-3px); opacity: 0.95; }

/* Skills section */
#skills { text-align: center; }

.skills-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.skill {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  transition: transform .15s ease;
}

.skill:hover { transform: translateY(-4px); }

/* Projects grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.project-card {
  display: block;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  color: #eaeaea;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.project-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.project-card p { margin: 0; color: var(--muted); }

.project-card:hover {
  transform: translateY(-5px);
  background: #222;
}

/* Contact & socials */
.socials { margin-top: 12px; font-weight: 600; color: var(--muted); }
.socials a { color: var(--accent); margin: 0 6px; }

/* Footer */
footer {
  padding: 2rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.02);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  color: var(--muted);
}

/* Back to top button (fixed) */
.back-to-top {
  display: none; /* toggled by JS */
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  background: var(--accent);
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-decoration: none;
}

/* Accessibility (keyboard focus) */
:focus { outline: 3px solid rgba(0,195,255,0.18); outline-offset: 3px; }

/* Responsive tweaks */
@media (max-width: 720px) {
  header { padding: 0 0.75rem; }
  nav { gap: 0.5rem; }
  .hero-content { padding-inline: 0.5rem; }
  section { padding-top: calc(var(--header-height) + 2rem); }
  .project-card { padding: 0.9rem; }
}

/* Small utility */
.center { text-align:center; }
