:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2563eb;
  --accent-color: #3b82f6;
  --text-color: #374151;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --hover-color: #1d4ed8;
  --header-footer-bg: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

header {
  text-align: left;
  margin-bottom: 3rem;
  position: relative;
  padding: 1.5rem 0;
  background: var(--header-footer-bg);
  border-radius: 0 0 30px 30px;
  box-shadow: var(--header-shadow);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  max-height: 250px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-text {
  flex: 1;
}

.avatar-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.avatar {
  width: 200px;
  height: 200px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.avatar:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  -webkit-text-fill-color: var(--primary-color);
  background: none;
  background-clip: initial;
}

.subtitle {
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: -0.2px;
}

.slogan {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

.location {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.header-decoration {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info .contact-card:nth-child(4),
.contact-info .contact-card:nth-child(5),
.contact-info .contact-card:nth-child(6) {
  grid-column: span 1;
}

.contact-card {
  background-color: var(--card-background);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--secondary-color);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--accent-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card i {
  width: 40px;
  height: 40px;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  stroke-width: 1.5;
}

.contact-card:hover i {
  transform: scale(1.1);
  color: var(--accent-color);
}

.contact-card h2 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.2px;
}

.contact-card a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  position: relative;
  padding-bottom: 2px;
}

.contact-card a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--accent-color)
  );
  transition: width 0.3s ease;
  border-radius: 2px;
}

.contact-card a:hover {
  color: var(--accent-color);
}

.contact-card a:hover::after {
  width: 100%;
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--primary-color);
  background: var(--header-footer-bg);
  margin-top: auto;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-card:nth-child(1) {
  animation-delay: 0.1s;
}
.contact-card:nth-child(2) {
  animation-delay: 0.2s;
}
.contact-card:nth-child(3) {
  animation-delay: 0.3s;
}
.contact-card:nth-child(4) {
  animation-delay: 0.4s;
}
.contact-card:nth-child(5) {
  animation-delay: 0.5s;
}
.contact-card:nth-child(6) {
  animation-delay: 0.6s;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header {
    padding: 1rem 0;
    max-height: none;
  }

  .header-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .header-text {
    width: 100%;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .slogan {
    font-size: 0.95rem;
  }

  .location {
    font-size: 0.85rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-info .contact-card:nth-child(4),
  .contact-info .contact-card:nth-child(5),
  .contact-info .contact-card:nth-child(6) {
    grid-column: span 1;
  }

  footer {
    border-radius: 0;
    margin: 2rem -1rem -1rem -1rem;
  }
}
