/* General Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #1c4067;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Sidebar Navigation */

.sidebar {
  height: 100%;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  justify-content: space-evenly;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #1c4067;
  overflow-x: hidden;
  transition: 0.5s ease-in-out;
}

.sidebar a {
  padding: 15px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 1.2rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #2980b9;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  top: 0px;
  float: left;
  background-color: #1c4067;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1001;
  border-radius: 5px;
}

/* Main Content */

.main {
  margin-left: 200px;
  padding: 20px;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
  color: #1c4067;
}

/* Home Section */

.home-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: auto;
  color: black;
}

.btn {
  background-color: #1c4067;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.btn:hover {
  background-color: #2980b9;
}

/* About Section */

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

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

.about-section ul li {
  background: #ecf0f1;
  padding: 10px;
  margin: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 5px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Projects Section */

.projects-section .project {
  background: #ecf0f1;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.projects-section .project a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #1c4067;
  font-weight: bold;
}

.projects-section .project a:hover {
  text-decoration: underline;
}

/* Project Image Styling */
.project img {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.project img:hover {
  transform: scale(1.05);
}

/* Contact Section */

.contact-section {
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
}

.contact-section a {
  color: #1c4067;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-section a:hover {
  text-decoration: underline;
}

footer {
  background: transparent;
  color: white;
  text-align: center;
  padding: 10px 0;
  margin-top: auto;
  margin-left: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* -------------------------
   TABLET - 1024px and below
---------------------------- */
@media screen and (max-width: 1024px) {
  .sidebar {
    width: 100px;
    padding: 15px;
  }

  .main {
    margin-left: 100px;
  }

  .sidebar-toggle {
    display: none;
  }
}

/* -------------------------
   MOBILE - 768px and below
---------------------------- */
@media screen and (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .main {
    margin-left: 0;
    padding: 10px;
  }

  footer {
    margin-left: 0;
  }
}

/* -------------------------
   SMALL MOBILE - 480px and below
---------------------------- */
@media screen and (max-width: 480px) {
  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}