@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #fdfdfd;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --accent-color: #000;
  --hover-transform: translateY(-4px);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  overflow-x: hidden
}


.btn-secondary,
.btn-home {
  padding: 1rem 1.5rem;
  background: #fff;
  color: var(--text-primary);
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover,
.btn-home:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

header {
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  display: block;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 40vw;
  max-height: 40vw;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -1px
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400
}

.grid-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 600px
}

.row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px)
}

.row.delay-1 {
  animation-delay: 0.2s
}

.row.delay-2 {
  animation-delay: 0.4s
}

.link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  width: 100px
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02)
}

.icon-box i {
  font-size: 1.8rem;
  transition: transform 0.3s ease
}

.link-item:hover {
  transform: var(--hover-transform)
}

.link-item:hover .icon-box {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: #fff
}

.link-item:hover i {
  transform: scale(1.1)
}

.ri-facebook-circle-fill {
  color: #1877f2
}

.ri-instagram-fill {
  color: #e1306c
}

.ri-tiktok-fill {
  color: #000
}

.ri-heart-3-fill {
  color: #ffb800
}

.ri-github-fill {
  color: #333
}

.ri-article-fill {
  color: #ff9f43
}

.ri-mail-send-fill {
  color: #5f27cd
}

.label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary)
}

.row-2 .link-item {
  width: auto;
  flex-direction: row;
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  gap: 0.8rem
}

.row-2 .link-item .icon-box {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  border: none;
  margin: 0
}

.row-2 .link-item .icon-box i {
  font-size: 1.4rem
}

.row-2 .link-item:hover {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08)
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.contact-container {
  width: 100%;
  max-width: 500px;
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  text-align: left;
  animation: fadeInUp 0.8s ease-out
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition)
}

.back-link:hover {
  color: var(--text-primary);
  transform: translateX(-5px)
}

.form-group {
  margin-bottom: 1.5rem
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary)
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  background: #fbfbfb;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  color: var(--text-primary)
}

input:focus,
textarea:focus {
  background: #fff;
  border-color: #000
}

textarea {
  min-height: 120px;
  resize: vertical
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15)
}

.success-message {
  text-align: center;
  padding: 2rem
}

.hidden {
  display: none
}

@media(max-width:480px) {
  h1 {
    font-size: 2rem
  }

  .row {
    gap: 1rem
  }

  .link-item {
    width: 80px
  }

  .icon-box {
    width: 56px;
    height: 56px
  }

  .row-2 .link-item {
    width: 100%;
    justify-content: center
  }
}

.spinner {
  animation: spin 1s linear infinite;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.email-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #fbfbfb;
  border: 1px solid #f0f0f0;
}

.email-link:hover {
  background: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 1rem 1.5rem;
  background: #fff;
  color: var(--text-primary);
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  border-color: #000;
  transform: translateY(-2px);
}