/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* 
Colors used:
Primary Color (Teal): #348378
Secondary Color (Dark Gray): #2b2b2b
Accent Color (Orange): #e0b354
Background Color: #ffffff
Text Color: #2b2b2b
*/

:root {
  --primary-color: #348378;
  --primary-dark: #2a6b62;
  --secondary-color: #2b2b2b;
  --text-dark: #2b2b2b;
  --text-medium: #444;
  --text-light: #666;
  --text-lighter: #666;
  --border-color: #eee;
  --background-light: #f8f8f8;
  --background-white: #fff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --github-color: #24292e;
  --github-hover: #1a1f23;
  --details-color: #5c6bc0;
  --details-hover: #4a59b0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #2b2b2b;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: #2b2b2b;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #2b2b2b;
}

h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.custom-heading {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #348378;
}

.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.page-header__item {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 200px;
  flex: 0 1 200px;
}

.page-header__item:last-child {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  text-align: right;
}

.navigation-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navigation-list li {
  display: inline-block;
  margin-left: 20px;
}

.navigation-list__item {
  text-decoration: none;
  color: #348378;
  font-weight: 500;
  padding: 5px;
  font-size: 18px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navigation-list__item:hover,
.navigation-list__item:focus {
  color: #2b6357;
  border-bottom: 2px solid #2b6357;
}

.navigation-list__item--active {
  text-decoration: none;
  color: #2b6357;
  font-weight: 600;
  padding: 5px;
  font-size: 18px;
  border-bottom: 2px solid #2b6357;
}

.profile__portrait {
  float: left;
  width: 250px;
  height: auto;
  margin-right: 40px;
  border-radius: 50%;
}

/* Welcome section styling */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-text {
  flex: 1;
}

.welcome-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
  max-width: 600px;
}

.welcome-text-heading {
  font-size: 38px;
  margin-bottom: 5px;
  color: #2b2b2b;
}

.welcome-text-name {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #348378;
  font-weight: 600;
  line-height: 1.3;
}

.welcome-text-subheading {
  font-size: 22px;
  margin-bottom: 20px;
  color: #555;
  font-weight: 500;
}

.welcome-text-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #444;
  max-width: 600px;
}

/* Grid layout for work page */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media all and (max-width: 992px) {
  .grid {
    -ms-grid-columns: 1fr 20px 1fr;
    grid-template-columns: 1fr 1fr;
  }
}

@media all and (max-width: 768px) {
  .grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .welcome-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .profile__portrait {
    float: none;
    margin: 0 auto 30px;
  }

  .navigation-list li {
    margin-left: 15px;
  }

  .navigation-list__item,
  .navigation-list__item--active {
    font-size: 16px;
  }
}

@media all and (max-width: 480px) {
  .navigation-list li {
    margin-left: 10px;
  }

  .navigation-list__item,
  .navigation-list__item--active {
    font-size: 14px;
    padding: 3px;
  }
}

.grid__item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.grid__item p {
  margin: 5px 0;
  line-height: 1.5;
  font-size: 16px;
  color: #333;
}

.grid__item p strong {
  font-size: 16px;
  color: #2b2b2b;
}

.grid__item a {
  color: #357b70;
  text-decoration: none;
  transition: color 0.3s ease;
}

.grid__item a:hover {
  color: #2b6357;
  text-decoration: underline;
}

/* Project specific styling */
.project-hover-image {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  margin-top: auto;
}

.project-links a {
  padding: 6px 10px;
  background-color: #348378;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-size: 14px;
  min-width: 100px;
  text-align: center;
  flex: 1 0 auto;
  max-width: 150px;
}

.project-links a:hover {
  background-color: #2b6357;
  text-decoration: none;
}

/* Специфічні стилі для карток з трьома кнопками */
.grid__item:nth-child(3) .project-links a {
  font-size: 14px;
  padding: 8px 10px;
}

@media all and (max-width: 480px) {
  .project-links {
    flex-direction: column;
    align-items: center;
  }

  .project-links a {
    width: 100%;
    max-width: 200px;
    margin-bottom: 5px;
  }
}

/* Contact page styling */
.contact-info {
  text-align: center;
  max-width: 700px;
  margin: 40px auto 40px;
  padding: 0 20px;
}

.contact-info h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2b2b2b;
  font-weight: 600;
}

.contact-info p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-details {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-details h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #348378;
  font-weight: 600;
  text-align: center;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 15px;
  font-size: 18px;
}

.contact-list a {
  color: #348378;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: #2b6357;
  text-decoration: underline;
}

.contact-adress {
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 20px;
  text-align: center;
}

.contact-adress h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2b2b2b;
  font-weight: 600;
}

.contact-adress p {
  font-size: 17px;
  color: #333;
  margin-bottom: 20px;
}

.contact-adress button {
  background-color: #348378;
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-adress button:hover {
  background-color: #2b6357;
}

/* Footer styling */
.page-footer {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
}

.find-me {
  margin-bottom: 15px;
}

.social.icons {
  display: flex;
  gap: 20px;
}

.icon {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.social-icon-links:hover .icon {
  transform: scale(1.1);
}

/* Back to top button */
.back-to-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
}

.back-to-top-button button {
  background-color: #348378;
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 1;
}

.back-to-top-button button:hover {
  background-color: #2b6357;
}

/* Logo styling */
.logo {
  width: 200px;
  height: auto;
}

/* About page styling */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

.about-content h1,
.about-content h2 {
  text-align: center;
}

.about-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
  text-align: left;
}

.about-intro {
  margin-bottom: 40px;
  text-align: center;
}

/* Style table with better fonts */
.skills-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  margin-right: auto;
}

.skills-table th {
  background-color: #348378;
  color: white;
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #ddd;
  font-weight: 600;
}

.skills-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  line-height: 1.7;
  vertical-align: top;
}

.skills-table tr:nth-child(even) {
  background-color: #f8f8f8;
}

/* Адаптивність для менших екранів */
@media all and (max-width: 500px) {
  .skills-table {
    width: 100%;
    display: block;
    overflow-x: auto;
  }
}

/* Animations */
@keyframes color-change {
  0% {
    fill: #edc655;
  }
  50% {
    fill: #fcffad;
  }
  100% {
    fill: #f76414;
  }
}

/* General button styling */
.button,
.cta-button,
.project-link,
.submit-button {
  display: inline-block;
  background-color: #348378;
  color: white;
  font-weight: 500;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.button:hover,
.cta-button:hover,
.project-link:hover,
.submit-button:hover {
  background-color: #2b6357;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button.secondary,
.cta-button.secondary {
  background-color: transparent;
  border: 1px solid #348378;
  color: #348378;
}

.button.secondary:hover,
.cta-button.secondary:hover {
  background-color: rgba(52, 131, 120, 0.1);
}

/* Адаптивність для малих екранів */
@media all and (max-width: 550px) {
  .button,
  .cta-button,
  .project-link,
  .submit-button {
    padding: 5px 10px;
    font-size: 13px;
  }
}

a {
  color: #357b70;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #2b6357;
}

/* Make main content take available space */
main {
  flex: 1;
  padding: 20px 0 40px;
}

/* Make project links more specific to avoid !important */
.grid__item .project-links a {
  color: white;
  text-decoration: none;
}

.grid__item .project-links a:hover {
  color: white;
  text-decoration: none;
}

.experience-list {
  list-style-type: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: left;
}

.experience-list li {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 5px;
  border-left: 3px solid #348378;
}

.experience-list strong {
  color: #348378;
}

/* Оновлений стиль для заголовка Work */
.work.custom-heading {
  font-size: 32px;
  margin-top: 40px;
  margin-bottom: 30px;
  font-weight: 600;
  color: #2b2b2b;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

/* Загальний стиль для заголовків h1 */
h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #2b2b2b;
}

/* Переконаємося, що всі основні контейнери мають відповідний відступ */
section {
  padding-top: 20px;
}

/* Оновлені стилі для зображень проєктів */
.project-image-container {
  position: relative;
  overflow: hidden;
  height: 180px;
  width: 100%;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-image-container:hover .project-image {
  transform: scale(1.05);
}

/* Оверлей з детальним описом */
.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 131, 120, 0.9);
  color: white;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  display: flex;
  align-items: center;
}

.project-info p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.project-image-container:hover .project-info {
  opacity: 1;
}

/* Стандартизація блоку з описом */
.project-description {
  padding: 15px 20px 5px;
  min-height: 80px;
}

.project-description p {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

/* Стандартизація блоку з технологіями */
.project-tech {
  padding: 5px 20px 15px;
  min-height: 60px;
}

.project-tech p {
  font-size: 15px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

.project-tech strong {
  color: #348378;
}

/* Стандартизація блоку з посиланнями */
.project-links {
  margin-top: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.welcome-text .button {
  font-size: 14px;
  padding: 6px 12px;
  margin-top: 15px;
  width: auto;
  display: inline-block;
}

.github-link {
  background-color: #24292e;
  color: white;
}

.github-link:hover {
  background-color: #1a1f23;
}

.demo-link {
  background-color: #348378;
  color: white;
}

.demo-link:hover {
  background-color: #2a6b62;
}

.details-link {
  background-color: #5c6bc0;
  color: white;
}

.details-link:hover {
  background-color: #4a59b0;
}

/* Адаптивність для різних екранів */
@media all and (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media all and (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
  }

  .button {
    padding: 6px 14px;
    font-size: 15px;
  }
}

/* Спеціальний стиль для скріншоту ChatApp */
img[alt="ChatApp Screenshot"] {
  max-width: 60%;
  object-position: center;
}

/* Зменшуємо відступ між блоком технологій і кнопками */
.grid__item p:last-of-type {
  margin-bottom: 8px;
}

/* Трохи більший відступ для розділення технологій від опису */
.project-info p:nth-child(2) {
  margin-top: 8px;
}

/* Залишаємо риску в заголовках карток проектів */
.grid__item .custom-heading {
  font-weight: 600;
  font-size: 24px;
  color: #2b2b2b;
  text-align: center;
  margin-bottom: 8px;
  min-height: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

/* Стилі для форми контактів */
.contact-form {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #348378;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.standard-label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #2b2b2b;
}

/* Оновлені стилі для всіх полів форми, включаючи поле Name */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="tel"]:focus,
.form textarea:focus {
  border-color: #348378;
  outline: none;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-button,
.form input[type="submit"] {
  background-color: #348378;
  color: white;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 0 auto;
}

.submit-button:hover,
.form input[type="submit"]:hover {
  background-color: #2b6357;
}

/* Стилі для нижнього блоку з адресою */
.contact-footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
}

.contact-footer p {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Стилі для кнопки-посилання */
.button {
  display: inline-block;
  background-color: #348378;
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  margin-top: 15px;
}

.button:hover,
.button:focus {
  background-color: #2b6357;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Уніфікований стиль для всіх головних заголовків замість дублювання */
h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #2b2b2b;
}

/* Заголовки сторінок */
.about-me,
.work,
.contact {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #348378; /* Колір тут для сторінкових заголовків */
}

/* Стилі для заголовків проєктів зберігаємо окремо */
.grid__item h2,
.grid__item h3 {
  font-weight: 600;
  font-size: 24px;
  color: #2b2b2b;
  text-align: center;
  margin-bottom: 8px;
  min-height: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.skills-table strong {
  color: #348378;
  display: inline-block;
  margin-bottom: 5px;
}

/* Стилі для технологій */
.technologies-used {
  margin: 20px 0 30px 0;
  text-align: left;
}

.technologies-list {
  padding-left: 20px;
  list-style-type: none;
  text-align: left;
}

.welcome-intro {
  text-align: center;
  font-size: 20px;
  color: #348378;
  font-weight: 500;
  margin-bottom: 25px;
  width: 100%;
  font-style: italic;
}

@media all and (max-width: 768px) {
  .welcome-intro {
    margin-top: 10px;
  }
}

/* Покращуємо стилі для списків у картках */
.grid__item ul {
  margin: 5px 0;
  line-height: 1.5;
  font-size: 16px; /* Збільшено розмір тексту в списках */
  color: #333;
  text-align: left;
}

.grid__item li {
  margin-bottom: 4px;
}

/* Далі замініть усі кольори на змінні, наприклад: */
.project-title {
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.project-description p {
  color: var(--text-medium);
}

.github-link {
  background-color: var(--github-color);
  color: var(--background-white);
}

.github-link:hover {
  background-color: var(--github-hover);
}

/* Загальні стилі для сторінки About */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: var(--text-medium);
  line-height: 1.6;
}

.about-page h1 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.about-page h2 {
  font-size: 28px;
  color: var(--primary-color);
  margin: 40px 0 20px;
  font-weight: 600;
}

.about-page h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.about-page p {
  margin-bottom: 20px;
  font-size: 17px;
}

/* Вступний текст */
.welcome-intro {
  font-size: 20px;
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 30px;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 60px;
}

.about-header {
  text-align: center;
  margin-bottom: 30px;
}

.about-bio {
  text-align: left;
}

/* Стилі для секції навичок з сіткою */
.skills-section {
  background-color: var(--background-alt);
  padding: 30px 40px 40px;
  border-radius: 8px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  text-align: center;
}

.skills-section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 28px;
}

/* Сітка навичок */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 25px;
  margin-top: 40px;
  justify-items: center;
}

/* Елемент навички */
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  width: 90px; /* Фіксована ширина для рівномірного розташування */
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item img {
  width: 45px;
  height: 45px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.skill-item span {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.3;
}

/* Адаптивність для малих екранів */
@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
  }

  .skill-item {
    width: 80px;
  }

  .skill-item img {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
  }

  .skill-item {
    width: 70px;
  }

  .skill-item img {
    width: 35px;
    height: 35px;
  }

  .skill-item span {
    font-size: 12px;
  }
}

/* Оновлені стилі для секції інтересів зі зменшеними відступами */
.interests-section {
  background-color: var(--background-alt);
  padding: 30px 35px 35px; /* Зменшено верхній відступ */
  border-radius: 8px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  text-align: center;
}

.interests-section h2 {
  margin-top: 0; /* Додано нульовий верхній відступ */
  margin-bottom: 15px; /* Зберігаємо зменшений нижній відступ */
  color: var(--primary-color);
}

.interests-content {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 0; /* Прибираємо верхній відступ контенту */
  text-align: left;
}

.interests-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-medium);
  text-align: left;
  margin-top: 0; /* Забезпечуємо відсутність верхнього відступу параграфа */
}

/* Скориговані стилі для секції "Let's Work Together" */
.cta-section {
  padding: 30px 35px 35px; /* Зменшено верхній відступ */
  background-color: var(--background-alt);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center; /* Центральне вирівнювання для секції */
  margin-bottom: 60px;
}

.cta-section h2 {
  color: var(--primary-color);
  margin-top: 0; /* Відсутність верхнього відступу */
  margin-bottom: 15px;
  text-align: center; /* Заголовок залишається по центру */
}

.cta-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-medium);
  text-align: left; /* Текст абзацу вирівняно по лівому краю */
  max-width: 700px;
  margin: 0 auto 25px; /* Центруємо блок параграфа, але текст залишається по лівому краю */
}

.cta-buttons {
  display: flex;
  justify-content: center; /* Центруємо кнопки */
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-button {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
}

.cta-button:hover {
  background-color: #2a6b62;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/* Адаптивність для малих екранів */
@media screen and (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-button {
    width: auto;
    min-width: 120px;
  }
}

/* Стилі для іконок соціальних мереж у футері */
.social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-media a {
  display: inline-block;
  height: 30px;
  width: 30px;
  transition: transform 0.3s ease;
}

.social-media a:hover {
  transform: scale(1.2);
}

.social-media img {
  height: 100%;
  width: 100%;
}
/* Сучасні стилі для сітки проєктів */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Стилі для карток проєктів */
.project-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Заголовок проєкту */
.project-title {
  padding: 16px 20px;
  margin: 0;
  font-size: 20px;
  color: #2b2b2b;
  text-align: center;
  border-bottom: 1px solid #eee;
}

/* Контейнер для зображення */
.project-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

/* Оверлей при наведенні */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 131, 120, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.project-image-container:hover .project-overlay {
  opacity: 1;
}

.project-details {
  color: white;
}

.project-details p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Опис проєкту */
.project-description {
  padding: 15px 20px;
  flex-grow: 1;
}

.project-description p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* Технології */
.project-tech {
  padding: 0 20px 15px;
}

.project-tech h3 {
  font-size: 16px;
  color: #348378;
  margin: 0 0 5px;
  font-weight: 600;
}

.project-tech p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Посилання */
.project-links {
  padding: 15px 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.project-btn {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 90px;
  text-align: center;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.github-btn {
  background-color: #24292e;
  color: white;
}

.github-btn:hover {
  background-color: #1a1f23;
}

.live-btn {
  background-color: #348378;
  color: white;
}

.live-btn:hover {
  background-color: #2a6b62;
}

.disabled-btn {
  background-color: #ddd;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
  border: none;
}

.disabled-btn:hover {
  background-color: #ddd;
  transform: none;
  box-shadow: none;
}

/* Адаптивність для різних екранів */
@media screen and (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-title {
    font-size: 18px;
    padding: 14px 16px;
  }

  .project-image-container {
    height: 180px;
  }
}

/* Стиль для неактивної кнопки Live Demo */
.disabled-live-btn {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.disabled-live-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

/* Прибираємо ефекти при наведенні для неактивної кнопки */
.disabled-live-btn:hover {
  background-color: #348378;
  transform: none;
  box-shadow: none;
}

/* Покращений стиль для кнопки Discuss Project */
.next-btn {
  background-color: #348378;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-btn:hover {
  background-color: #2a6b62;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(42, 107, 98, 0.3);
}

.next-btn:active {
  transform: scale(0.98);
}

/* Встановлюємо фіксовану мінімальну висоту для блоку технологій у всіх картках */
.project-tech {
  min-height: 80px; /* Налаштуйте значення відповідно до ваших потреб */
  display: flex;
  flex-direction: column;
}

/* Гарантуємо, що блоки посилань будуть вирівняні на одному рівні */
.project-links {
  margin-top: auto;
}

/* Забезпечуємо гнучку структуру для карток */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Опис проєкту може мати різну висоту, але не впливатиме на вирівнювання технологій */
.project-description {
  flex-grow: 1;
}

/* Виправлення проблеми зникнення тексту на кнопках при наведенні */
.project-btn.github-btn:hover,
.project-btn.live-btn:hover,
.project-btn.next-btn:hover,
.project-btn.disabled-live-btn:hover {
  color: white; /* Зберігає білий колір тексту при наведенні */
}

.project-btn.github-btn:active,
.project-btn.live-btn:active,
.project-btn.next-btn:active {
  color: white; /* Зберігає білий колір тексту при натисканні */
}

/* Додатково переконуємось, що відступи та форматування зберігаються */
.project-links .project-btn {
  display: inline-block;
  text-align: center;
  min-width: 90px;
}

/* Покращений стиль для всіх кнопок проєктів */
.project-btn {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 90px;
  text-align: center;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Ефект брижів при натисканні на кнопку */
.project-btn:active:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  animation: ripple 0.5s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(40, 40);
    opacity: 0;
  }
}
