/* === ROOT VARIABLES === */
:root {
  --bg-color: #f5f5f5;
  --text-color: #333;
  --nav-bg-color: #fff;
  --nav-border-color: #ddd;
  --link-color: #777;
  --link-hover-color: #333;
  --button-bg: transparent;
  --button-border: #888;
  --button-color: #888;
  --button-hover-bg: #eee;
  --button-hover-color: #555;
  --p-color: #666;
  --h1-color: #555;
  --navbar-link-color: #444;
  --navbar-link-hover: #000;
  --keyboard-key-bg: #eee;
  --keyboard-key-hover-bg: #ddd;
}

/* === BASE STYLES === */
body {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  text-align: center;
  margin: 0;
  padding: 0;
  margin-top: 70px; /* Offset for navbar */
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  background-color: var(--nav-bg-color);
  border-bottom: 1px solid var(--nav-border-color);
  z-index: 1000;
}

.navbar a {
  color: var(--navbar-link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--navbar-link-hover);
}

/* === HEADINGS & TEXT === */
h1 {
  font-size: 2.5em;
  margin-top: 50px;
  color: var(--h1-color);
  font-weight: 300;
}

p {
  font-size: 1.2em;
  color: var(--p-color);
  margin-top: 50px;
}

.intro-text {
  font-size: 1.5em;
  color: var(--text-color);
  margin-top: 30px;
  font-weight: 300;
}

/* === LINKS === */
a {
  display: block;
  color: var(--link-color);
  text-decoration: none;
  margin: 15px 0;
  font-size: 1.1em;
}

a:hover {
  color: var(--link-hover-color);
}

/* === BUTTONS === */
.gfiles-button {
  display: inline-block;
  padding: 8px 20px;
  margin-top: 20px;
  background-color: var(--button-bg);
  border: 1px solid var(--button-border);
  color: var(--button-color);
  font-size: 1em;
  font-weight: 400;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gfiles-button:hover {
  background-color: var(--button-hover-bg);
  color: var(--button-hover-color);
  border-color: var(--button-hover-color);
}

/* === SPACING === */
.spacer {
  height: 1200px;
}

/* === UPDATE LOG === */
#update-log {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.log-entry {
  background-color: #f2f2f2;
  padding: 15px 20px;
  border-left: 4px solid #007bff;
  border-radius: 8px;
}

.log-date {
  font-weight: bold;
  font-size: 0.9em;
  color: #007bff;
}

.log-text {
  margin: 5px 0 0;
}

/* === SECRET IMAGE === */
.secret-image {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 100px;
  height: 100px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.secret-image:hover {
  opacity: 1;
}

/* === SURVEY POPUP === */
.survey-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 150, 255, 0.4);
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s ease;
  z-index: 9999;
}

.survey-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.survey-popup a {
  color: #00c3ff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.survey-popup a:hover {
  color: #82faff;
}

.survey-close {
  background: transparent;
  border: none;
  color: #bbb;
  font-size: 20px;
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.survey-close:hover {
  color: #ff5f5f;
  transform: scale(1.2);
}

/* === DARK MODE TOGGLE === */
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 8px 14px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #4f46e5; /* Indigo */
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* === FLUID CANVAS === */
#fluid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr); /* 3 rows */
  grid-auto-flow: column; /* fill columns top-to-bottom */
  gap: 20px;
  margin: 40px 0;
}

.card {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.card p {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: #555;
}

.card .gfiles-button {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}

.card .gfiles-button:hover {
  background-color: #58a6ff;
  transform: translateY(-2px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* === DARK MODE === */
body.dark {
  background-color: #0f0f0f;
  color: #f5f5f5;
}

body.dark a {
  color: #60a5fa;
}

body.dark a:hover {
  color: #82faff;
}

body.dark .navbar {
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

body.dark .gfiles-button {
  background-color: #222;
  color: #eee;
  border: 1px solid #555;
}

body.dark .gfiles-button:hover {
  background-color: #58a6ff;
  color: #fff;
  border-color: #58a6ff;
}

body.dark .cards-grid .card {
  background: #1a1a1a;
  color: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body.dark .cards-grid .card h3 {
  color: #fff;
}

body.dark .cards-grid .card p {
  color: #ccc;
}

body.dark .cards-grid .card .gfiles-button {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

body.dark .cards-grid .card .gfiles-button:hover {
  background-color: #60a5fa;
  border-color: #60a5fa;
  color: #fff;
}

/* === RESPONSIVE GRID === */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
  }
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }
}
/* === SECRET POPUP === */

.secret-popup {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  backdrop-filter: blur(4px);
}

.secret-popup.show {
  display: grid;
}

.secret-content {
  background: #1c1c1c;
  color: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  width: 320px;
  text-align: center;
  animation: popIn 0.25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.secret-content h2 {
  margin-bottom: 15px;
  font-size: 22px;
}

.secret-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.secret-content li {
  margin: 10px 0;
}

.secret-content a {
  text-decoration: none;
  color: #4da7ff;
  font-size: 17px;
  transition: opacity 0.2s;
}

.secret-content a:hover {
  opacity: 0.7;
}

#secret-close {
  padding: 8px 16px;
  border: none;
  background: #444;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.25s;
}

#secret-close:hover {
  background: #666;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

