/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.nav-links {
  display: flex;
  list-style: none;
}

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 span {
  color: yellow;
}

.btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #fff;
  color: #333;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background: yellow;
  color: #000;
}

section {
  padding: 60px 20px;
  text-align: center;
}

/* About Section */
#about {
  background: #fdf6e3;
  transition: background 0.3s;
}
#about:hover {
  background: #ffedcc;
}

/* Skills Section */
#skills {
  background: #e6f7ff;
  transition: background 0.3s;
}
#skills:hover {
  background: #b3e6ff;
}

#skills .skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 900px; 
  margin: 0 auto;     
  padding: 0 20px;    
}

.skill {
  background: #eee;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
  cursor: pointer;
}
.skill:hover {
  background: #4caf50;
  color: white;
  transform: scale(1.1);
}

/* Projects Section */
#projects {
  background: #f9f9f9;
  transition: background 0.3s;
}
#projects:hover {
  background: #eaeaea;
}

.projects-container {
    margin-top: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 280px;
  text-align: left;   
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, background 0.3s;
}
.project-card:hover {
  transform: translateY(-10px);
  background: #ffe0b2;
}
.project-card h3 {
  margin-bottom: 10px;
  color: #333;
}
.project-card a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}
.project-card a:hover {
  text-decoration: underline;
}

/* Contact Section */
#contact {
  background: #f0f4c3;
  transition: background 0.3s;
}
#contact:hover {
  background: #e6ee9c;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-form button {
  padding: 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.contact-form button:hover {
  background: #ff9800;
}
.form-message {
  font-size: 14px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    display: none;
  }
}
.project-links {
  display: flex;
  gap: 10px;            
  margin-top: 12px;
}

.project-links a {
  background: #0077cc;   
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;    
  border-radius: 5px;
  transition: 0.3s ease;
  text-align: center;
  font-size: 14px;      
  box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

.project-links a:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 5px 8px rgba(0,0,0,0.2);
}

/* Stack buttons vertically on mobile */
@media (max-width: 480px) {
  .project-links {
    flex-direction: column;
  }
}
