/* =========================================================
   RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* =========================================================
   BASE THEME
========================================================= */
body {
  background: #0B1220;
  color: #94A3B8;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;

  padding-top: 70px; /* prevents navbar overlap */
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1, h2, h3 {
  color: #F8FAFC;
  letter-spacing: -0.5px;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  color: #E2E8F0;
  margin: 20px 0 10px;
}

h3 {
  font-size: 16px;
  color: #CBD5E1;
}

/* =========================================================
   LINKS
========================================================= */
a {
  color: #6AA6FF;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: #A5C8FF;
  text-decoration: underline;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 40px;

  background: #0B1220;
  border-bottom: 1px solid #1F2A44;

  z-index: 9999;
}

.navbar .logo img {
  height: 42px;
}

.nav-links,
.auth-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.navbar a {
  font-size: 18px;
  color: #94A3B8;
  position: relative;
  padding: 6px 0;
}

/* underline animation */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0%;
  background: #4F7CFF;
  transition: 0.2s ease;
}

.navbar a:hover {
  color: #F8FAFC;
}

.navbar a:hover::after {
  width: 100%;
}

/* slight alignment tweak */
.nav-links {
  margin-left: 100px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  transition: 0.25s ease;
}

.primary {
  background: #4F7CFF;
  color: white;
  border: none;
}

.primary:hover {
  background: #3B66E3;
  transform: translateY(-2px);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

  padding: 100px 40px;
  max-width: 1100px;
  margin: auto;

  align-items: center;
}

.hero p {
  margin-top: 15px;
  max-width: 500px;
}

/* =========================================================
   CONTACT PAGE LAYOUT
========================================================= */
.contact-page {
  min-height: 100vh;
  text-align: center;
  padding: 60px 20px;

  background: linear-gradient(145deg, #0B1220, #0E1A2F);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   CONTACT CARD (FIXED STRUCTURE)
========================================================= */
.contact-card {
  background: #111B2E;
  border: 1px solid #1F2A44;

  padding: 18px;
  border-radius: 12px;

  transition: 0.2s ease;

  width: fit-content;
  min-width: 220px;

  display: flex;
  flex-direction: column;   /* 🔥 STACK CONTENT */
  align-items: center;
  justify-content: flex-start;

  gap: 6px;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,124,255,0.5);
}

/* card title */
.card-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6AA6FF;
  margin-bottom: 4px;
}

/* text inside cards */
.contact-card div {
  display: block;
}

/* links inside cards */
.contact-card a {
  color: #94A3B8;
  text-decoration: none;
}

.contact-card a:hover {
  color: #F8FAFC;
}

/* =========================================================
   GRIDS
========================================================= */
.email-grid,
.message-grid {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 15px;
  flex-wrap: wrap;

  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* =========================================================
   AUTH PAGES
========================================================= */
.auth-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: #0B1220;
}

.auth-card {
  background: #111B2E;
  border: 1px solid #1F2A44;

  padding: 25px;
  border-radius: 12px;

  width: 320px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card input {
  padding: 10px;
  border-radius: 8px;

  border: 1px solid #1F2A44;
  background: #0E1626;

  color: #F8FAFC;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .navbar {
    padding: 0 20px;
  }

  .message-grid {
    flex-wrap: wrap;
  }
}