/* =============== ACCESSIBILITY =============== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =============== STATIC GRID BACKGROUND =============== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 0.1em, transparent 0.1em), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0.1em, transparent 0.1em);
  background-size: 3em 3em;
}

/* =============== BASIC STYLES =============== */
body {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  overflow-y: scroll;
  overflow-x: hidden;
}
body.light-mode {
  background: #fff;
  color: #000;
}
body.light-mode::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1) 0.1em, transparent 0.1em), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0.1em, transparent 0.1em);
}
body.light-mode #theme-toggle {
  background: #000;
  color: #fff;
}

.main-container {
  width: 90%;
  max-width: 30rem;
  margin: 10rem auto;
  position: relative;
  z-index: 1;
}

/* =============== SCROLLBAR =============== */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: #fff;
}

::-webkit-scrollbar-thumb {
  background-color: #111;
}

/* =============== ICON STYLES =============== */
.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-small {
  width: 20px;
  height: 20px;
}

.icon-large {
  width: 28px;
  height: 28px;
}

/* =============== BIO SECTION =============== */
.blob-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.head-section {
  overflow: hidden;
}

.blob-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 52% 48% 59% 41%/53% 40% 60% 47%;
  overflow: hidden;
  animation: blobAnim 10s ease-in-out infinite alternate;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.blob-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

@keyframes blobAnim {
  0%, 100% {
    border-radius: 52% 48% 59% 41%/53% 40% 60% 47%;
  }
  25% {
    border-radius: 60% 40% 50% 50%/40% 60% 40% 60%;
  }
  50% {
    border-radius: 40% 60% 60% 40%/50% 50% 40% 60%;
  }
  75% {
    border-radius: 52% 48% 59% 41%/53% 40% 60% 47%;
  }
}
/* =============== DARK MODE TOGGLE =============== */
#dark-mode-toggle {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.1rem 0 1.5rem;
}

#theme-toggle {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none;
}

h1 {
  text-align: center;
  margin: 0.5rem 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.lead {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1rem auto;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 28rem;
}

small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.8;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.number-btn,
.mail-btn,
.share-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.number-btn:hover,
.mail-btn:hover,
.share-btn:hover {
  background: #222;
  transform: scale(1.05);
}

.location-btn.minimal-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  background: #111;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links ul {
  list-style: none;
  padding: 0;
}

.link-item {
  margin-bottom: 1rem;
  background: #111;
  border: 1px solid #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}
.link-item:hover {
  background: #222;
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.link-item:hover .icon {
  transform: scale(1.1);
}
.link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 1rem;
  gap: 1rem;
  color: #fff;
}
.link-wrapper a {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}
.link-wrapper .icon {
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.share-overlay.active {
  opacity: 1;
  visibility: visible;
}
.share-overlay.active .share-popup {
  transform: scale(1) translateY(0);
}

.share-popup {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 32px;
  width: 90%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  transform: scale(0.8) translateY(40px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-header {
  margin-bottom: 24px;
}

.popup-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 8px;
}

.popup-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
}

.qr-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.qr-image {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.share-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.share-actions button {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.share-actions button:hover {
  transform: scale(1.1) translateY(-2px);
}
.share-actions button:active {
  transform: scale(0.95);
}

#shareBtn,
.share-btn {
  background: rgba(0, 149, 246, 0.9);
  color: white;
}
#shareBtn:hover,
.share-btn:hover {
  background: rgb(0, 149, 246);
  box-shadow: 0 12px 40px rgba(0, 149, 246, 0.4);
}

#copyBtn,
#downloadBtn {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.8);
}
#copyBtn:hover,
#downloadBtn:hover {
  background: rgb(255, 255, 255);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}
.close-btn:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* =============== SOCIAL FOOTER =============== */
.social-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.social-icons a:hover .social-icon {
  transform: scale(1.1);
}

body.light-mode .social-icons a {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .social-icons a:hover {
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .social-icon {
  filter: brightness(0);
}

/* =============== CONTACT OVERLAY =============== */
.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.contact-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-overlay.active .contact-popup {
  transform: translateY(0);
}

.contact-popup {
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 16px 16px;
  padding: 22px;
  width: calc(100% - 40px);
  max-width: 460px;
  margin: 0 auto;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.light-mode .contact-overlay {
  background: rgba(255, 255, 255, 0.5);
}

body.light-mode .contact-popup {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.popup-header {
  margin-bottom: 20px;
}

.popup-title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.popup-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
}

.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.form-input:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.light-mode .popup-title {
  color: rgba(0, 0, 0, 0.9);
}

body.light-mode .popup-subtitle {
  color: rgba(0, 0, 0, 0.6);
}

body.light-mode .form-label {
  color: rgba(0, 0, 0, 0.8);
}

body.light-mode .form-input,
body.light-mode .form-textarea {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.9);
}

body.light-mode .form-input:focus,
body.light-mode .form-textarea:focus {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

body.light-mode .form-input::placeholder,
body.light-mode .form-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

body.light-mode .submit-btn {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.light-mode .submit-btn:hover {
  background: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.light-mode .close-btn {
  color: rgba(0, 0, 0, 0.6);
}

body.light-mode .close-btn:hover {
  color: rgba(0, 0, 0, 0.9);
}

.contact-form {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: "Nunito", sans-serif;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.form-textarea {
  resize: none;
  min-height: 90px;
}

.submit-btn {
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  background: #f0f0f0;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-icon {
  transition: transform 0.3s ease;
}

.submit-btn:hover .submit-icon {
  transform: translateX(4px);
}

.contact-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #222;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .main-container {
    margin: 5rem auto;
  }
  h1 {
    font-size: 1.9rem;
  }
  .lead {
    font-size: 1rem;
  }
  h3 {
    font-size: 0.95rem;
  }
  small {
    font-size: 0.825rem;
  }
  .number-btn,
  .mail-btn,
  .share-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  .social-icons {
    gap: 1.2rem;
  }
  .social-icons a {
    width: 44px;
    height: 44px;
  }
  .social-icon {
    width: 22px;
    height: 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-popup {
    padding: 20px;
    max-height: 80vh;
    width: calc(100% - 32px);
  }
  .form-row {
    gap: 10px;
  }
  .popup-title {
    font-size: 1.3rem;
  }
  .popup-subtitle {
    font-size: 0.8rem;
  }
  .form-input,
  .form-textarea {
    font-size: 0.85rem;
    padding: 9px 12px;
  }
  .submit-btn {
    padding: 11px 18px;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .main-container {
    margin: 3rem auto;
  }
  h1 {
    font-size: 1.7rem;
  }
  .lead {
    font-size: 0.95rem;
  }
  .share-popup {
    padding: 24px;
    margin: 20px;
  }
  .popup-title {
    font-size: 1.25rem;
  }
  .contact-popup {
    padding: 18px;
    max-height: 75vh;
    border-radius: 0 0 12px 12px;
    width: calc(100% - 24px);
  }
  .form-row {
    gap: 8px;
  }
  .popup-header {
    margin-bottom: 14px;
  }
  .popup-title {
    font-size: 1.2rem;
  }
  .popup-subtitle {
    font-size: 0.75rem;
  }
  .form-label {
    font-size: 0.75rem;
  }
  .form-input,
  .form-textarea {
    font-size: 0.85rem;
    padding: 9px 12px;
  }
  .form-textarea {
    min-height: 80px;
  }
  .submit-btn {
    padding: 11px 16px;
    font-size: 0.85rem;
    margin-top: 12px;
  }
  .close-btn {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
    font-size: 16px;
  }
}
/* Copyright */
.copyright {
  display: block;
  width: 100%;
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
  clear: both;
}
/* =============== FLOATING DOWNLOAD BUTTON =============== */
.floating-download-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.floating-download-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-download-btn svg {
  transition: transform 0.3s ease;
}

.floating-download-btn:hover svg {
  transform: scale(1.1);
}

/* Light mode styles */
body.light-mode .floating-download-btn {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-mode .floating-download-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}