/* AUTHENTIC FROGLY STUDIOS THEME */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/Nunito.woff2') format('woff2');
}

:root {
  /* Authentic Swamp/Nature Palette */
  --bg-deep: #0a110d;
  --bg-swamp: #111d16;
  --bg-moss: #1a2a20;

  --text: #e6e1cf;
  /* Warm Cream */
  --muted: #8a9e91;
  /* Mossy Gray */
  --line: rgba(152, 217, 117, 0.12);

  --card-bg: rgba(20, 32, 24, 0.6);
  --card-border: rgba(152, 217, 117, 0.15);

  --accent: #98d975;
  /* Natural Tree Frog Green */
  --accent-glow: rgba(152, 217, 117, 0.25);

  --shadow: 0 12px 40px rgba(0, 5, 2, 0.6);
  --radius: 24px;
  --radius-sm: 16px;

  --max-width: 1120px;
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(34, 56, 43, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(152, 217, 117, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(76, 110, 89, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 13, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-image: var(--brand-logo);
  /* Set in HTML or JS if needed, or fallback */
  background: url("assets/logo.png") center/cover no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-links a {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;

  /* Primary Style */
  background: rgba(152, 217, 117, 0.15);
  color: var(--accent);
  border: 1px solid rgba(152, 217, 117, 0.3);
  box-shadow: 0 0 15px rgba(152, 217, 117, 0.05);
  transition: all 0.2s ease;
}

.btn:hover {
  background: rgba(152, 217, 117, 0.25);
  box-shadow: 0 0 20px rgba(152, 217, 117, 0.15);
  transform: translateY(-1px);
}

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

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Layout Sections --- */
section {
  padding: 40px 0;
}

.hero {
  padding: 80px 0 40px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: rgba(152, 217, 117, 0.25);
}

.pad {
  padding: 24px;
}

/* Hero Specifics */
.hero-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Subtle swamp light effect inside hero card */
.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(152, 217, 117, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-card>* {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom right, #fff, #b8c9bf);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 24px;
}

.sub b {
  color: var(--text);
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Section Headers --- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

/* Link List */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}

.link-item:hover {
  background: rgba(152, 217, 117, 0.08);
  border-color: rgba(152, 217, 117, 0.2);
  color: var(--text);
  padding-left: 20px;
  /* Slide effect */
}

/* --- Projects --- */
.project {
  padding: 20px;
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(152, 217, 117, 0.1);
  color: var(--accent);
  border-radius: 6px;
}

.embed {
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  min-height: 200px;
}

.steam-frame {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.under-embed {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* --- Legal --- */
.legal {
  padding: 16px 0;
  font-size: 14px;
}

details {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
}

details[open] {
  background: rgba(255, 255, 255, 0.04);
}

summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
}

summary:hover {
  color: var(--text);
}

.legal-content {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  /* Could add mobile menu, but keeping simple as per request */
  h1 {
    font-size: 40px;
  }
}