/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e1e1e;
  padding: 1rem 2rem;
  color: #fff;
}

.profile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f39c12;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem;
  background: linear-gradient(to right, #1c1c1c, #333);
  color: #fff;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 55%;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero .btn {
  padding: 0.75rem 1.5rem;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}

.hero-image img {
  width: 250px;
  border-radius: 50%;
}

/* About */
.about {
  padding: 2rem;
  background: #fff;
}

.about-container {
  max-width: 800px;
  margin: auto;
}

/* Projects */
.projects {
  padding: 2rem;
  background: #f8f8f8;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.02);
}

.project-item img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 10px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

/* Skills */
.skills {
  padding: 2rem;
  background: #fff;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.skill {
  flex: 1 1 200px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.skill h3 {
  margin-bottom: 8px;
}

.progress-bar {
  height: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.progress-bar.html {
  width: 90%;
  background-color: #e34c26;
}

.progress-bar.css {
  width: 85%;
  background-color: #264de4;
}

.progress-bar.php {
  width: 80%;
  background-color: #777bb4;
}

.progress-bar.laravel {
  width: 75%;
  background-color: #209b28;
}

.skill p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
  margin: 0;
}

/* Contact */
.contact {
  padding: 2rem;
  background: #f8f8f8;
  text-align: center;
}

.contact a {
  color: #f39c12;
  text-decoration: none;
}

/* Footer */
footer {
  background: #1e1e1e;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.social-media a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #f39c12;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  text-align: center;
}

.highlight {
  color: #f39c12;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text, .hero-image {
    max-width: 100%;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .skills-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
  }

  .skills-container {
    flex-direction: column;
  }

  .hero-image img {
    width: 180px;
  }
}
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
  min-height: 250px; /* ensure consistent height */
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes the image cover the block evenly */
  border-radius: 10px;
}

