@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Oi&display=swap");

/* Color Presets */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #1a1a1a;
  --bg-secondary: #291d4f;
  --text-primary: #ffffff;
  --text-secondary: #c0bfe6;
  --accent: #6c5ce7; /* indigo-purple */
  --accent-hover: #5a4bd6;
  --border: #47405b;
}

@media (prefers-color-scheme: light) {
  :root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fbf8ff;
    --text-primary: #111018;
    --text-secondary: #5b5478;
    --accent: #5f4ee6; /* lighter indigo */
    --accent-hover: #4638c9;
    --border: #e6e0f6;
  }
}

/* Base Styles */

* {
  font-family: "Google Sans Flex", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--text-primary);
}

.tit {
  /* center content */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.head {
  background-color: var(--bg-secondary);
}

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

button {
  background-color: var(--accent);
  color: var(--text-primary);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: var(--accent-hover);
}

/* subtle focus outlines using indigo tint */
a:focus,
button:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 2px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
}

.card {
  width: 40%;
  max-width: 740px;
  margin: 32px auto;
  padding: 28px 26px;
  background: #291d4f81;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.14s ease-out;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}
