/* === RESET & BASE background: #111; === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  font-family: "Averta CY", sans-serif;
  color: black;
  background: white;
  scroll-behavior: smooth;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  color: black;
}
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

h2 {
  font-size: 32px;
  font-family: "Nunito Sans";
  font-weight: 800;
  color: black;
}

p {
  font-size: 18px;
  font-family: "Nunito Sans";
  font-weight: 400;
  color: black;
}

/* === NAV === */

.header {
  background: #2e8791;
  color: #fff;
  padding: 15px 20px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
}

.logo a:hover {
  color: #00e5ff;
}

.logo-github a:hover {
  color: #00e5ff;
}

.burger,
.close {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close {
  display: none;
}

.nav {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #2e8791;
  display: flex;
  flex-direction: column;
  padding: 20px 10px;
  transition: right 0.3s ease;
  z-index: 10;
  text-align: center;
}

.nav ul {
  list-style: none;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 15px 0;
  font-size: 18px;
  gap: 10px;
}

.nav a:hover {
  text-decoration: underline;
  color: #00e5ff;
}

.lang-btn {
  border: 2px solid black;
  padding: 10px 20px;
}

.lang-btn:hover {
  background: white;
  color: black;
  border: none;
}

/* overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #444;
  opacity: 30%;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav.active {
  right: 0;
}

/* === PROJECTS === */

.projects {
  color: black;
  padding: 60px 20px;
}

.projects-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: #fcfcfc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #2e8791;
}

.project-content p {
  font-size: 14px;
  color: black;
  margin-bottom: 15px;
}

.tags {
  margin-bottom: 15px;
}

.tags span {
  display: inline-block;
  background: #2e8791;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 3px;
}

.links {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.links a {
  color: black;
  font-size: 20px;
  text-decoration: none;
}

.links a:hover {
  color: #2e8791;
}

/* === FILTER === */

.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 16px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: #2e8791;
  color: #fff;
}
.project-card {
  display: block;
  transition: 0.3s;
}
.project-card.hide {
  display: none;
}

/* === SERVICE === */

.services {
  color: black;
  padding: 60px 20px;
  text-align: center;
}

.services-title {
  font-size: 28px;
  margin-bottom: 40px;
  margin-top: 15px;
}

.service-subtitle {
  font-size: 20px;
  margin-bottom: 20px;
}

.services-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.services-image {
  flex: 1 1 40%;
}

.services-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.services-list {
  flex: 1 1 50%;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-text h3 {
  font-size: 24px;
  margin: 0;
  text-align: left;
  color: white;
}

.service-text p {
  font-size: 18px;
  margin: 4px 0 0;
  opacity: 0.8;
  text-align: left;
}

.service-price {
  font-weight: bold;
  font-size: 18px;
  white-space: nowrap;
  color: white;
}

/* === CONTACT === */

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 50px;
}

.contact-form,
.contact-info {
  flex: 1 1 45%;
  min-width: 300px;
  gap: 5px;
}

.info-title .red-text {
  margin-top: 10px;
}

.info-text p {
  font-size: 20px;
  margin-top: 30px;
}

.gradient-text {
  background: linear-gradient(90deg, orange, red);
}

.red-text {
  color: #ff3333;
}

form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
}

textarea {
  min-height: 120px;
}

.btn-submit {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  color: #00e5ff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  opacity: 0.8;
  color: black;
  background: white;
}

/* === FOOTER === */

.footer {
  padding: 40px 20px;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer .socials {
  display: flex;
  gap: 30px;
}

.footer .socials a {
  color: #2e8791;
  font-size: 24px;
  transition: color 0.3s;
}

.footer .socials a:hover {
  color: #00e5ff;
}

.footer h2 {
  color: black;
}

.footer p {
  font-size: 14px;
  color: black;
}

.socials svg {
  font-size: 24px;
  color: #2e8791;
  transition: color 0.3s;
}

.socials svg:hover {
  color: #00e5ff;
}

/* === RESPONSIVE === */

/* Large screens (1200px) */
@media (max-width: 1200px) {
  h2 {
    font-size: 28px;
  }
  p {
    font-size: 16px;
  }
  .projects-grid {
    gap: 20px;
  }
  .services-content {
    gap: 30px;
  }
}

/* Tablets (992px) */
@media (max-width: 992px) {
  .nav {
    width: 220px;

    display: flex;
    text-align: center;
  }
  .services-content {
    flex-direction: column;
    align-items: center;
  }
  .services-image,
  .services-list {
    flex: 1 1 100%;
  }
  .service-text h3 {
    font-size: 20px;
  }
  .service-text p {
    font-size: 16px;
  }
  .service-price {
    font-size: 16px;
  }
}

/* Mobile landscape (768px) */
@media (max-width: 768px) {
  .logo a {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 24px;
  }
  p {
    font-size: 14px;
  }
  .projects {
    padding: 40px 10px;
  }
  .projects-title {
    font-size: 22px;
  }
  .filter-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  .project-content {
    padding: 15px;
  }
  .project-content h3 {
    font-size: 16px;
  }
  .project-content p {
    font-size: 13px;
  }
  .tags span {
    font-size: 11px;
    padding: 4px 8px;
  }
  .contact-grid {
    flex-direction: column;
    gap: 20px;
  }
  .contact-form,
  .contact-info {
    flex: 1 1 100%;
  }
  .services-title {
    font-size: 24px;
  }
  .service-subtitle {
    font-size: 18px;
  }
}

/* Small mobile (576px) */
@media (max-width: 576px) {
  h2 {
    font-size: 20px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .project-content h3 {
    font-size: 14px;
  }
  .project-content p {
    font-size: 12px;
  }
  .links {
    flex-direction: column;
    gap: 10px;
  }
  .links a {
    font-size: 12px;
  }
  .footer .socials {
    gap: 15px;
  }
}

/* Extra small devices (400px) */
@media (max-width: 400px) {
  .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-btn {
    width: 100%;
    text-align: center;
  }
  .project-content {
    padding: 10px;
  }
  .service-text h3 {
    font-size: 18px;
  }
  .service-text p {
    font-size: 14px;
  }
  .service-price {
    font-size: 14px;
  }
}
