* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  overflow-x: hidden;
}
#backToTopBtn {
  display: none;
}
.main {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  height: 100vh;
  z-index: 100;
  overflow: scroll;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3398db;
  margin-bottom: 1.5rem;
  transition: transform 0.5s;
}
.profile-img:hover {
  transform: scale(1.1);
}

.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  text-shadow: 0px 2px 3px #3398db;
}

.sidebar p {
  font-style: italic;
  color: #bdc3c7;
  margin-bottom: 2rem;
  text-align: center;
}
#hidden-button {
  display: none;
}

/* Uniform Navigation Buttons */
.nav-menu {
  width: 100%;
  margin-top: 1rem;
}

.nav-item {
  margin-bottom: 0.8rem;
  list-style: none;
  display: flex;
  justify-content: center;
}

.nav-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-align: center;
  width: 140px;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  box-shadow: 0px 4px 6px #3398db;
}

.nav-link:hover {
  background-color: #3498db;
  transform: translateX(5px);
  box-shadow: 0px 0px 0px #3398db;
}

.copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #bdc3c7;
  margin-top: auto;
}

/* Main Content Styles */
.main-content {
  margin-left: 250px;
  padding: 3rem;
  flex: 1;
  background-color: #ecf0f1;
}

section {
  min-height: 100vh;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Home Section */
#home {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("bg_img.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
}

#home h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0px 4px 6px #3398db;
}

#home p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
#resume {
  color: white;
}

#resume:hover {
  color: blue;
  cursor: pointer;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}
nav {
  display: flex;
  flex-direction: row;

  justify-self: right;
  gap: 20px;
}
nav a {
  text-decoration: none;
  color: white;
}
.fa {
  padding: 10px;
  border-radius: 50%;
  border: 1px solid white;
  width: 35px;
  text-align: center;
  margin-top: 5px;
  box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.5);
  transition: transform 0.5s;
}
.fa:hover {
  transform: scale(1.1);
}
nav > a.fa.fa-linkedin {
  background-color: #0077b5;
}
nav > a.fa.fa-facebook {
  background-color: #3b5998;
}
nav > a.fa.fa-github {
  background-color: black;
}
/* About Section */
#about {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #3498db;
}
.educationtitle {
  font-size: 2rem;

  margin-top: 1.5rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 0.5rem;
}
.educationtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #3498db;
}
.education {
  height: 50vh;

  display: grid;
  grid-template-columns: 1fr 1fr;
}
.uniCard {
  display: flex;
  flex-direction: column;
  margin: 20px;

  /* width: 40%; */

  /* background: white; */
  /* background-color: #2c3e50;
  color: white; */
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  box-shadow: 0px 4px 6px #3398db;
  transition: transform 0.3s;
  font-size: 1rem;
  /* color: #2c3e50; */
  text-align: center;
  padding-bottom: 0.5rem;
  padding-top: 20px;
}
.uniCard h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}
.uniCard:hover {
  transform: translateY(-10px);
}

.uniCard .description {
  padding: 10px;
  text-align: justify;
}
/*/////////////////////////////////services////////////////////////////////*/
#services {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  height: 90vh;
}
.servicecard {
  background: white;
  border-radius: 8px;

  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  box-shadow: 0px 4px 6px #3398db;
  transition: transform 0.3s;

  text-align: center;
  padding: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.servicecard:hover {
  transform: translateY(-10px);
}
.servicecard a {
  padding: 10px;
  text-decoration: none;
  color: white;
  background-color: #2c3e50;
  box-shadow: 0px 4px 6px #3398db;
  border-radius: 8px;
  width: fit-content;
  align-self: center;
  transition: transform 0.3s;
}
.servicecard a:hover {
  background-color: #2c3e50;
  transform: scale(1.2);
}
.servicecard h2 {
  color: #2c3e50;
}
/* experience ///////////////////////////////////////////////////////////////////////*/
#experience {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: auto;
}
.experiencCard {
  /* background-color: #2c3e50;
  color: white; */
  border-radius: 8px;
  box-shadow: 0px 4px 6px #3398db;
  padding: 10px;
  transition: transform 0.3s;
  height: fit-content;
}
.experiencCard:hover {
  transform: translateY(-10px);
}
.experiencCard a {
  display: block;
  padding: 0px;
  transition: transform 0.3s;
  text-align: right;
  /* text-decoration: none; */
}
.experiencCard a:hover {
  color: black;
  text-shadow: 0px 4px 6px #3398db;
}
.experiencCard h3 {
  margin-bottom: 5px;
  color: #2c3e50;
}
/* Projects Section */
#projects {
  background-color: #f9f9f9;
  border-radius: 8px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  box-shadow: 0px 4px 6px #3398db;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.2rem;
  margin: 10px;
  color: #2c3e50;
}

.project-desc {
  color: #7f8c8d;
  margin-bottom: 15px;
}

.project-link {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

/* Contact Section */
#contact {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-container {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #3498db;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #2980b9;
}
#form-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

#form-status.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* #backToTopBtn {
    display: none;
    
  }
  #backToTopBtn {
    
  }
  #backToTopBtn.show {
    display: block;
    opacity: 1;
  } */
  section{
    min-height: auto;
  }
  #backToTopBtn {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #00d4ff;
    cursor: pointer;
    opacity: 1;
    font-size: 30px;
    padding: 5px;
    border: none;
    padding-bottom: 0%;
  }
  #backToTopBtn a {
    text-decoration: none;
  }
  .main {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 85%;
    height: auto;
    margin-left: 2rem;
    margin-right: 2rem;

    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  #hidden-button {
    display: inline;
    background-color: #0077b5;
    color: white;
    padding: 5px;
    border: none;
    border-radius: 8px;
  }
  .hidden-menu {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .nav-link {
    width: 160px;
    padding: 0.8rem;
  }
  .education {
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr;
  }
  .services {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    height: auto;
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  #home h1 {
    font-size: 2.5rem;
  }
  #form-status {
    margin-top: 10px;
    font-size: 0.9rem;
  }
}


