:root {
  --bg-color: #0e1a14;
  --card-color: #16261d;
  --primary-color: #84cc16;
  --secondary-color: #14b8a6;
  --text-color: #e8f5ee;
  --muted-text: #9fb3a8;
  --border-color: rgba(255,255,255,0.06);


  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 70px;
}

@font-face {
  font-family: 'Inter';
  src: url("/fonts/Inter-VariableFont_opsz\,wght.ttf");
}

@font-face {
  font-family: 'Archivo Black';
  src: url("/fonts/ArchivoBlack-Regular.ttf");
}

@font-face {
  font-family: 'Dancing Script';
  src: url("/fonts/DancingScript-VariableFont_wght.ttf");
}

*{
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(132, 204, 22, 0.25);
  color: var(--text-color);
}

::-moz-selection {
  background: rgba(132, 204, 22, 0.25);
  color: var(--text-color);
}

body{
    font-family: 'Inter';
    background: var(--bg-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6{
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Archivo Black';
}

.cursive{
    font-family: 'Dancing Script';
}


/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

/* NAV */
.navbar {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* LOGO */
.logo {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

/* LINKS (DESKTOP) */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* CTA */
.cta-btn {
  background: var(--primary-color);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* HAMBURGER (hidden on desktop) */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

@media (max-width: 768px) {

  .navbar {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 220px;
    background: var(--card-color);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px;
  }

  .cta-btn {
    display: none;
  }


  .menu-toggle {
    display: block;
    margin-left: auto;
    text-align: right;
  }
}



/* HERO */
.hero {
  padding: 100px 20px;
  text-align: center;
}

.hero-title {
  font-size: 42px;
  color: var(--text-color);
  max-width: 900px;
  margin: auto;
}

.hero-subtitle {
  margin-top: 15px;
  color: var(--muted-text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.primary-btn {
  background: var(--primary-color);
  color: #000;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.secondary-btn {
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  text-align: center;
}

.stat h2 {
  color: var(--primary-color);
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: var(--card-color);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* PILLS */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: rgba(132, 204, 22, 0.1);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

/* CTA */
.cta {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255,255,255,0.02);
}




/* PROJECT PAGE */
.project-page {
  max-width: 1000px;
  margin: auto;
  padding: var(--space-2xl) var(--space-md);
}

/* TOP BLOCK */
.project-top {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
}

/* ICON */
.project-icon {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  flex-shrink: 0;
}

/* TITLE */
.project-info h1 {
  margin-bottom: var(--space-xs);
}

/* META */
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--muted-text);
  margin-bottom: var(--space-sm);
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

/* BUTTONS */
.project-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* DESCRIPTION */
.project-desc {
  margin-top: var(--space-md);
  line-height: 1.6;
  color: var(--text-color);
  max-width: 650px;
}

/* SCREENSHOTS SECTION */
.project-media {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

/* SLIDER SPACING FIX */
.slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.slides {
  display: flex;
  gap: var(--space-sm);
  width: 100%;
  overflow: hidden;
}

.slide {
  width: 260px;
  border-radius: 12px;
}






@media (max-width: 768px) {

  .project-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
  }

  .project-icon {
    width: 110px;
    height: 110px;
  }

  .project-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .meta-line {
    justify-content: center;
  }

  .project-desc {
    max-width: 100%;
  }

  .slide {
    width: 85vw;
  }
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px 0;
}

.tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;

  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);

  color: var(--secondary-color);

  transition: 0.2s ease;
  user-select: none;
}

.tag:hover {
  background: rgba(20, 184, 166, 0.22);
  transform: translateY(-1px);
}


.gallery {
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 10px;

  scroll-snap-type: x mandatory;
}

.gallery-track {
  display: flex;
  gap: 12px;
}

.gallery-track img {
  width: 320px;
  height: auto;
  border-radius: 12px;

  scroll-snap-align: center;
  flex-shrink: 0;

  border: 1px solid var(--border-color);
  transition: 0.2s ease;
}

.gallery-track img:hover {
  transform: scale(1.02);
}


@media (max-width: 768px) {
  .gallery-track img {
    width: 80vw;
  }

  .gallery {
    padding-left: 10px;
    padding-right: 10px;
  }
}





.simple-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.center-card {
  text-align: center;
  background: var(--card-color);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-width: 500px;
}





.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}








.project-search {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

#searchBar {
  padding: 10px 14px;
  border-radius: 10px;

  border: 1px solid var(--border-color);
  background: var(--card-color);
  color: var(--text-color);

  width: 280px;
  max-width: 100%;

  transition: 0.2s ease;
  outline: none;
}

#searchBar:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

/* mobile fix */
@media (max-width: 768px) {
  .search-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #searchBar {
    width: 100%;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card-color);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
}

.project-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

.tag.small {
  font-size: 10px;
  padding: 3px 7px;
}




.project-card,
.secondary-btn,
.primary-btn {
  transition: 0.2s ease;
}

/* hover lift (modern UI feel) */
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(132, 204, 22, 0.4);
}

/* buttons hover */
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 204, 22, 0.25);
}

.secondary-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}





.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-filter {
  font-size: 12px;
  padding: 6px 10px;

  border-radius: 999px;
  border: 1px solid var(--border-color);

  background: var(--card-color);
  color: var(--text-color);

  cursor: pointer;

  transition: 0.2s ease;
}

.tag-filter:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.tag-filter.active {
  background: rgba(132, 204, 22, 0.15);
  border-color: var(--primary-color);
  color: var(--primary-color);
}



@media (max-width: 768px) {

  .search-header {
    align-items: stretch;
  }

  #searchBar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tag-filters {
    justify-content: flex-start;
  }
}





.extra-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.extra-downloads a {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;

  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);

  text-decoration: none;

  transition: 0.2s ease;
}

.extra-downloads a:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}






.article-page {
  max-width: 800px;
  margin: auto;
  padding: 60px 20px;
}

.article-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-container h1 {
  font-size: 34px;
  line-height: 1.2;
}

.article-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
}

.article-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-top: 10px;
}
