/* Base */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;         /* light theme */
  color: #1e2430;                    /* dark text for readability */
  text-align: center;
}

/* Main grows to push footer down */
main { flex: 1; }

/* Cover image */
header img {
  width: 90%;
  max-width: 1200px;
  height: auto;                      /* keep natural aspect ratio */
  max-height: 30vh;                  /* tame very tall images */
  object-fit: cover;
  display: block;
  margin: 48px auto 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* Greeting */
h1 {
  font-size: 3rem;
  margin: 24px 0 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #003060;                    /* brand blue */
}

/* Brand fonts */
.noto-serif-sinhala-welcome {
  font-family: "Noto Serif Sinhala", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
.noto-sans-tamil-welcome {
  font-family: "Noto Sans Tamil", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Social icons row */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-icons__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;                       /* comfy tap size */
  height: 48px;
  color: #003060;                    /* icon color via currentColor */
  border: 1px solid rgba(0, 48, 96, .15);
  border-radius: 12px;
  transition: transform .15s ease, border-color .15s ease, opacity .15s ease, color .15s ease;
  text-decoration: none;
  opacity: .92;
}

.social-icons__link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 48, 96, .3);
  opacity: 1;
  color: #055c9d;
}

.social-icons__link svg {
  width: 30px;
  height: 3dvh;
}

/* (If you still use .icon somewhere else) */
.icon { width: 24px; height: 24px; fill: currentColor; opacity: .88; transition: transform .15s ease, opacity .15s ease; }
a:hover .icon { transform: translateY(-2px); opacity: 1; }

/* Footer */
footer {
  margin: 36px 0 20px;
  font-size: 1rem;
  color: #055c9d;
  text-align: center;
  font-weight: 600;
}

footer .heart {
  color: #ff4b5c;
  display: inline-block;
  animation: pulse 1.2s infinite ease-in-out;
  transform-origin: center;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 75, 92, 0.6));
  }
  50% {
    transform: scale(1.2);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255, 75, 92, 0.9));
  }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  header img {
    width: 100%;
    max-width: 100%;
    max-height: 16vh;
    margin: 16px auto 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 10px 12px 6px;      /* ↓ top gap above greeting */
  }

  .social-icons {
    gap: 12px;
    margin-top: 14px;
  }

  .social-icons__link {
    width: 52px;
    height: 52px;
  }

  .social-icons__link svg {
    width: 22px;
    height: 22px;
  }

  footer {
    font-size: .92rem;
    margin: 24px 0 16px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  header img {
    width: 94%;
    max-width: 1000px;
    max-height: 30vh;
  }
  h1 { font-size: 2.2rem; }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .heart { animation: none !important; }
}