/* ============================================
   RSDesigns.uk — Dark modern theme
   ============================================ */

:root {
  --bg: #0a0b12;
  --bg-2: #10121d;
  --surface: #14162280;
  --border: #ffffff14;
  --text: #e8e9f0;
  --muted: #9a9cb0;
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 18px;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; letter-spacing: -0.02em; }

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

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

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 12% -5%, #7c5cff22, transparent 60%),
    radial-gradient(700px 500px at 100% 0%, #22d3ee18, transparent 55%),
    radial-gradient(600px 600px at 50% 120%, #7c5cff12, transparent 60%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--grad);
  color: #0a0b12;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 8px 30px #7c5cff33;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px #7c5cff55; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--brand); background: #ffffff08; }

/* Eyebrow / labels */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--brand-2);
  margin-bottom: 14px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: #0a0b12cc;
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-size: 1.35rem; font-weight: 700; }
.logo span { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #0a0b12; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero__inner { max-width: 820px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; margin-bottom: 22px; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 620px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; }
.hero__stats span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* Grid */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--work { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: #7c5cff55; background: #16182a; }
.card__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad);
  color: #0a0b12;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* Work */
.work {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.work:hover { transform: translateY(-6px); border-color: #22d3ee55; }
.work__thumb {
  height: 190px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.work__thumb--orbit  { background: url('/assets/Orbit.png')  center / cover no-repeat; }
.work__thumb--wheely { background: url('/assets/WheelyDev.png') center / cover no-repeat; }
.work__thumb--sinkuk { background: url('/assets/SinkUK.png') center / cover no-repeat; }
.work__thumb--soon { background: repeating-linear-gradient(45deg, #16182a, #16182a 12px, #1b1e33 12px, #1b1e33 24px); }
.work__tag {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: #0a0b12aa;
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.work__body { padding: 24px 26px 28px; }
.work__body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.work__body p { color: var(--muted); margin-bottom: 16px; }
.work__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.work__meta span { font-size: .78rem; color: var(--brand-2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }
.work__meta a { font-size: .85rem; color: var(--brand-2); font-weight: 600; }
.work--soon { border-style: dashed; }

/* Project */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.project:hover { transform: translateY(-6px); border-color: #22d3ee55; }
.project__thumb {
  height: 190px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.project__thumb--soon { background: repeating-linear-gradient(45deg, #16182a, #16182a 12px, #1b1e33 12px, #1b1e33 24px); }
.project--soon { border-style: dashed; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.about__text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text .btn { margin-top: 10px; }
.about__skills {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.about__skills h3 { margin-bottom: 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text);
  background: #ffffff06;
}

/* Form */
.contact { max-width: 780px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  background: #0d0f18;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; margin-top: 6px; }
.form__note { color: var(--brand-2); font-size: .9rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-2); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .grid--3, .grid--work { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    top: 74px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #0d0f18f2;
    backdrop-filter: blur(14px);
    padding: 28px 30px;
    width: 240px;
    height: calc(100vh - 74px);
    transform: translateX(100%);
    transition: transform .3s ease;
    border-left: 1px solid var(--border);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; }
  .grid--3, .grid--work { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 30px; }
  .section { padding: 80px 0; }
}
