:root {
  --primary: #c40000;
  --bg-body: #050505;
  --bg-card: #0f0f0f;
  --text-main: #ffffff;
  --text-muted: #888888;
  --border: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  background-color: var(--bg-body);
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text-main);
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.contact-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 6rem);
  gap: clamp(4rem, 6vw, 8rem);
  align-items: center;
}

.identity-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  z-index: 2;
}

.headline {
  font-size: clamp(3.5rem, 5vw + 1rem, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-wrap: balance;
}

.highlight {
  color: var(--primary);
}

.profession-text {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profession-text::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.intro-text {
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 45ch;
  text-wrap: pretty;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #00ff66;
  font-weight: 500;
  background: rgba(0, 255, 102, 0.05);
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  border: 1px solid rgba(0, 255, 102, 0.1);
}

.dot {
  width: 8px;
  height: 8px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.contact-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s ease,
    background-color 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.contact-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.card-icon {
  font-size: 3rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.arrow-mini {
  font-size: 2rem;
  color: var(--border);
  transform: rotate(-45deg);
  transition: 0.3s;
}

.card-info {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.card-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 1.3rem;
  color: var(--text-muted);
}

@media (hover: hover) {
  .contact-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    background-color: #121212;
  }

  .contact-card:hover .card-icon {
    color: var(--text-main);
  }

  .contact-card:hover .arrow-mini {
    color: var(--text-main);
    transform: rotate(0deg);
  }

  .contact-card.wa:hover .card-icon {
    color: #25d366;
  }

  .contact-card.ig:hover .card-icon {
    color: #e1306c;
  }

  .contact-card.tk:hover .card-icon {
    color: #00f2ea;
  }

  .contact-card.mail:hover .card-icon {
    color: var(--primary);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (max-width: 1100px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 5rem;
    padding: 6rem 4rem;
    text-align: center;
    justify-items: center;
  }

  .identity-section {
    align-items: center;
    max-width: 800px;
  }

  .intro-text {
    text-align: center;
  }

  .methods-grid {
    max-width: 700px;
  }
}

@media (max-width: 600px) {
  .contact-layout {
    padding: 3rem 2rem;
    gap: 4rem;
  }

  .headline {
    font-size: 3.6rem;
  }

  .methods-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    height: auto;
    min-height: 80px;
    flex-direction: row;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    text-align: left;
  }

  .card-top {
    width: auto;
  }

  .card-icon {
    font-size: 2.4rem;
    margin: 0;
  }

  .arrow-mini {
    display: none;
  }

  .card-info {
    flex: 1;
    align-items: flex-start;
  }

  .card-title {
    font-size: 1.7rem;
    margin-bottom: 0.2rem;
  }
}
