* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.5;
}

/* Rounded Navbar */
.navbar {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  background: #f1f1f1;
  border-radius: 40px;
  padding: 12px 20px;
}

.navbar ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
}

.navbar li {
  position: relative;
}

.navbar a,
.dropbtn {
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar a:hover,
.dropbtn:hover {
  color: #666;
}

.navbar a.active {
  color: #666;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: normal;
  color: #111;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Header */
.header {
  text-align: center;
  padding: 80px 20px 40px;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
}

.header p {
  font-size: 1rem;
  color: #888;
  margin-top: 10px;
}

/* Project Section */
.project {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 40px auto;
  height: 400px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-text,
.project-image {
  flex: 1;
}

.project-text {
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.project-text h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.project-text p {
  font-size: 0.9rem;
  color: #666;
}

.project-image {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Language Button (bottom-left) */
.lang-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2000; /* stays above content */
}

.lang-btn:hover {
  background: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 8px 12px;
    border-radius: 20px;
  }

  .navbar a,
  .dropbtn {
    font-size: 0.8rem;
  }

  .project {
    height: 250px;
  }

  .project-text h2 {
    font-size: 1rem;
  }

  .project-text p {
    font-size: 0.8rem;
  }
}
