@import url("./header.css");
@import url("./prop.css");
@import url("./usl.css");
@import url("./exp.css");
@import url("./skills.css");
@import url("./footer.css");

:root {
  --background: #e9f4fd;
  --text-primary: #0a1f40;
  --text-secondary: #51677e;
  --accent: #0879d1;
  --accent-dark: #075da1;
  --line: #a9d0f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  background-color: var(--background);
  color: var(--text-primary);

  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-title {
  margin: 0;

  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-title::after {
  display: block;

  width: 64px;
  height: 2px;
  margin-top: 12px;

  background-color: var(--accent);

  content: "";
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .section-title {
    font-size: 30px;
  }
}

.project-contact {
  position: relative;
  z-index: 5;

  width: max-content;
  margin-top: 25px;
}

.project-contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 20px;

  border: 1px solid var(--accent);
  border-radius: 13px;

  background-color: var(--accent);
  color: #ffffff;

  box-shadow: 0 5px 14px rgba(8, 121, 209, 0.15);

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-contact__button:hover {
  border-color: var(--accent-dark);
  background-color: var(--accent-dark);

  box-shadow: 0 8px 18px rgba(8, 121, 209, 0.2);
}

.project-contact__button:active {
  transform: scale(0.98);
}

.project-contact__options {
  position: absolute;
  top: 0;
  left: calc(100% + 9px);

  display: flex;
  gap: 8px;

  opacity: 0;
  visibility: hidden;

  transform: translateX(-15px);

  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}

.project-contact__options::before {
  position: absolute;
  top: 0;
  right: 100%;

  width: 10px;
  height: 100%;

  content: "";
}

.project-contact:hover .project-contact__options,
.project-contact:focus-within .project-contact__options,
.project-contact.is-open .project-contact__options {
  opacity: 1;
  visibility: visible;

  transform: translateX(0);

  pointer-events: auto;

  transition-delay: 0s;
}

.project-contact__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 14px;

  border: 1px solid rgba(8, 121, 209, 0.35);
  border-radius: 12px;

  background-color: rgba(239, 248, 255, 0.95);
  color: var(--accent-dark);

  box-shadow: 0 5px 14px rgba(22, 68, 110, 0.08);

  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-contact__option:hover {
  background-color: var(--accent);
  color: #ffffff;

  box-shadow: 0 7px 16px rgba(8, 121, 209, 0.18);

  transform: translateY(-2px);
}

.project-contact__button:focus-visible,
.project-contact__option:focus-visible {
  outline: 3px solid rgba(8, 121, 209, 0.3);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .project-contact__button,
  .project-contact__option {
    min-height: 42px;

    font-size: 12px;
  }

  .project-contact__button {
    padding: 0 14px;

    border-radius: 11px;
  }

  .project-contact__option {
    padding: 0 10px;

    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-contact__button,
  .project-contact__options,
  .project-contact__option {
    transition: none;
  }
}