/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #1b1b1b;
  color: #ffffff;
  padding: 2em 1em;
  text-align: center;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.profile-photo {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 1em;
}

.profile h2 {
  margin-bottom: 0.5em;
  color: #ffdd57;
}

.profile p {
  margin: 0.5em 0;
  color: #cccccc;
  font-size: 0.9rem;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li a {
  display: block;
  text-decoration: none;
  color: #ffdd57;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.8em 0;
  transition: color 0.3s;
}

nav ul li a:hover, nav ul li a:focus {
  color: #ffffff;
  outline: none;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 2em 1.5em;
  flex: 1;
  background-color: #f5f5f5;
}

/* Sections */
section {
  padding: 4em 1.5em;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1em;
  color: #333333;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #ffdd57;
  margin: 0.5em auto;
  border-radius: 2px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
}

.project-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5em;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1em;
  transition: transform 0.3s;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

/* Skills */
.language-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.language-list li {
  background: linear-gradient(135deg, #333333, #555555);
  color: #ffffff;
  padding: 0.7em 1.5em;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.language-list li:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
}

input, textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.8em;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
  border-color: #1b1b1b;
  box-shadow: 0 0 10px rgba(27, 27, 27, 0.3);
  outline: none;
}

button {
  background: linear-gradient(135deg, #1b1b1b, #333333);
  color: #ffffff;
  border: none;
  padding: 1em 2em;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

button:hover {
  background: linear-gradient(135deg, #ffdd57, #ff9900);
  transform: scale(1.1);
}

/* Footer */
footer {
  background: #1b1b1b;
  color: #ffffff;
  text-align: center;
  padding: 1.5em;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    margin-left: 0;
    padding: 1em;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .profile-photo {
    width: 90px;
  }

  h2 {
    font-size: 1.8rem;
  }

  input, textarea {
    width: 90%;
  }

  button {
    padding: 0.8em 1.5em;
  }
}
