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

body {
  font-family: "Roboto", sans-serif;
  color: #ccc; /* Change to lighter color for better contrast */
  line-height: 1.6;
  background-color: #121212; /* Dark background for dark theme */
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

a {
  color: #ccc; /* Lighter link color */
  text-decoration: none;
}

a:hover {
  color: #1abc9c; /* Teal for hover */
}

/* Navigation */
nav {
  background: #000000; /* Darker navigation bar */
  color: #fff;
  padding: 12px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  padding: 15px 10px;
}

nav ul li a:hover {
  background: #fff;
  color: #1abc9c;
  border-radius: 5px;
}

/* Header */
#header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("header-bg.jpg") no-repeat center center/cover;
  height: 100vh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#header .header-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow for better visibility */
}

#header .header-content h1 span {
  color: #1abc9c;
}

#header .header-content p {
  font-size: 2rem;
  margin-bottom: 30px;
}
@media (max-width: 600px) {
  #header .header-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
  }

  #header .header-content p {
    font-size: 1.7rem;
  }
}
#header .header-content .btn {
  background: #1abc9c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  transition: background 0.3s;
}

#header .header-content .btn:hover {
  background: #fff;
  color: #1abc9c;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.section p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  background: #1abc9c;
  color: #fff;
  padding: 5px 20px;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #333;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 16rem;
  display: block;
}

.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.8
  ); /* Darker overlay for better text visibility */
  color: #fff;
  display: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.portfolio-item .overlay p {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.skill i {
  font-size: 2.5rem;
  color: #1abc9c;
  margin-bottom: 10px;
}

.skill h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.skill-bar {
  background: #333;
  border-radius: 5px;
  overflow: hidden;
  height: 10px;
}

.skill-level {
  height: 10px;
  background: #1abc9c;
  border-radius: 5px;
}

/* Experience */
.timeline {
  border-left: 3px solid #1abc9c;
  margin-left: 30px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  padding-left: 20px;
}

.timeline-item h3 {
  margin-bottom: 5px;
  font-size: 24px;
}

.timeline-item span {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

.timeline-item p {
  font-size: 16px;
  line-height: 1.6;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: #1abc9c;
  border-radius: 50%;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #333;
  border-radius: 5px;
  background: #222; /* Dark input background */
  color: #fff;
}
.contact-form textarea {
  padding: 30px;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  background: #1abc9c;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #333;
}

.social-links {
  text-align: center;
  margin-top: 20px;
}

.social-links a {
  margin: 0 10px;
  font-size: 24px;
  color: #ccc;
}

.social-links a:hover {
  color: #1abc9c;
}

/* Footer */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
}
/* Certificate Section Styling */
#certificate {
  padding: 50px 0;
}

#certificate h2 {
  margin-bottom: 20px;
}

.certificate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.certificate-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
}

.certificate-content p {
  max-width: 600px;
  margin: 0 auto;
}

.profile-img {
  width: 16rem; /* Adjust as needed */
  height: 16rem; /* Adjust as needed */
  border-radius: 50%; /* Makes the image circular */
  margin-bottom: 1rem; /* Space between the image and the text */
  margin-top: 4rem;
}
.container .profile-img {
  width: 4rem;
  height: 4rem;
  margin-bottom: 0%;
  margin-top: 0%;
}
#about {
  text-align: center;
}
/* General styling for the small navigation */
.small_nav {
  display: none; /* Hidden by default */
  position: fixed;
  right: 0;
  top: 0;
  width: 50vw;
  height: 100%;
  background: #0b0e11; /* Adjusted to match the dark background */
  padding: 2rem;
  padding-left: 1rem;
  z-index: 1001;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
}

.small_nav a {
  color: #1abc9c; /* Use the green accent for link text */
  text-align: left;
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
  padding: 1rem;
  text-decoration: none; /* Remove underline from links */
  display: block;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.small_nav a:hover {
  color: #ccc; /* Lighten the color on hover */
}

.side_nav_links {
  list-style: none;
  padding: 0;
}

.menu-icon {
  font-size: 30px;
  cursor: pointer;
  color: #1abc9c; /* Green accent color */
}

.show_menu {
  display: none;
  justify-content: space-between;
  padding: 1rem;
  height: 4rem;
}

#close_icon {
  font-size: 2.5rem;
  color: #1abc9c; /* Green accent for close icon */
  margin-left: 40vw; /* Push the close icon to the right */
  cursor: pointer;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

#close_icon:hover {
  color: #ccc; /* Lighten the color on hover */
}

/* Responsive styling */
@media (max-width: 768px) {
  .show_menu {
    display: flex;
  }
  .large_nav {
    display: none;
  }
}
@media (min-width: 769px) {
  .show_menu {
    display: none;
  }
  .small_nav {
    display: none;
  }
}
@media (max-width: 450px) {
  .small_nav {
    width: 60vw;
  }
}
