/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  line-height: 1.6;
}

a {
  color: #00ffe0;
  text-decoration: none;
}

a:hover {
  color: #ff00ff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 10px 20px;
  box-shadow: 0 0 10px #8e2de2;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #00ffe0;
}

.logo span {
  color: #ff00ff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
}

.nav-links li a:hover {
  color: #ff00ff;
}

/* Header */
header {
  background: linear-gradient(to right, #8000ff, #1f1f1f);
  padding: 100px 20px 60px;
  text-align: center;
  box-shadow: 0 0 20px #8e2de2;
}

header h1 {
  font-size: 3em;
  color: #fff;
  margin-bottom: 10px;
}

header h1 span {
  color: #00ffe0;
}

.btn {
  background-color: #00ffe0;
  color: #111;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.btn:hover {
  background-color: #ff00ff;
  color: #fff;
}

/* Section Titles */
section h2 {
  text-align: center;
  font-size: 2.4em;
  margin-bottom: 30px;
  color: #ff00ff;
}

/* About Section - improved for columns on desktop */
#about {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 60px 20px;
  background-color: #1a1a1a;
  max-width: 900px;
  margin: 0 auto 80px auto;
  flex-wrap: wrap;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #00ffe0;
  margin-bottom: 0;
  object-fit: cover;
  box-shadow: 0 0 20px #00ffe0;
  flex-shrink: 0;
}

#about p {
  max-width: 500px;
  font-size: 1.2em;
  color: #ccc;
  flex: 1 1 400px;
}

/* Skills Section */
#skills {
  background-color: #111;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skills span {
  background: #8000ff;
  padding: 10px 20px;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 10px #8000ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.skills span:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #ff00ff;
}

/* Projects Section - switch to grid for better column control */
#projects {
  background-color: #1a1a1a;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background-color: #111;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px #6a0dad;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #ff00ff;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 0 10px #00ffe0;
}

.card h3 {
  color: #00ffe0;
  margin-bottom: 10px;
}

.card p {
  color: #ccc;
  font-size: 0.95em;
}

/* Certificates Section */
#certificates {
  background-color: #111;
  padding: 60px 20px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px auto;
}

#certificates h2 {
  color: #ff00ff;
  margin-bottom: 30px;
}

#certificates p {
  color: #ccc;
  font-size: 1.1em;
  margin-bottom: 20px;
}

#certificates a {
  display: inline-block;
  background-color: #00ffe0;
  color: #111;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

#certificates a:hover {
  background-color: #ff00ff;
  color: #fff;
}

/* Resume Section */
#resume {
  background-color: #111;
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto 80px auto;
}

#resume a {
  background: #00ffe0;
  padding: 12px 24px;
  color: #111;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s ease;
  text-decoration: none;
}

#resume a:hover {
  background: #ff00ff;
  color: #fff;
}

/* Contact Section */
#contact {
  background-color: #1a1a1a;
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto 80px auto;
}

#contact p {
  font-size: 1.1em;
  margin: 10px 0;
}

/* Footer */
footer {
  background-color: #0d0d0d;
  color: #888;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  color: #00ffe0;
  margin: 0 10px;
  font-weight: bold;
}

.social-links a:hover {
  color: #ff00ff;
  text-decoration: underline;
}

/* Animation styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  #about {
    flex-direction: column;
    text-align: center;
  }

  #about p {
    max-width: 100%;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}
