*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
}
.container{
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}
header{
    background-color: #fff;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    x: 0;
    z-index: 1000;
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo a{
    font-size: 1.8rem;
    color:#4a90e2;
    font-weight: 600;
    text-decoration: none;
}
.nav-menu{
    display: flex;
    list-style: none;
}
.nav-item{
    margin-left: 2rem;
}
.nav-link{
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover{
    color: #4a90e2;
}
@media(max-width :768px){
    .navbar{
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo{
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    .nav-menu{
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-item{
        margin: 0.5rem 0.8rem;
    }
    .nav-link{
        font-size: 0.9rem;
    }
}
.hero {
  background-color: #f8f9fa;
  /* Light background */
  padding: 120px 0 80px;
  /* Adjust padding for fixed header */
  margin-top: 70px;
  /* Match header height */
  min-height: calc(100vh - 70px);
  /* Full viewport height minus header */
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero-content {
  flex: 1;
  max-width: 600px;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero h1 .highlight {
  color: #4a90e2;
}
.hero h2 {
  font-size: 1.8rem;
  color: #555;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero {
  background-color: #f8f9fa;
  /* Light background */
  padding: 120px 0 80px;
  /* Adjust padding for fixed header */
  margin-top: 70px;
  /* Match header height */
  min-height: calc(100vh - 70px);
  /* Full viewport height minus header */
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero h1 .highlight {
  color: #4a90e2;
}

.hero h2 {
  font-size: 1.8rem;
  color: #555;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 1rem;
  margin-bottom: 1rem;
  /* Add margin for wrapping */
}

.btn-primary {
  background-color: #4a90e2;
  color: #fff;
  border: 1px solid #4a90e2;
}

.btn-primary:hover {
  background-color: #357abd;
  border-color: #357abd;
}

.btn-secondary {
  background-color: #fff;
  color: #4a90e2;
  border: 1px solid #4a90e2;
}

.btn-secondary:hover {
  background-color: #e9f2fc;
}


.social-icons {
  margin-top: 2rem;
}

.social-icon {
  color: #333;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #4a90e2;
}
.hero-image {
  flex: 1;
  max-width: 400px;
  text-align: center;
}
.hero-image img{
    max-width: 100%;
    border-radius: 50%;
    border: 5px solid #4a90e2;
}
#about{
  background-color: #fff;
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #333;
  position: relative;
}
.section-title::after{
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background-color: #4a90e2;
  margin: 10px auto 0;
}
.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  /* Add gap between image and text */
}
.about-image {
  flex: 1;
  min-width: 300px;
}
.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.about-text {
  flex: 1;
  min-width: 300px;
}
.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #4a90e2;
}
.about-text p {
  margin-bottom: 15px;
  color: #555;
}
.about-text ul {
  list-style: none;
  margin-bottom: 20px;
}
.about-text li {
  margin-bottom: 10px;
  color: #555;
}
.about-text strong {
  color: #333;
}
@media (max-width: 768px) {
  .about-content {
    text-align: center;
  }

  .about-image {
    margin-bottom: 30px;
  }
}
#projects {
  background-color: #f9fbfc;
  padding: 80px 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.project-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.project-overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 144, 226, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
}
.project-item:hover .project-overlay {
  opacity: 1;

}
.project-item:hover img {
  transform: scale(1.1);
}
.project-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.project-overlay p {
  margin-bottom: 20px;
}
.project-overlay .btn-secondary {
  background-color: #fff;
  color: #4a90e2;
  border-color: #fff;
}
.project-overlay .btn-secondary:hover {
  background-color: #eee;
}
#skills {
  background-color: #fff;
  padding: 80px 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.skill-item {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.skill-icon {
  font-size: 3rem;
  color: #4a90e2;
  margin-bottom: 15px;
}
.skill-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.skill-item p {
  color: #555;
  font-size: 0.9rem;
}
#contact {
  background-color: #f8f9fa;
  padding: 80px 0;
}
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}
.contact-info h3,
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}
.contact-info p {
  margin-bottom: 15px;
  color: #555;
  display: flex;
  align-items: center;
}
.contact-info i {
  color: #4a90e2;
  margin-right: 10px;
  width: 20px;
  /* Ensure consistent alignment */
  text-align: center;
}
.contact-social-icons {
  margin-top: 20px;
}
.contact-social-icons .social-icon {
  font-size: 1.3rem;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}
.contact-form textarea {
  resize: vertical;
  /* Allow vertical resizing */
}
.contact-form button {
  cursor: pointer;
}
footer {
  background-color: #333;
  color: #ccc;
  padding: 30px 0;
  text-align: center;
}
footer .container {
  display: flex;
  flex-direction: column;
  /* Stack items vertically */
  align-items: center;
}
footer p {
  margin-bottom: 15px;
}
.footer-social-icons .social-icon {
  color: #ccc;
  font-size: 1.3rem;
  margin: 0 10px;
}
.footer-social-icons .social-icon:hover {
  color: #4a90e2;
}


