/* ==== General Styles ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: white;
  background: black;
  overflow-x: hidden;
}
h1, h2, h3 {
  margin-bottom: 1rem;
  color: #8b07f8;
}

/* ==== Sections ==== */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

/* ==== Navbar ==== */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}
nav .logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
  color: #ff9800;
  text-shadow: 0 0 8px #ff9800;
}

/* ==== Hero ==== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  perspective: 1000px;
}
.hero h1 {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}
.hero p {
  margin: 15px 0;
  font-size: 1.5rem;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.hero-socials a {
  background: #000;
  margin: 10px;
  font-size: 30px;
  color: aqua;
  padding: 10px;
  border-radius: 50%;
  transition: transform 0.4s, background 0.4s, color 0.4s;
}
.hero-socials a:hover {
  background: rgba(12, 232, 232, 0.5);
  margin: auto;
  color: #000;
  transform: scale(1.2) rotate(10deg);
}

/* ==== Buttons ==== */
.btn {
  margin: 20px;
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #ffd700, #ffa500);
  cursor: pointer;
  font-weight: bold;
  color: black;
  font-size: 1rem;
  transition: transform 0.4s, background 0.6s, box-shadow 0.4s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.btn:hover {
  transform: scale(1.1) rotate(-1deg);
  background: linear-gradient(270deg, #ffa500, #ff4500);
  color: white;
  box-shadow: 0 10px 25px rgba(0,255,255,0.5);
}

/* ==== About ==== */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

/* === Image Animation === */
.about img {
  max-width: 250px;
  border-radius: 50%;
  border: 5px solid #000;
  transition: transform 0.5s ease;
  opacity: 0;
  transform: translateX(-50px);
  animation: aboutImgIn 2s ease forwards;
}

.about img:hover {
  transform: rotateY(20deg) scale(1.05);
}

/* === Text Animation === */
.about-text {
  flex: 1;
  font-weight: 500;
  opacity: 0;
  transform: translateX(50px);
  animation: aboutTextIn 1.2s ease forwards;
  animation-delay: 1s; /* thoda late aaye image ke baad */
}

/* === Keyframes === */
@keyframes aboutImgIn {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes aboutTextIn {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}


/* ==== Projects ==== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.project-card {
  padding: 20px;
  border-radius: 20px;
  background: #000;
  box-shadow: 10px 15px 30px rgba(223, 5, 180, 0.3);
  transition: transform 0.5s, box-shadow 0.5s;
}
.project-card:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 0 25px aqua, 0 0 40px #ff00ff;
}

/* ==== Skills ==== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.skills-grid button {
  padding: 15px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  color: wheat;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 10px 3px 8px rgba(255, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}
.skills-grid button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 15px aqua;
  color: white;
}

/* ==== Certifications ==== */
.cert-list li {
  background: linear-gradient(90deg, #000, #1fdbe1);
  background-size: 200% 100%;
  background-position: left center;
  padding: 15px;
  list-style: none;
  margin-bottom: 10px;
  border-left: 5px solid #00bcd4;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background-position 0.8s ease;
}
.cert-list li:hover {
  transform: translateX(10px);
  background-position: right center;
}

/* ==== Footer ==== */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #fff;
  border-top: 1px solid #222;
}

/* ==== Responsiveness ==== */
@media (max-width: 992px) {
  .about { flex-direction: column; text-align: center; }
  nav ul { gap: 15px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.2rem; }
}
@media (max-width: 600px) {
  nav { flex-direction: column; }
  nav ul { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .btn { font-size: 0.9rem; }
}
