/* CSS Variables para tema escuro */
:root {
  --bg-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --bg-secondary: rgba(0, 0, 0, 0.1);
  --text-primary: #fff;
  --text-secondary: #ccc;
  --card-bg: rgba(0, 0, 0, 0.2);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(0, 0, 0, 0.3);
  --icon-color: #fff;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Aurora Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at calc(20% + var(--mouse-x, 0) * 20px) calc(20% + var(--mouse-y, 0) * 20px), rgba(0, 255, 135, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at calc(80% + var(--mouse-x, 0) * -20px) calc(80% + var(--mouse-y, 0) * -20px), rgba(0, 153, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at calc(50% + var(--mouse-x, 0) * 10px) calc(50% + var(--mouse-y, 0) * 10px), rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at calc(30% + var(--mouse-x, 0) * -10px) calc(70% + var(--mouse-y, 0) * -10px), rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  z-index: -2;
  animation: auroraShift 15s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: -1;
  animation: patternFloat 20s linear infinite;
}

@keyframes auroraShift {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 30% 70%;
    filter: hue-rotate(0deg);
  }
  50% {
    background-position: 100% 100%, 0% 0%, 80% 20%, 70% 30%;
    filter: hue-rotate(10deg);
  }
  100% {
    background-position: 50% 50%, 50% 50%, 20% 80%, 80% 20%;
    filter: hue-rotate(20deg);
  }
}

@keyframes patternFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Main Container */
.main {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* Header */
.header {
  margin-bottom: 40px;
  text-align: center;
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Navigation */
.nav__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}

.card-group {
  margin-top: 2rem;
}

.card-group__title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 0.75rem;
}

.nav__item {
  display: flex;
}

@media (min-width: 768px) {
  .nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nav__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 180px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.card__thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card__thumbnail--linkedin { color: #0077b5; }
.card__thumbnail--youtube { color: #ff0000; }
.card__thumbnail--instagram { background: var(--bg-secondary); color: #e1306c; }
.card__thumbnail--facebook { color: #1877f2; }
.card__thumbnail--github { color: #fff; }
.card__thumbnail--portfolio { color: var(--icon-color); }

.card__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.card__description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Responsividade */
@media (max-width: 768px) {
  .header__title {
    font-size: 2rem;
  }

  .card {
    flex-direction: column;
    text-align: center;
  }

  .card__thumbnail {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .card__content {
    text-align: center;
  }
}
