
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: clip;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f0f4f8;
  color: #222;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1e3a5f;
}

.navbar {
  background: #1e3a5f;
  padding: 1em;
  text-align: center;
}

.navbar ul {
  list-style: none;
}

.navbar li {
  display: inline;
  margin: 0 15px;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

.navbar a:hover {
  color: #a8d0e6;
}

.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h1 {
  margin-bottom: 20px;
  color: #1e3a5f;
  font-size: 2em;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.profile {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #1e3a5f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  background: #ffffff;
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(30, 58, 95, 0.1);
}

.project-info {
  padding-right: 10px;
  flex: 1;
}

.project-info h2 {
  margin-bottom: 10px;
  color: #0d47a1;
}

.project-info p {
  color: #333;
}

@media (min-width: 769px) {
  .project {
    flex-direction: row;
    justify-content: space-between;
  }

  .project:nth-child(even) {
    flex-direction: row-reverse;
  }

  .carousel {
    margin-right: 20px;
  }
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  margin-bottom: 20px;
}

.carousel-images {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-images img {
  width: 100%;
  max-width: 500px;
  height: auto;
  flex-shrink: 0;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .carousel-images img {
    width: 500px;
  }
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 58, 95, 0.6);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  z-index: 1;
}

.carousel .prev {
  left: 5px;
}

.carousel .next {
  right: 5px;
}

.carousel button:hover {
  background: rgba(13, 71, 161, 0.8);
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .project {
    flex-direction: column !important;
    text-align: center;
  }

  .project img,
  .project video {
    margin: 0 0 20px 0;
  }
}

#contact {
  text-align: center;
}

#contact a {
  color: #0d47a1;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}
