html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  transition: all 0.2s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, #667eea, #764ba2);
  transition: background 0.2s ease;
  color: #fff;
}

header {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

h1 {
  font-size: 1.5rem;
}

nav a {
  color: #ddd;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #fff;
}

main {
  flex: 1;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

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

.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.feature {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  width: 250px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.features a.feature {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 400px;
  margin-top: 1rem;
}

input, textarea {
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #667eea;
}

button {
  background: #fff;
  color: #333;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background: #ddd;
}

footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.contact-me {
  text-align: center;
  padding: 4rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  margin-top: 2rem;
}

.contact-me h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-links .btn {
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.contact-links .btn:hover {
  transform: translateY(-3px);
}

.btn.discord {
  background: #5865f2;
  color: white;
}

.btn.email {
  background: #ff6b6b;
  color: white;
}

.btn.phone {
  background: #2ecc71;
  color: white;
}

.tagline {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

.discord-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: 12px;
}

.discord-profile img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #5865f2;
}

.discord-profile p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  justify-content: center;
}

.badge {
  position: relative;
  background: linear-gradient(90deg, #667eea, #764ba2);
  background-size: 200% 200%;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: gradientShift 4s ease infinite;
  cursor: default;
}

.badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Gradient shift animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Image centering */
.UTLC {
  display: block;
  margin: 0 auto;
}

/* Full horizontal & vertical centering for any container */
#centered {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  text-align: center;
}

#invisible {
  opacity:0;
}

.img-button-wrap {
  position: relative;  /* ensures button is positioned relative to image */
  display: inline-block;
}

.invisible-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;       /* small, adjustable */
  height: 20px;
  transform: translate(-50%, -50%);

  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  padding: 0 !important;
  margin: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  cursor: pointer;
}

.invisible-btn:hover,
.invisible-btn:focus,
.invisible-btn:active {
  outline: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
