/* REAL COLOR VERSION */

:root {
  --radius: 18px;
  --blur: 18px;

  --white: #ffffff;
  --sub: #d3d3d3;
  --brand-color: #5e81ff;
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

/* BODY + BACKGROUND IMAGE SETTINGS */
body {
  min-height: 100vh;

  /* Background image injected via JS */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;

  background-color: #000; /* fallback */

  color: var(--white);
  position: relative;
}

/* DARK OVERLAY ON TOP OF IMAGE (readability boost) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* adjust dim strength here */
  z-index: -1;
}

/* Remove purple underline */
a {
  color: var(--white);
  text-decoration: none !important;
}

/* Container */
#container {
  width: 85%;
  margin: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Time + Date */
#header {
  text-align: center;
  margin-bottom: 3rem;
}

#MyClockDisplay {
  font-size: 5rem;
  font-weight: 700;
}

#header-date {
  font-size: 1.3rem;
  color: var(--sub);
  margin-top: -10px;
}

/* SEARCH BAR */
.searchbox {
  width: 60%;
  padding: 14px 18px;
  margin-top: 1.8rem;

  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18);

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(var(--blur));

  color: white;
  transition: .2s ease;
}

.searchbox:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 10px var(--brand-color);
}

/* APP GRID */
#apps-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 25px;
  margin-top: 20px;
  justify-content: center;
}

/* APP CARD STYLE */
.apps-item {
  height: 140px;
  border-radius: var(--radius);
  padding-top: 22px;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(var(--blur));

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;

  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.2s ease;
}

/* Neon hover */
.apps-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 25px var(--brand-color);
  border-color: var(--brand-color);
}

.apps-icon i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--brand-color);
  transition: .2s;
}

.apps-item:hover i {
  transform: scale(1.15);
}

/* App text */
.apps-text span {
  font-size: 1.1rem;
  font-weight: 600;
}

/* WEBSITES LIST */
#sites {
  margin-top: 60px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

#sites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 60%;
  margin: auto;
}

.site-item {
  padding: 15px;

  background: rgba(0,0,0,0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));

  border: 1px solid rgba(255,255,255,0.1);

  transition: 0.2s ease;
  font-size: 1.1rem;
  font-weight: 600;
}

.site-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 20px var(--brand-color);
  border-color: var(--brand-color);
}

/* RESPONSIVE GRID BREAKPOINTS */
@media (max-width: 1500px) {
  #apps-loop {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
  }
}

@media (max-width: 1250px) {
  #apps-loop {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 1000px) {
  #apps-loop {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 750px) {
  #apps-loop {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 500px) {
  #apps-loop {
    grid-template-columns: repeat(1, minmax(150px, 1fr));
  }

  .searchbox {
    width: 90%;
  }

  #sites-list {
    width: 90%;
  }
}
