/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #0f0c29; /* dark purple-blue base */
  color: #ffffff;
  line-height: 1.6;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 12, 41, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 50px;
  z-index: 1000;
  border-bottom: 1px solid #302b63;
  backdrop-filter: blur(6px);
}

nav .logo {
  font-size: 22px;
  font-weight: bold;
  color: #6c63ff;
}

nav .logo span {
  color: #1e90ff;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #c9d1d9;
  font-weight: 500;
  transition: 0.3s;
  padding: 6px 12px;
  border-radius: 5px;
}

nav ul li a:hover,
nav ul li a.active {
  background: #6c63ff;
  color: #fff;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(15,12,41,0.7), rgba(48,43,99,0.7)), url("images/bp.jpg") no-repeat center/cover;
  padding: 120px 20px 80px 20px;
}

.hero-content {
  background: rgba(40, 28, 75, 0.45);
  padding: 30px;
  border-radius: 16px;
  animation: fadeInUp 1.2s ease-in-out;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #6c63ff;
  margin-bottom: 15px;
  object-fit: cover;
}

.hero h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-top: 15px;
}

.hero .highlight {
  color: #6c63ff;
}

.hero h2 {
  margin-top: 10px;
  font-size: 1.4rem;
  color: #1e90ff;
  min-height: 30px;
}

.hero p {
  margin: 12px 0;
  font-size: 1rem;
  color: #ddd;
}

.hero-btns a {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: #6c63ff;
  color: white;
}

.btn-primary:hover {
  background: #1e90ff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #6c63ff;
  color: #6c63ff;
}

.btn-secondary:hover {
  background: #6c63ff;
  color: #fff;
}

/* Sections */
section {
  padding: 70px 10%;
}

section h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #6c63ff;
}

/* About Section */
.about p {
  margin-bottom: 15px;
  background: #1c1c3c;
  padding: 15px;
  border-radius: 12px;
}

/* Skills Section */
.skills ul {
  list-style: none;
  padding: 0;
}

.skills li {
  background: #2a2660;
  margin: 12px 0;
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skills li:hover {
  transform: translateX(5px);
  background: #3b2f72;
}

.tech-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.tech-icons img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  background: #1c1c3c;
  padding: 5px;
}

/* Education, Experience, Certifications */
.education ul,
.experience ul,
.certifications ul {
  list-style: none;
  padding: 0;
}

.education li,
.experience li,
.certifications li {
  background: #2a2660;
  margin: 12px 0;
  padding: 15px;
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.experience li:hover,
.education li:hover,
.certifications li:hover {
  transform: translateX(5px);
  background: #3b2f72;
}

.cert-image img {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 15px;
  right: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cert-image img:hover {
  transform: scale(1.25);
  box-shadow: 0px 5px 15px rgba(0,0,0,0.5);
}

/* Projects */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background: #2a2660;
  padding: 20px;
  border-radius: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px rgba(0,0,0,0.5);
}

.project-card img.project-img {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
}

/* Contact Section */
.contact {
  background: #2a2660; 
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: #fff;
}

.contact h1 {
  font-family: 'Times New Roman', serif;
  font-size: 28px;
  margin-bottom: 30px;
  color: #fff;
}

.contact p {
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  margin: 10px 0;
  line-height: 1.6;
  color: #f0f0f0;
}

.contact a {
  color: #6c63ff; 
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #1e90ff; 
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #1c1c3c;
  color: #bbb;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  nav { flex-direction: column; gap: 10px; padding: 12px; }
  nav ul { flex-wrap: wrap; justify-content: center; }

  /* Hero Section Mobile Fix */
  .hero {
    padding: 140px 20px 80px 20px;
  }

  .hero-content {
    padding: 20px;
    margin-top: 20px;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-top: 10px;
  }

  .hero h2 {
    font-size: 1.2rem;
    min-height: auto;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-btns a {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin: 4px;
  }

  section { padding: 50px 20px; }
  .project-container { grid-template-columns: 1fr; }
  .tech-icons img { width: 60px; height: 60px; }
  .cert-image img { width: 60px; height: 60px; }

  .contact {
    padding: 40px 15px;
  }

  .contact h1 { font-size: 24px; }
  .contact p { font-size: 16px; }
}
