/* assets/css/styles.css */

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f19;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.58);
  --border: rgba(255, 255, 255, 0.12);

  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  --radius: 16px;
  --radius-sm: 12px;

  --container: 980px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(88, 101, 242, 0.18), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(16, 185, 129, 0.16), transparent 55%),
              var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section.light {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 1.25rem;
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem 0;
  color: var(--muted);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 25, 0.55);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.75rem 0 3.75rem;
}

.hero .container {
  display: grid;
  gap: 1.25rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--border);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
  cursor: pointer;
  user-select: none;
}

.btn {
  background: rgba(255, 255, 255, 0.12);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(0px);
  opacity: 0.95;
}

.btn-outline {
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: var(--surface);
}

/* ---------- Cards / Project Grid ---------- */
.project-grid,
.project-preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.project-card {
  grid-column: span 6;
  padding: 1.25rem 1.25rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.project-card p {
  color: var(--muted-2);
  margin-bottom: 0;
}

.project-card:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Footer ---------- */
footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

footer p {
  margin: 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links {
    gap: 0.4rem;
  }
  .nav-links a {
    padding: 0.5rem 0.6rem;
  }
  .hero {
    padding: 3.75rem 0 3rem;
  }
  .project-card {
    grid-column: span 12;
  }
}
