* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f0f;
  --bg-card: #262626;
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dark: #52525b;
  --border: #27272a;
  --border-light: #3f3f46;
  --accent: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.015) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.01) 0%, transparent 50%);
  animation: bgMove 30s ease-in-out infinite;
}

@keyframes bgMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3%, -3%) rotate(3deg); }
}

.bg-shape {
  position: absolute;
  border: 1px solid var(--border-light);
  opacity: 0.05;
  animation: floatBase 20s ease-in-out infinite;
}

.bg-shape.circle {
  width: 350px;
  height: 350px;
  top: 5%;
  left: -5%;
  border-radius: 50%;
}

.bg-shape.square {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: -3%;
  animation-delay: -5s;
}

.bg-shape.triangle {
  width: 0;
  height: 0;
  top: 20%;
  right: 15%;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--border-light);
  opacity: 0.03;
  animation-delay: -10s;
}

@keyframes floatBase {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(5deg); }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2rem 3rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 1.5rem));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.card-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}



.name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
}

.title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.person {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 1.25rem;
}

.location {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.location i {
  font-size: 0.85rem;
  transition: color 0.3s;
}

.location:hover i,
.location:active i {
  color: #fb7185;
}

.links {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.section-divider {
  display: block;
  height: 1px;
  background: #333;
  opacity: 0.15;
  margin: 1.5rem 0;
  width: 100%;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1.25rem;
  line-height: 1;
  background: #e5e5e5;
  border: 1px solid #333333;
  border-radius: 0;
  color: #333333;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.links .link-btn:first-child {
  border-radius: 8px 8px 0 0;
}

.links .link-btn:last-child {
  border-radius: 0 0 8px 8px;
}

.link-btn:active {
  transform: scale(0.98);
}

.link-btn .btn-icon {
  width: 2rem;
  height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0);
}

.link-btn i:first-child {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
  font-weight: 300;
  transition: all 0.3s;
}

.link-btn span {
  flex: 1;
  text-align: left;
}

.link-btn .arrow {
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  transition: all 0.3s;
}

.whatsapp:hover,
.whatsapp:active {
  border-color: #1da851;
  background: #d0d0d0;
}

.whatsapp:hover i:first-child,
.whatsapp:active i:first-child {
  color: #1da851;
}

.whatsapp:hover .arrow,
.whatsapp:active .arrow {
  color: #1da851;
}

.instagram:hover,
.instagram:active {
  border-color: #C13584;
  background: #d0d0d0;
}

.instagram:hover i:first-child,
.instagram:active i:first-child {
  color: #C13584;
}

.instagram:hover .arrow,
.instagram:active .arrow {
  color: #C13584;
}

.linkedin i:first-child {
  font-weight: 700;
}

.linkedin:hover,
.linkedin:active {
  border-color: #0A66C2;
  background: #d0d0d0;
}

.linkedin:hover i:first-child,
.linkedin:active i:first-child {
  color: #0A66C2;
}

.linkedin:hover .arrow,
.linkedin:active .arrow {
  color: #0A66C2;
}

.email:hover,
.email:active {
  border-color: #d97706;
  background: #d0d0d0;
}

.email:hover i:first-child,
.email:active i:first-child {
  color: #d97706;
}

.email:hover .arrow,
.email:active .arrow {
  color: #d97706;
}

.vcard i:first-child {
  font-weight: 500;
}

.vcard:hover,
.vcard:active {
  border-color: #333333;
  background: #d0d0d0;
}

.vcard:hover i:first-child,
.vcard:active i:first-child {
  color: #333333;
}

.vcard:hover .arrow,
.vcard:active .arrow {
  color: #333333;
}

.website:hover,
.website:active {
  border-color: #333333;
  background: #d0d0d0;
}

.website:hover .arrow,
.website:active .arrow {
  color: #333333;
}

.coming-soon {
  font-size: 0.6rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv:hover,
.cv:active {
  border-color: #333333;
  background: #d0d0d0;
}

.cv:hover .arrow,
.cv:active .arrow {
  color: #333333;
}

.sketch:hover,
.sketch:active {
  border-color: #333333;
  background: #d0d0d0;
}

.sketch:hover i:first-child,
.sketch:active i:first-child {
  color: #333333;
}

.sketch:hover .arrow,
.sketch:active .arrow {
  color: #333333;
}

.overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f5f5f5;
  color: #1a1a1a;
  text-align: center;
  padding: 1.5rem 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 1.5rem));
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 10;
}

.overlay.show {
  transform: translateY(0);
}

.overlay-icon {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}

.overlay-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.overlay-text {
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 500;
}

@media (max-width: 480px) {
  .card {
    padding: 2rem 1.5rem;
  }

  .logo-icon {
    width: 64px;
    height: 64px;
  }

  .name {
    font-size: 1.25rem;
  }

  .location i {
    color: #ffffff;
  }

  .location:hover i,
  .location:active i {
    color: #fb7185;
  }

  .link-btn {
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
  }

  .bg-animation::before {
    animation: bgMove 20s ease-in-out infinite;
  }

  .bg-shape {
    animation-duration: 15s;
  }

  .bg-shape.circle {
    width: 250px;
    height: 250px;
  }

  .bg-shape.square {
    width: 150px;
    height: 150px;
  }

  .bg-shape.triangle {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid var(--border-light);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-animation::before,
  .bg-shape,
  .link-btn {
    animation: none;
    transition: none;
  }

  .link-btn:hover {
    transform: none;
  }

  .link-btn:hover i:first-child {
    transform: none;
  }

  .link-btn:hover .arrow {
    transform: none;
  }
}
