* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: white;
  height: 100vh;
  overflow-x: hidden;
  background-attachment: fixed;
  scroll-behavior: smooth;
}

.navlinks {
  background: rgba(0, 0, 0, 0.85);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid white;
  position: relative;
  z-index: 3;
  will-change: transform;
}

.header {
  font-size: 28px;
  font-weight: bold;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.menu li a::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: 0;
  left: 50%;
  background-color: #FFD700;
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 4px;
}

.menu li a:hover::before,
.menu li a.active::before {
  width: 80%;
}

.menu li a:hover {
  color: #FFD700;
  transform: scale(1.05);
}

.menu li a:active {
  transform: scale(0.92);
}

.container {
  text-align: center;
  margin-top: 50px;
}

.profile-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 0 20px rgba(0, 191, 255, 1);
  transition: transform 0.6s ease;
  cursor: pointer;
  animation: glow 2s infinite alternate;
  will-change: transform, box-shadow;
}

.profile-image:hover {
  transform: scale(1.1);
}

@keyframes glow {
  0% {
    box-shadow: 0 0 20px rgba(0, 191, 255, 1), 0 0 40px rgba(0, 191, 255, 0.8), 0 0 60px rgba(0, 191, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 40px rgba(0, 191, 255, 1), 0 0 60px rgba(0, 191, 255, 0.9), 0 0 80px rgba(0, 191, 255, 0.7);
  }
}

.hamburger {
  width: 35px;
  height: 30px;
  position: relative;
  display: none;
  cursor: pointer;
  z-index: 5;
}

.hamburger span {
  position: absolute;
  height: 4px;
  width: 100%;
  background: white;
  left: 0;
  transition: 0.4s;
  border-radius: 4px;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 13px; }
.hamburger span:nth-child(3) { top: 26px; }

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 13px;
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 13px;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  box-shadow: 5px 0 15px rgba(0,0,0,0.7);
  transition: left 0.5s ease;
  z-index: 4;
  padding-top: 50px;
  will-change: left;
}

.side-menu.active {
  left: 0;
}

.side-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}

.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu ul li {
  margin: 30px 0;
  text-align: center;
}

.side-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.side-menu ul li a::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: 0;
  left: 50%;
  background-color: #FFD700;
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 4px;
}

.side-menu ul li a:hover::before,
.side-menu ul li a.active::before {
  width: 80%;
}

.side-menu ul li a:hover {
  color: #FFD700;
  transform: scale(1.05);
}

.side-menu ul li a:active {
  transform: scale(0.92);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

#typing {
  font-size: clamp(24px, 5vw, 30px);
  color: #fff;
  margin-top: 20px;
}

.description {
  font-size: clamp(16px, 4vw, 20px);
  color: #ccc;
  margin-top: 10px;
}

@media screen and (min-width: 768px) {
  .profile-image {
    width: 350px;
    height: 350px;
  }
}

#typing::after,
.blinking-caret::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 30px;
  background-color: white;
  margin-left: 5px;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.about {
  background-color: #1e293b;
  padding: 38px 50px;
  border-radius: 38px;
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  width: 90%;
  margin: 500px auto;
  animation: floatIn 3s ease-in-out infinite, fadeIn 1s ease forwards;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes floatIn {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .about {
    padding: 30px 20px;
    border-radius: 20px;
  }
}

.about-me {
  font-size: clamp(28px, 6vw, 45px);
  font-weight: bold;
  color: #38bdf8;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.about-me::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: white;
  box-shadow: 0 0 8px white, 0 0 16px white;
  border-radius: 2px;
}

.about ul {
  list-style-type: disc;
  padding-left: 20px;
}

.about li {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.6;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.service {
  background-color: #1e293b;
  padding: 38px 100px;
  border-radius: 38px;
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  width: 90%;
  margin: 100px auto;
}

.My-Skills {
  font-size: clamp(28px, 6vw, 45px);
  font-weight: bold;
  color: #38bdf8;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.My-Skills::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: white;
  box-shadow: 0 0 8px white, 0 0 16px white;
  border-radius: 2px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}

.skill-card {
  background-color: #1e293b;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  max-width: 240px;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  background-color: #0f172a;
}

.skill-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.skill-card h3 {
  margin: 10px 0 5px;
  font-size: 20px;
  color: #38bdf8;
}

.skill-card p {
  font-size: 14px;
  line-height: 1.4;
  color: #e2e8f0;
  margin-top: 5px;
}

.skill-card .desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  margin-top: 8px;
  color: #e2e8f0;
}

input#html:checked + label .desc,
input#css:checked + label .desc,
input#js:checked + label .desc,
input#python:checked + label .desc {
  opacity: 1;
  max-height: 100px;
}

.footer {
  background-color: ##110c0c; /* Fixed the color code */
  color: #f1f5f9;
  padding: 40px 20px 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 250px;
  padding: 10px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #38bdf8;
  font-size: 20px;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #38bdf8;
  text-shadow: 0 0 6px #38bdf8;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  font-size: 22px;
  color: #94a3b8;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: scale(1.2);
  text-shadow: 0 0 10px #38bdf8;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #2e2e2e;
  padding-top: 20px;
  font-size: 8px;
  color: #94a3b8;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1.3em;
  color: #aaa;
}

html {
  scroll-behavior: smooth;
}