h2 {
  text-align: center;
  font: bold;
  font-size: 2rem;
}

.header {
  position: fixed;
  background-color: #c0ffee;
  padding: 1rem 5rem;
  z-index: 50;
  left: 0;
  right: 0;
}

.main {
  padding-top: 4rem;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  margin: auto auto;
}

.nav {
  display: block;
  gap: 2rem;
}

.items {
  display: flex;
  gap: 3rem;
}

.item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.item a:hover {
  color: #555;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1980px;
}

.frame {
  border: 1px solid #dddddd;
  border-radius: 20px;
  padding: 1rem;
  margin: 1rem;
}

.icon {
  max-width: 10rem;
  max-height: 10rem;
  margin: 0 auto;
  border: 1px solid #dddddd;
  border-radius: 50%;
  box-shadow: 0 0 1rem 0.5rem #dddddd;
}

.elements {
  display: flex;
  justify-content: space-around;
  margin: 0 3rem;
}

.works {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.work {
  flex: 1;
  min-width: 250px;
  border: 2px solid #dddddd;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.work:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #c0ffee;
}

.work-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.work-info {
  padding: 1rem;
}

.work-info h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.work-tech {
  font-size: 0.9rem;
  color: #666;
}

.contact-button {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn__contact {
  display: block;
  margin-left: auto;
  font: bold;
  font-size: 1.5rem;
  padding: 0.8rem 2rem;
  background-color: #c0ffee;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn__contact:hover {
  background-color: #a0eecc;
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  margin-top: 2rem;
}

.contact-description {
  text-align: center;
  margin: 1.5rem auto 2rem;
  max-width: 600px;
  line-height: 1.6;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}

.required {
  color: #ff4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #dddddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c0ffee;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  opacity: 1;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.btn__submit {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #c0ffee;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn__submit:hover {
  background-color: #a0eecc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-link {
  color: #c0ffee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #a0eecc;
  text-decoration: underline;
}

.separator {
  margin: 0 1rem;
  color: #666;
}

.copyright {
  font-size: 0.9rem;
  color: #999;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background-color: white;
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-images {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 45vh;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.modal-info h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
  text-align: left;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background-color: #c0ffee;
  color: #333;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-description {
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
  text-align: left;
}

.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.modal-link:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-info h2 {
    font-size: 1.5rem;
  }

  .works {
    flex-direction: column;
  }

  .work {
    min-width: 100%;
  }
}
