@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&display=swap');

:root {
  --primary-color: #EC5868;
  --primary-hover: #d63d4d;
  --background-dark: #1c1c1c;
  --card-bg: #2a2a2a;
  --text-color: #fff;
  --text-secondary: #b3b3b3;
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
}

body {
  color: var(--text-color);
}

.hdr {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.title {
  font-size: clamp(2rem, calc(1.5rem + 2vw), 3.5rem);
  text-align: center;
  margin: 0;
  animation: fadeInDown 1s ease-in-out;
  color: var(--text-color);
}

button {
  position: relative;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.875rem, calc(0.75rem + 0.5vw), 1rem);
  font-weight: 600;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

button::before {
  content: '🌙';
  font-size: 1.2em;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

button:hover {
  color: var(--text-color);
  border-color: var(--primary-hover);
  box-shadow: 0 5px 15px rgba(236, 88, 104, 0.2);
}

button:hover::before {
  transform: rotate(360deg);
}

button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

button:active {
  transform: scale(0.95);
}

/* [Rest of the CSS remains the same] */
.card__block {
  width: 90%;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  color: var(--text-color);
  animation: slideUp 1s ease-in-out;
  overflow: hidden;
}

.card__photo {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(236, 88, 104, 0.15);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.card__photo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6),
    0 3px 12px rgba(236, 88, 104, 0.2);
}

.card__title {
  font-size: clamp(1.75rem, calc(1.5rem + 1vw), 2.5rem);
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-in-out;
  color: var(--text-color);
}

.card__text {
  font-size: clamp(0.875rem, calc(0.75rem + 0.5vw), 1.125rem);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease-in-out;
  color: var(--text-secondary);
}

.desc_1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeIn 1.2s ease-in-out;
}

.card__learning,
.card__contact,
.card__portfolio {
  background-color: rgba(42, 42, 42, 0.8);
  padding: 2rem;
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card__learning::before,
.card__contact::before,
.card__portfolio::before {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.card__learning::before {
  content: '📚';
}

.card__contact::before {
  content: '📫';
}

.card__portfolio::before {
  content: '💼';
}

.card__learning:hover,
.card__contact:hover,
.card__portfolio:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card__subtitle {
  font-size: clamp(1.25rem, calc(1rem + 1vw), 1.75rem);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.card__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: clamp(0.875rem, calc(0.75rem + 0.5vw), 1rem);
  text-align: center;
  color: var(--text-secondary);
}

.card__list li {
  margin-bottom: 1rem;
  transition: transform var(--transition-speed) ease;
}

.card__link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding: 0.25rem 0;
}

.war {
  margin-top: 4rem;
  text-align: center;
  font-size: clamp(1rem, calc(0.875rem + 0.5vw), 1.25rem);
  animation: pulse 2s infinite;
  color: var(--text-secondary);
}

.contact-text {
  line-height: 2.2;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  body {
    padding: 2rem;
    font-family: 'Rubik', sans-serif;
  }

  .hdr {
    padding: 0 2rem;
    margin-bottom: 3rem;
  }

  .title {
    font-weight: 700;
  }

  .title span {
    color: var(--primary-color);
    position: relative;
  }

  .title span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
  }

  .title:hover span:after {
    transform: scaleX(1);
  }

  .card__block {
    padding: 3rem;
  }

  .desc_1 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hdr {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  button {
    padding: 0.5rem 1rem;
  }

  .card__subtitle::before {
    font-size: 1.5rem;
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}