* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background-color: #111;
  color: white;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 50px;
  position: relative;
  flex-direction: column;
  text-align: center;
}

/* Container */
.container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Image Box */
.image-box {
  height: 450px;
  background-color: #ffc107;
  box-shadow: 0px 0px 10px rgba(255, 193, 7, 0.7);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  margin-left: -120px;
}

.image-box img {
  width: 350px;
  padding-top: 80px;
  border-radius: 10px;
}

/* Text Box */
.text-box {
  max-width: 500px;
  margin-left: 20px;
}

.text-box h2 {
  font-size: 43px;
  color: #ffc107;
}

.me {
  font-size: 43px;
  color: #ffffff;
}

.text-box h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

.text-box p {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #bbb;
}

/* Button */
.btn {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #ffc107;
  transition: all 0.3s ease;
  position: relative;
  margin-top: 30px;
}

/* Button with About Me Icon */
.btn-aboutme {
  position: absolute;
  right: -1px;
  top: -1px;
  bottom: 0;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 19px;
  color: #ffffff;
  border-radius: 50%;
  min-height: 100%;
}

.aboutme {
  margin-left: 8px;
}

.btn:hover {
  background-color: #ffc107;
  color: black;
  transition: 0.3s ease-in-out;
}

/* Responsive Design */

/* For tablets and smaller screens */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .image-box {
    margin-left: 0;
    height: auto;
    width: 90%;
    padding: 10px;
  }

  .image-box img {
    width: 100%;
    padding-top: 0;
  }

  .text-box {
    margin-left: 0;
    text-align: center;
  }

  .text-box h2,
  .me {
    font-size: 40px;
  }

  .text-box h1 {
    font-size: 2rem;
  }

  .text-box p {
    font-size: 1rem;
  }
}

/* For mobile phones */
@media (max-width: 768px) {
  .hero {
    padding: 20px;
    height: auto;
  }

  .image-box {
    width: 80%;
  }

  .text-box h2,
  .me {
    font-size: 35px;
  }

  .text-box h1 {
    font-size: 1.8rem;
  }

  .text-box p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }

  .btn-aboutme {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .hero {
    padding: 15px;
  }

  .image-box {
    width: 100%;
  }

  .text-box h2,
  .me {
    font-size: 30px;
  }

  .text-box h1 {
    font-size: 1.5rem;
  }

  .text-box p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }

  .btn-aboutme {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  right: 10px;
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  transition: right 0.3s ease-in-out;
}

/* Sidebar Buttons */
.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #333;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  font-size: 18px;
  overflow: hidden;
  transition: width 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

/* Icons */
.sidebar a i {
  font-size: 18px;
  position: absolute;
  right: 15px;
}

/* Hide Text Initially */
.sidebar a span {
  position: absolute;
  right: 50px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Expand on Hover */
.sidebar a:hover {
  width: 140px;
  border-radius: 25px;
  background: #ffc107;
  color: black;
  padding-left: 15px;
}

/* Show Text on Hover */
.sidebar a:hover span {
  opacity: 1;
}

/* Fix Icon Position on Hover */
.sidebar a:hover i {
  right: 15px;
}

/* Toggle Button for Small Screens */
.toggle-btn {
  position: fixed;
  right: 15px;
  top: 15px;
  background: #ffc107;
  color: black;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
  display: none; /* Hide by default */
}

/* Hide Sidebar on Small Screens */
@media (max-width: 768px) {
  /* Sidebar Buttons */
  .sidebar a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Fixed width */
    height: 50px;
    background: #333;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 18px;
    overflow: hidden;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
  }

  /* Icons Stay Centered */
  .sidebar a i {
    font-size: 18px;
  }

  /* Hover Effect - Only Change Color */
  .sidebar a:hover {
    background: #ffc107;
    color: black;
  }

  /* Prevent Text from Appearing */
  .sidebar a span {
    display: inline; /* Ensure text is shown */
  }
}
@media (max-width: 768px) {
  .toggle-btn {
    position: fixed;
    right: 15px;
    top: 15px;
    background: #ffc107;
    color: black;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    display: block; /* Ensure it's always visible */
    z-index: 1000;
  }

  .toggle-btn:hover {
    background: #e0a70a7c;
  }

  /* Sidebar hidden initially */
  .sidebar {
    right: -200px;
    background: rgba(34, 34, 34, 0.7);
    backdrop-filter: blur(10px); /* Adds frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    transition: right 0.3s ease-in-out;
  }

  /* Sidebar opens when 'show' class is added */
  .sidebar.show {
    right: 10px;
  }

  /* Make sure buttons stay same size */
  .sidebar a {
    width: 50px;
    height: 50px;
    justify-content: center;
  }

  /* Ensure icons remain centered */
  .sidebar a i {
    margin-right: 0;
  }
}
