body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
}

header {
  padding: 24px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 20px;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.hero-content {
  max-width: 650px;
}

h1 {
  font-size: 56px;
  margin-bottom: 16px;
}

p {
  font-size: 20px;
  color: #cbd5e1;
  line-height: 1.6;
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 24px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
}

.tag {
  color: #60a5fa;
  font-weight: bold;
  margin-bottom: 12px;
}

.contact {
  padding: 80px 8%;
}

.contact-card {
  max-width: 650px;
  background: #111827;
  padding: 32px;
  border-radius: 24px;
}

.contact-card h2 {
  font-size: 36px;
  margin: 0 0 24px;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #020617;
  color: white;
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

#formStatus {
  font-size: 16px;
  margin: 0;
}

/*  */
.site-header {
  padding: 24px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
}

.menu-button {
  display: none;
  background: transparent;
  color: white;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 8%;
    right: 8%;
    background: #111827;
    padding: 20px;
    border-radius: 18px;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }
}

/*  */
.page-hero {
  padding: 80px 8% 20px;
}

.page-hero h1 {
  font-size: 56px;
  margin: 0 0 16px;
}

/*  */
.grid-section {
  padding: 60px 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #111827;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #1f2937;
}

.card h3 {
  margin-top: 0;
  font-size: 22px;
}

.card p {
  color: #cbd5e1;
}

/*  */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #60a5fa;
  border-radius: 999px;
}

.button,
button,
.card,
.contact-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}

.card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.7s ease forwards;
}

.card.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.card.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.card.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

.card.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*  */

.card-fade {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  animation: cardFadeIn 0.75s ease forwards;
}

.grid-section .card-fade:nth-child(1) {
  animation-delay: 0.15s;
}

.grid-section .card-fade:nth-child(2) {
  animation-delay: 0.3s;
}

.grid-section .card-fade:nth-child(3) {
  animation-delay: 0.45s;
}

.grid-section .card-fade:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/*  */
.contact {
  padding: 40px 8% 100px;
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: 720px;
  background: #111827;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid #1f2937;
}

.contact-card h2 {
  font-size: 36px;
  margin: 0 0 28px;
}

.contact-card form {
  display: grid;
  gap: 16px;
}

.contact-card input,
.contact-card textarea {
  min-height: 52px;
}

.contact-card button {
  width: 100%;
  margin-top: 4px;
}

.contact-card {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: contactFadeIn 0.75s ease forwards;
  animation-delay: 0.15s;
}

@keyframes contactFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .contact {
    padding: 30px 8% 80px;
  }

  .contact-card {
    padding: 24px;
    border-radius: 22px;
  }

  .contact-card h2 {
    font-size: 30px;
  }
}

/*  */
.contact-page-layout {
  min-height: calc(100vh - 86px);
  padding: 80px 8% 60px; /* slightly tighter top like other pages */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start; /* ✅ FIX */
}

.contact-page-layout .page-hero,
.contact-page-layout .contact {
  padding: 0;
}

.contact-page-layout .contact {
  justify-content: flex-end;
}

.contact-page-layout .contact-card {
  max-width: 640px;
}

@media (max-width: 900px) {
  .contact-page-layout {
    min-height: auto;
    padding: 56px 8% 80px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-page-layout .contact {
    justify-content: center;
  }
}