/* --------- BASIC RESET --------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* BODY */
body {
    background: radial-gradient(circle at top, #0d1117, #010409);
    color: #c9d1d9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #2d2d2c;
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
    z-index: 100;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #2d2d2c;  /* Solid dark background */
    border-bottom: 1px solid #30363d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* subtle shadow */
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease; /* smooth color transition for theme switcher */
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease; /* smooth hover effects */
}

.logo a:hover {
    transform: scale(1.05);       /* slight zoom */
    filter: brightness(1.2);       /* subtle glow */
}

.logo-img {
    height: 40px;   /* adjust as needed */
    width: auto;
    display: block;
}


/* THEME SWITCHER */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { display:none; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #30363d;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider { background-color: #58a6ff; }
input:checked + .slider:before { transform: translateX(26px); }

/* MAIN */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* INTRO */
.intro {
    text-align: center;
    margin-bottom: 10px;
}

.intro h1 { font-size: 36px; margin-bottom: 8px; }
.notice { color: #8b949e; font-size: 14px; }

/* SEARCH BAR */
.search-bar { text-align: center; margin: 20px 0; }
.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #c9d1d9;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.section-card {
    text-align: center;
}

.section-desc {
    margin-bottom: 8px;
    color: #8b949e;
    font-size: 14px;
}

/* CARDS */
.card {
    display: block;
    background: linear-gradient(145deg, #161b22, #0d1117);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: #c9d1d9;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.25s, box-shadow 0.25s, border 0.25s, color 0.25s;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(88,166,255,0.15);
    border-color: #58a6ff;
    color: #58a6ff;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    color: #8b949e;
    border-top: 1px solid #30363d;
}

footer a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #58a6ff;
}

.logo-img {
    height: 40px;      /* Adjust the height as needed */
    width: auto;       /* Keeps the aspect ratio */
    display: block;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    gap: 10px; /* space between image and text */
}

.logo a:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.logo-img {
    height: 40px;  /* adjust as needed */
    width: auto;
}

.logo-text {
    color: #ffffff;          /* white text */
    font-size: 12px;         /* smaller size */
    font-weight: 600;        /* slightly less bold */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

