@charset "UTF-8";
/*-- -------------------------- -->
<---     GrimmLab Stylesheet    -->
<---   compiles to css/main.css -->
<--- -------------------------- -*/
/*-- -------------------------- -->
<---          Variables         -->
<--- -------------------------- -*/
:root {
  /* ── Dark (default) palette ── */
  --bg: #111114;
  --surface: #1a1a20;
  --elevated: #2a2a35;
  --border: #33333f;
  --violet: #7c5cbf;
  --violet-lt: #a07ee0;
  --violet-dim: #3d2e60;
  --text: #e8e0f5;
  --text-muted: #9988bb;
  --text-dim: #554466;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --sidebar-w: 280px;
  /* fluid section padding, CodeStitch-style clamp scale */
  --section-pad-y: clamp(3rem, 6vw, 5.5rem);
  --section-pad-x: clamp(1.5rem, 4vw, 4rem);
  /* fonts */
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Light palette (toggled via body.light-mode) ── */
body.light-mode {
  --bg: #f6f4fa;
  --surface: #ffffff;
  --elevated: #ece7f6;
  --border: #ddd5ec;
  --violet: #6a47b8;
  --violet-lt: #5a3aa3;
  --violet-dim: #ece3fa;
  --text: #211a2e;
  --text-muted: #5d5470;
  --text-dim: #968aae;
  --shadow: 0 8px 24px rgba(106, 71, 184, 0.12);
}

/*-- -------------------------- -->
<---       Reset & Base         -->
<--- -------------------------- -*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--violet-lt);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--violet);
}

body.light-mode a:hover {
  color: #000;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/*-- -------------------------- -->
<---          Buttons           -->
<--- -------------------------- -*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  border: 1px solid var(--violet);
}
.btn-primary:hover {
  background: var(--violet-lt);
  border-color: var(--violet-lt);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet-lt);
  background: var(--violet-dim);
}

/*-- -------------------------- -->
<---       Section Header       -->
<--- -------------------------- -*/
section {
  padding: var(--section-pad-y) var(--section-pad-x);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 560px;
  font-size: 0.95rem;
}

/*-- -------------------------- -->
<---           Cards            -->
<--- -------------------------- -*/
/* ── Hero feature card (CodeStitch cs-card-group pattern) ── */
.hero-card-group {
  width: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.25rem);
}

.hero-card {
  grid-column: span 12;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: border-color 0.3s, transform 0.2s;
}
.hero-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}
.hero-card:hover .hero-card-icon {
  transform: rotateY(360deg);
}
.hero-card:hover h3 {
  color: var(--violet-lt);
}

.hero-card-icon-wrap {
  margin-bottom: 1.25rem;
  perspective: 700px;
}

.hero-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 8px;
  background: var(--violet-dim);
  transition: transform 0.5s;
}

.hero-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}

.hero-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Stat card (About section) ── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.stat-card:hover {
  border-color: var(--violet);
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet-lt);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Project gallery card ── */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.project-card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.project-thumb.t1 {
  background: linear-gradient(135deg, #1e1528 0%, #2d1f4a 100%);
}
.project-thumb.t2 {
  background: linear-gradient(135deg, #151528 0%, #1f2040 100%);
}
.project-thumb.t3 {
  background: linear-gradient(135deg, #1a1520 0%, #2a1e38 100%);
}
.project-thumb.t4 {
  background: linear-gradient(135deg, #15201a 0%, #1e3028 100%);
}
.project-thumb.t5 {
  background: linear-gradient(135deg, #201515 0%, #3a2020 100%);
}
.project-thumb.t6 {
  background: linear-gradient(135deg, #201a10 0%, #3a2d10 100%);
}

body.light-mode .project-thumb.t1 {
  background: linear-gradient(135deg, #ece3fa 0%, #ddd0f5 100%);
}
body.light-mode .project-thumb.t2 {
  background: linear-gradient(135deg, #e3e8fa 0%, #d0daf5 100%);
}
body.light-mode .project-thumb.t3 {
  background: linear-gradient(135deg, #f0e3fa 0%, #e3d0f5 100%);
}
body.light-mode .project-thumb.t4 {
  background: linear-gradient(135deg, #e3fae9 0%, #d0f5db 100%);
}
body.light-mode .project-thumb.t5 {
  background: linear-gradient(135deg, #fae3e3 0%, #f5d0d0 100%);
}
body.light-mode .project-thumb.t6 {
  background: linear-gradient(135deg, #faf0e3 0%, #f5e6d0 100%);
}

.project-body {
  padding: 1.25rem;
}
.project-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.project-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.tag {
  font-size: 0.68rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: var(--violet-dim);
  color: var(--violet-lt);
}
.tag.tag-tech {
  background: #1a2540;
  color: #6699ee;
}
.tag.tag-print {
  background: #1e2a1a;
  color: #66bb77;
}

body.light-mode .tag.tag-tech {
  background: #dce6fa;
  color: #2255cc;
}
body.light-mode .tag.tag-print {
  background: #dcf0dc;
  color: #228833;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-lt);
  transition: gap 0.2s;
}
.project-link:hover {
  gap: 0.6rem;
  color: var(--violet);
}

/* ── Marketplace card ── */
.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.market-card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  background: var(--elevated);
}
.market-card:hover .market-icon {
  transform: rotateY(360deg);
}
.market-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.market-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.market-card .market-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-lt);
  margin-top: 0.25rem;
}
.market-card .market-link:hover {
  color: var(--violet);
}

.market-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--violet-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.5s;
}

/* ── Responsive: hero card grid ── */
@media (min-width: 48rem) {
  .hero-card {
    grid-column: span 6;
    text-align: left;
    align-items: flex-start;
  }
}
@media (min-width: 81.25rem) {
  .hero-card {
    grid-column: span 6;
  }
}
/*-- -------------------------- -->
<---       Theme Toggle         -->
<--- -------------------------- -*/
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 1.5rem;
}
.theme-toggle:hover {
  border-color: var(--violet);
  color: var(--text);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.light-mode .theme-toggle .icon-moon {
  display: none;
}

body:not(.light-mode) .theme-toggle .icon-sun {
  display: none;
}

/* mobile bar variant */
.mobile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-toggle button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-toggle svg {
  width: 16px;
  height: 16px;
}

body.light-mode .mobile-toggle .icon-moon {
  display: none;
}

body:not(.light-mode) .mobile-toggle .icon-sun {
  display: none;
}

/*-- -------------------------- -->
<---          Sidebar           -->
<--- -------------------------- -*/
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  overflow-y: auto;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-logo {
  margin-bottom: 2.5rem;
}
.sidebar-logo .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}
.sidebar-logo .wordmark span {
  color: var(--violet-lt);
}
.sidebar-logo .tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.sidebar-nav {
  list-style: none;
  flex: 1;
}
.sidebar-nav li {
  margin-bottom: 0.25rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
.sidebar-nav a:hover {
  background: var(--elevated);
  color: var(--text);
}
.sidebar-nav a:hover .nav-dot {
  background: var(--violet-lt);
}
.sidebar-nav .nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-dim);
  flex-shrink: 0;
  transition: background 0.2s;
}

.sidebar-social {
  margin-top: auto;
  padding-top: 1.5rem;
}
.sidebar-social .social-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-links a:hover {
  border-color: var(--violet);
  color: var(--violet-lt);
  background: var(--violet-dim);
}

/* ── Mobile nav bar (replaces sidebar under 900px) ── */
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.mobile-wordmark span {
  color: var(--violet-lt);
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 0px;
  }
  .sidebar {
    display: none;
  }
  .mobile-bar {
    display: flex;
  }
}
/*-- -------------------------- -->
<---            Hero            -->
<--- -------------------------- -*/
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.hero {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
  padding-top: clamp(5rem, 10vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(124, 92, 191, 0.12) 0%, transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V17L28 1l28 16v33L28 66zm0-2.3l25.7-14.9V18.2L28 3.3 2.3 18.2v30.6L28 63.7z' fill='%237c5cbf' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-size: auto, 56px 100px;
  pointer-events: none;
}

body.light-mode .hero::before {
  background-image: radial-gradient(circle at 70% 50%, rgba(106, 71, 184, 0.06) 0%, transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V17L28 1l28 16v33L28 66zm0-2.3l25.7-14.9V18.2L28 3.3 2.3 18.2v30.6L28 63.7z' fill='%236a47b8' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.25rem);
}

.hero-content {
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-lt);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--violet);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  /* fluid clamp scale, CodeStitch style */
  font-size: clamp(2.438rem, 5vw, 3.813rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 46.875rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--violet-lt);
}

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 33.75rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Responsive: side-by-side at large desktop ── */
@media (min-width: 81.25rem) {
  .hero-container {
    flex-direction: row;
    align-items: flex-start;
  }
  .hero-content {
    width: 50%;
    max-width: 39.375rem;
    flex: none;
  }
  .hero-card-group {
    width: 50%;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
  }
}
/*-- -------------------------- -->
<---            About           -->
<--- -------------------------- -*/
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  #about .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}
/*-- -------------------------- -->
<---       Project Gallery      -->
<--- -------------------------- -*/
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/*-- -------------------------- -->
<---         Marketplace        -->
<--- -------------------------- -*/
#marketplace .marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

/*-- -------------------------- -->
<---           Contact          -->
<--- -------------------------- -*/
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .full {
  grid-column: 1/-1;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-list .contact-ico {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--violet-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  #contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}
/*-- -------------------------- -->
<---           Footer           -->
<--- -------------------------- -*/
footer {
  padding: 2.5rem var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}
footer p span {
  color: var(--violet-dim);
}

@media (max-width: 900px) {
  footer {
    padding: 2rem 1.5rem;
  }
}
