* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter-Italic-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: radial-gradient(circle at top, #141414, #0b0b0b);
  /* background: #0b0b0b; */
  color: #f5f5f5;
  height: 100vh;
}

main {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* GENERAL CLASSES ------------ */
/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: fit-content;
  padding: 1rem 2rem;
}

/* MAIN LAYOUT */

main.grid {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  height: 100%;
}

.sidebar {
  width: 220px;
  background: #0f0f12;
  border-right: 1px solid #222;
  padding: 16px;
}

.sidebar:first-child {
  padding-top: 5rem;
}

.side-btn {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 12px;
  text-align: left;
  font-family: Inter, sans-serif;
  cursor: pointer;
}

.side-btn:hover {
  background: #1c1c22;
  border-radius: 20px;
}

.side-btn.active {
  background-color: #212127;
  border-radius: 20px;
}

div.content {
  height: 100%;
  width: 100%;
  margin: 8rem 2rem;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar a {
  text-decoration: none;
  color: inherit;
}

/* BUTTON */
.btn {
  font-weight: 600;
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.login-btn {
  /* can add more css later */
}

.btn.logout-btn {
  /* can add more css later */
}

.btn.primary {
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary:hover {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn.secondary {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
}

.btn.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  background: white;
  color: black;
}

.btn.google-btn:hover {
  opacity: 0.9;
}

/* PAGE SPECIFIC STYLING ----------- */
/* HERO */
.index {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index .hero {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.index .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}

.index .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.index .hero-content h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.index .hero-content p {
  margin-top: 20px;
  font-size: 18px;
  color: #cfcfcf;
  max-width: 480px;
}

.index .hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

/* HERO VISUAL */
.index .hero-visual {
  position: relative;
  height: 420px;
}

.index .mock-card {
  position: absolute;
  width: 260px;
  height: 360px;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.index .mock-card:nth-child(1) {
  top: 40px;
  left: 60px;
  transform: rotate(-6deg);
}

.index .mock-card:nth-child(2) {
  top: 10px;
  left: 140px;
  transform: rotate(3deg);
}

.index .mock-card:nth-child(3) {
  top: 80px;
  left: 220px;
  transform: rotate(12deg);
}

@media (max-width: 900px) {
  .index .hero {
    grid-template-columns: 1fr;
    padding-top: 140px;
  }

  .index .hero-visual {
    display: none;
  }

  .index .hero-content h1 {
    font-size: 42px;
  }
}

/* LOGIN */
.login {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #0b0b0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login .card {
  background: linear-gradient(145deg, #141414, #0e0e0e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login .subtitle {
  color: #bdbdbd;
  margin-bottom: 32px;
  font-size: 15px;
}

.login .btn.google-btn img {
  height: 1.125rem;
  width: 1.125rem;
  margin: 0;
}

/* MAIN */
.main {
  height: 100%;
  width: 100%;
}

.main .welcome {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.main .email {
  color: #bdbdbd;
  margin-bottom: 32px;
}

.main .card {
  background: linear-gradient(145deg, #141414, #0e0e0e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  max-width: 320px;
}

.main .card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.main .card-name {
  font-weight: 600;
  font-size: 18px;
}

.main .card-sub {
  color: #bdbdbd;
  font-size: 14px;
}

/* PROFILE */
.container {
  max-width: 820px;
  /* margin: 140px auto 80px; */
  padding: 0 32px;
}

.container h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.8px;
}

.subtitle {
  font-size: 16px;
  color: #bdbdbd;
  max-width: 520px;
  margin-bottom: 20px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.row {
  display: flex;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.field label {
  font-size: 13px;
  color: #cfcfcf;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: #f5f5f5;
  transition: border 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(124,92,255,0.6);
  background: rgba(255,255,255,0.06);
}

.field textarea {
  resize: none;
  min-height: 110px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 32px;
}

.actions .cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

 .actions .save {
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actions .save:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,92,255,0.35);
}


/* CONNECT */
.connect {
  height: 100%;
  width: 100%;
}

.connect .connect-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn.connect-btn {
  margin-top: 1rem;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  color: white;
  border: none;
  padding: 15px 25px;
  font-weight: 400;
  cursor: pointer;
}

.btn.connect-btn:hover {
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.connect #qrcode {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #ffffff;
  width: fit-content;
  border-radius: 15px;
}

/* FRIEND */
.add-friend {
  height: 100%;
  width: 100%;
}

.add-friend .friend-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn.scan-btn {
  margin-top: 1rem;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  color: white;
  border: none;
  padding: 15px 25px;
  font-weight: 400;
  cursor: pointer;
}

.btn.scan-btn:hover {
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.learnMoreTitle {
  text-align: left;
  margin-left: 100px;
  margin-top: 100px;
}

.learnMore {
  position: absolute;
  margin-left: 100px;
  margin-right: 100px;
  margin-bottom: 40px;
  margin-top: 40px;
}

.tagline {
  text-align: left;
  margin-top: 80px;
}

.aboutUs {
  margin-top: 40px;
}

.aboutUsBox{
  border: 1px solid white;
  border-radius: 10px;
  padding: 10px 10px;
  margin-bottom: 100px;
}

.copyright {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 200px;
}


.add-friend #result {
  margin-top: 1rem;
  font-style: italic;
}

.add-friend #reader {
  margin-top: 2rem;
  width: 40vw;
}