/* ====== GENERAL SECTION ====== */
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  padding-top: 0px;
  font-family: "Geologica", sans-serif;
}

.contact-title,
.message-title {
    color: #000;
    text-align: center;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    margin-top: 60px;
    margin-bottom: 60px;
}

.message-title .accent {
    background: linear-gradient(90deg, #6EC7AE 0%, #162722 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Montserrat;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
}

/* ====== GRID LAYOUT (info + map) ====== */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: start;
  align-content: start;
  margin-top: 40px;
}

.contact-cards {
    display: flex;
    flex-direction: start;
    max-width: 1200px;
    width: 100%;
    gap: 10px;
    padding: 20px;
    border-radius: 30px;
    background: linear-gradient(180deg, #EAEBEA 0%, #C6E6DF 100%);
    position: sticky;
    top: calc(80px + env(safe-area-inset-top)); /* stick below fixed navbar, iOS-safe */
    align-self: start;
    z-index: 3;
    backface-visibility: hidden;
}
@media (max-width: 900px) {
  .contact-cards {
    position: static;
    top: auto;
  }
}

.contact-card {
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(247, 248, 250, 0.70) 0%, rgba(247, 248, 250, 0.35) 100%);
    box-shadow: 0 1px 3px 1px #FFF inset;
    backdrop-filter: blur(2px);
    padding: 20px;
    width: 100%;
}

.contact-card a {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.flag-icon-project {
    width: 21px;
    height: 100%;
    border-radius: 2px;
    object-fit: cover;
    aspect-ratio: 3/2;
  }

/* Animated underline */
.contact-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;          /* a bit below the text */
  width: 0;
  height: 1px;
  background: #264e3f;   /* accent color */
  transition: width 0.3s ease;
}

.contact-card a:hover {
  color: #264e3f; /* text color change on hover */
}

.contact-card a:hover::after {
  width: 100%; /* underline grows in */
}

.card-icon{
    width: 33px;
    height: 33px;
    margin-right: 10px;
}

.card-icon img{
    width: 33px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.05));

}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-text h3 {
    color: #1c1c1e;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 10px;
}

.card-text a {
  display: inline-flex;
  align-items: center;   /* vertical centering */
  gap: 0.5em;            /* space between flag and text */
  text-decoration: none; /* optional: remove underline */
}

.card-text p,
.card-text a,
.card-text address,
.card-text status {
    color: #2c2c30;
    font-family: Geologica;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}


.project-description h2{
    background: linear-gradient(90deg, #6EC7AE 0%, #152823 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
    font-family: Montserrat;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-description p{
    color: #2c2c30;
    font-family: Geologica;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-bottom: 40px;
}

.features-list {
  list-style: none;          /* маха стандартните булети */
  padding: 0;
  margin-bottom: 40px;
}

.features-list li {
  display: flex;             /* иконка + текст подравнени */
  align-items: center;
  margin-bottom: 15px;
  font-family: Geologica;
  font-size: 20px;
  font-weight: 300;
  color: #333;
}

.features-list .check-icon {
  width: auto;               /* колкото искаш размер */
  height: 18px;
  margin-right: 15px;
  flex-shrink: 0;            /* да не се свива */
}


@media (max-width: 1250px) {
    .contact-grid{
        display: grid;
        grid-template-columns: 600px;
        margin: auto;
        margin-top: 20px;
        justify-content: center;
    }
    .contact-cards{
      flex-direction: column;
    }
    .project-description h2{
        text-align: center;
        margin-inline: auto;
        margin-top: 20px;
        max-width: 80%;
    }
}

@media (max-width: 650px) {
    .contact-grid{
        grid-template-columns: 100%;
        justify-content: center;
        gap: 20px;
    }
    .contact-cards{
        padding: 15px;
        border-radius: 30px;
    }
    .card-icon{
        margin-right: 0px;
    }
    .contact-card h3{
        font-size: 22px;
    }
    .contact-card a{
        font-size: 18px;
    }
    .contact-section{
        padding: 20px;
        padding-top: 0px;
    }
    .message-form{
        padding: 20px;
    }
}

@media (max-width: 750px) {
    .form-row{
        flex-direction: column;
    }
}


@media (max-width: 940px) {
    .project-description h2 {
        font-size: 30px;
    }
    .btn{
      font-size: 18px;
    }
}

@media (max-width: 600px) {
    .project-description h2 {
        font-size: 28px;
    }
}

@keyframes floatSoftUp1 {
  0%, 100% { transform: translateY(3px); }
  50%      { transform: translateY(-3px); }
}

@keyframes floatSoftDown1 {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(3px); }
}

@keyframes fadeInOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.contact-title,
.contact-grid,
.contact-cards,
.project-description {
  opacity: 0;
  animation: fadeSlideIn 0.5s ease-out forwards;
}

.contact-cards {
  animation-delay: 0s;
}

.project-description {
  animation-delay: 0.2s;
}
