@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@200;300;400;500;600;700;800;900&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #ffffff;
  font-family: "Roboto Slab", serif;
  color: #444444;
  transition: all 2s ease-in-out 0.4s;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  /*color: #a88e8a;*/
  color: #191970;
}

nav .mylogo {
  color: #191970;
  font-weight: 600;
}

nav .mylogo:hover {
  color: #1c86ee;
  text-decoration: underline;
}

.heading {
  background: #ffffff;
  box-sizing: border-box;
  width: 100vw;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  cursor: pointer;
}

.heading li a:hover {
  color: #1c86ee;
  font-weight: 700;
  text-decoration: underline;
}

section {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.title,
.subtitle {
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
}

.title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 2rem);
}

.description {
  font-size: 14px;
}

/* THE PORTFOLIO */

.portfolio .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio .container .box {
  width: 47%;
  min-height: 300px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin: 5px auto;
  padding: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* Stack image and description vertically */
}

.portfolio .container .box:hover {
  transform: translateY(-5px); /* Subtle lift effect on hover */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.box .image-project {
  width: 100%;
  height: 380px;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.portfolio .container .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s ease-out;
  border-radius: 3px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.portfolio .container .box:hover img {
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio .container .box .description {
  width: 100%;
  height: 110px;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 600;
  color: #555555;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* THE FOOTER */

footer {
  background: #ffffff;
  border-top: 1px solid transparent;
  box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.1);
}

footer .icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .icon-container .icon-item {
  border-radius: 50%;
  background-color: rgba(30, 144, 255, 0.6);
  box-shadow: 2px 2px 5px rgba(30, 144, 255, 0.6);
  border: 1px solid rgba(30, 144, 255, 0.6);
  backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .icon-container .icon-item i {
  color: #555555;
}

/*FOR MOBILE VIEW*/

@media screen and (max-width: 560px) {
  section {
    width: 98%;
  }
  .portfolio .container .box {
    width: 100%;
  }
}

/* FOR BIGGER SCREEN VIEW */

@media screen and (min-width: 560px) {
  .navbar-nav {
    margin-left: auto;
    margin-right: auto;
  }

  .navbar-brand {
    padding-left: 15px;
  }
}
