@charset "utf-8";
/* CSS Document */

/* ----------------------------------------
   ROOT VARIABLES
---------------------------------------- */
:root {
  --bg-color: #0d0d0d;
  --text-color: #f5f5f5;
  --accent-color: #00ffcc;
  --font-family: 'Poppins', 'Segoe UI', sans-serif;
  --footer-text: #666;
}

/* ----------------------------------------
   GLOBAL RESET
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------
   BASE LAYOUT
---------------------------------------- */
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh; /* avoid micro-scrollbars */
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  text-align: center;
  align-items: center;
  overflow-y: auto; /* only scroll vertically when needed */
}

main {
  flex: 1 1 auto; /* grow and shrink as needed */
  min-height: calc(100vh - 60px); /* pushes footer to bottom on large screens */
  max-height: calc(100vh - 60px); /* prevents overflow from padding/margins */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers profile + headings */
  justify-content: flex-start;
  padding: 1rem 0;
  overflow-y: auto; /* scroll within main when needed */
}

/* ----------------------------------------
   PROFILE IMAGE
---------------------------------------- */
img.profile {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  max-width: 100%;
}

/* ----------------------------------------
   HEADINGS
---------------------------------------- */
h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #fff;
  text-shadow: 0 0 4px transparent;
  transition: 0.3s ease-in-out;
}

h1:hover {
  color: #00ffdf;
  text-shadow: 0 0 6px rgba(0, 255, 223, 0.6),
               0 0 12px rgba(0, 255, 223, 0.4);
}

h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #aaa;
  margin-bottom: 2rem;
}

/* ----------------------------------------
   CONTACT LINKS (Only used in child pages, not index.php)
---------------------------------------- */
.contact-text p {
  margin: 0.3rem 0;
  line-height: 1.4;
  word-break: break-word; /* prevent overflow */
}

.contact-text a {
  color: #00ffcc;
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}

.contact-links {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

.contact-links a {
      color: var(--accent-color);
      text-decoration: none;
      font-size: 1.1rem;
      transition: color 0.3s ease;
    }

.contact-links a:hover {
      color: #ffffff;
    }

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap; /* prevent overflow */
}

.contact-item img {
  margin-right: 1rem;
  max-width: 100%;
  height: auto;
}

.contact-links1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* center icon + text as a group */
  gap: 0.6rem;               /* small space between icon and text */
  white-space: nowrap;
}

.contact-links1 img {
  width: 50px;               /* restore original size */
  height: 50px;
  object-fit: contain;
  display: inline-block;
}

/* ----------------------------------------
   MOBILE-FRIENDLY (stacked layout)
---------------------------------------- */
@media (max-width: 500px) {

  /* Stack icon above text */
  .contact-links-table td {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0;
  }

  /* Reduce icon size slightly for small screens */
  .contact-links img {
    width: 42px;
    height: 42px;
    margin-bottom: 0.4rem;
  }

  .contact-links-table a {
    font-size: 1rem;
  }
}

/* ----------------------------------------
   FOOTER (Sticky)
---------------------------------------- */
footer {
  flex-shrink: 0; /* ensures footer stays fixed height */
  width: 100%;
  text-align: left;
  font-size: 0.8rem;
  color: var(--footer-text);
  padding: 1rem 0.5rem;
  box-sizing: border-box;
}

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

footer a:hover {
  color: #999;
}

/* ----------------------------------------
   COPY BUTTON (Only used in child pages, not index.php)
---------------------------------------- */
.copy-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.5rem;
  cursor: pointer;
  display: inline-block;
}

.copy-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  transition: transform 0.3s ease,
              filter 0.3s ease,
              stroke 0.3s ease;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.copy-btn:hover svg {
  transform: scale(1.2);
  stroke: #00e6b8;
  filter: drop-shadow(0 0 6px #39ff14)
          drop-shadow(0 0 12px #39ff14);
}

/* ----------------------------------------
   RESPONSIVE (small screens)
---------------------------------------- */
@media (max-width: 600px) {
  img.profile {
    width: 120px;
    height: 120px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.1rem; }

  .contact-links a {
    font-size: 1.2rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 500px) {
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item img {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

/* ----------------------------------------
   VERY SHORT VIEWPORTS (mobile landscape, etc.)
---------------------------------------- */
@media (max-height: 500px) {
  main {
    min-height: auto;
    max-height: calc(100vh - 50px);
  }

  img.profile { margin-bottom: 0.5rem; }
  h1 { margin-bottom: 0.2rem; }
  h2 { margin-bottom: 1rem; }
  .contact-links { margin: 1rem auto; }
  footer { padding: 0.5rem 0.5rem; font-size: 0.75rem; }
}

/* ----------------------------------------
   OPTIONAL: Clean, subtle scrollbars
---------------------------------------- */
main::-webkit-scrollbar {
  width: 6px;
}

main::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}