:root {
  --accent-cyan: #00F6FF;
  --accent-magenta: #C100FF;
  --accent2:  #89F336;
  --button: #89F336;

  /* Dark mode default */
  --bg: #121212;
  --surface: #1A1A1A;
  --muted-surface: #262626;
  --bg2: #212121;
  --border: #262626;

  --text: #E5E5E5;
  --button-text: #121212;
  --prev-text: #89F336;
  --muted-text: #B3B3B3;
  --muted-2: #7A7A7A;

  --radius: 12px;
  --glass: rgba(255,255,255,0.03);
  --glass-border: 1px solid rgba(255,255,255,0.04);
  --shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Light Theme */
html {
  overflow-y: scroll;
}
/* BASE */
body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 200ms ease, color 200ms ease;
  box-sizing: border-box;
  background-image: radial-gradient(var(--bg2) 2px, transparent 1px);
  background-size: 10px 10px;
}

/* HEADER */
#header-btn{
    background-color: var(--button);
    display: block;
    margin-top: 5vh;
    width: 140px;
    border: none;
    height: 40px;
    font-family: Inter;
    font-size: 1rem;
}

#header-btn:hover{
    background-color: var(--bg);
    color: var(--button);
    border: 1px solid var(--button);
    cursor: pointer;
}
.site-header {
margin-top: 9px;
  background: none;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
}

.brand {
  text-decoration: none;
  display: flex;
  gap: 0.7rem;
  color: var(--text);
}


.tagline {
  font-size: 0.8rem;
}

/* NAV LINKS */
.main-nav {
  margin-left: auto;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.nav-link {
  color: var(--muted-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.nav-link:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* THEME BUTTON */
.cta {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: var(--glass-border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* HERO SECTION */
.hero {
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  padding: 1rem;
}

.home-h1{
    font-size: clamp(2rem, 3.5vw, 2.5rem);
}


.large-header{
    padding: 25px 0 25px 0;
}
.header-img{
  aspect-ratio: 1 / 1;    
  width: 10%;           
  object-fit: cover;      
  display: inline-block;
}

.header-img-spacer{
    width: 5px;
    display: inline-block;
}
/* BUTTONS */
.btn {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: var(--glass-border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(0,246,255,0.15), rgba(193,0,255,0.12));
  color: #081019;
}
.btn.ghost {
  background: transparent;
  color: var(--muted-text);
  border-style: dashed;
}


/* GRID */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.row.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid {
  display: grid;
  row-gap: 5rem;
  column-gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: 0.25s ease;
}

.prev-title{
    font-size: 1.3rem;
    color: var(--accent2);
    text-decoration: underline;
}

.prev-title:hover{
    cursor: pointer;
    color: var(--accent2);
}

.thumb {
  
  border-radius: 5px;
  width: 100%;           
  object-fit: cover;      
  height: auto;
}

.thumb:hover{
    cursor: pointer;
}
.meta-row {
  margin-top: auto;
  display: flex;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.tag {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: var(--glass-border);
  background: var(--muted-surface);
  font-size: 0.8rem;
  font-weight: 600;
}

#homepage-btn{
    background-color: var(--button);
    color: var(--button-text);
    margin-top: 50px;
    width: 180px;
    height: 60px;
    border: 1px solid var(--accent2);
    font-family: Inter;
    border-radius: 5px;
    padding: 15px;
    font-size: 1rem;
    transition: background 180ms, color 180ms, border 180ms;
}

#homepage-btn2{
  background-color: var(--button);
    color: var(--button-text);
    margin-top: 20px;
    width: 135px;
    height: 60px;
    border: 1px solid var(--accent2);
    font-family: Inter;
    border-radius: 5px;
    padding: 15px;
    font-size: 1rem;
    transition: background 180ms, color 180ms, border 180ms;
}

#homepage-btn2:hover{
  background-color: var(--glass);
    color: var(--button);
    border: 1px solid var(--button);
    cursor: pointer;
}

#homepage-btn:hover{
    background-color: var(--glass);
    color: var(--button);
    border: 1px solid var(--button);
    cursor: pointer;
}
/* material of month*/
.material-of-month{
    max-width: 1200px;
    margin: 50px auto;
    padding: 1rem;
}
.date{
  color: var(--accent2);
}
.mmm-align{
    display: flex;
    justify-content: space-between;
}
.mmm-line{
    display: inline-block;
    border-top: 1px solid var(--accent2);
    width: 67%;
    margin-top: 17px;
}
.mmm-header{
    font-size: 2rem;
}

.mmm-header2{
  font-size: clamp(2rem, 3.5vw, 2.5rem);
}

#mmm-img{
  aspect-ratio: 4 / 3;    
  width: 25%;          
  height: auto; 
  border-radius: 5px;
  object-fit: cover;      
}
#mmm-descrp{
    width: 50%;
    margin-left: 50px;
    font-size: 1.2rem;
}
.mmm-img-align{
    display: flex; 
    justify-content: space-between;
}

.homepage-about{
    max-width: calc(1200px - 2rem);
    padding: 1rem;
    margin: auto auto 50px auto;
    background-color: var(--muted-surface);
    border-radius: 5px;
}

.hmp-btn{
  display: none;
}
/* FOOTER */
.site-footer {
  padding: 1.5rem 1rem;
  border-top: var(--glass-border);
}
.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  color: var(--muted-text);
}

/* RESPONSIVE */
@media (max-width: 940px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    flex-direction: column;
  }
  .hero-visual {
    width: 100%;
  }
  .site-title {
    display: none;
  }
  #mmm-descrp{
    font-size: 1rem;
  }
}

.fade-out {
  opacity: 0;
  transition: opacity 200ms ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 200ms ease;
}

/* FOOTER */

.site-footer {
  padding: 1.8rem 1rem;
  border-top: var(--glass-border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted-text);
}

.footer-link {
  color: var(--muted-text);
  text-decoration: none;
  margin-left: 1.2rem;
  font-size: 0.9rem;
  transition: color 150ms;
}

.footer-link:hover {
  color: var(--text);
}

.footer-right {
  display: flex;
  align-items: center;
}

/* SEARCH */

.search-bar-wrapper {
  margin: 20px 0 40px 0;
  width: calc(100% - 2rem);
}

#searchInput {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: var(--glass-border);
  background: var(--muted-surface);
  color: var(--text);
  outline: none;
  transition: 150ms ease;
}

#searchInput:focus {
  border: 1px solid var(--accent2);
  background: var(--surface);
}
.no-transition * {
  transition: none !important;
}
