/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
  }
  
  header {
    background-color: #222;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  .hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    text-align: center;
    background: linear-gradient(135deg, #0077ff, #00c6ff);
    color: white;
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    background-color: #2378d8;
    color: #dddfe3;
    padding: 0.75rem 1.5rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
  }
  
  .btn:hover {
    background-color: #e0e0e0;
  }
  
  .about {
  padding: 4rem 2rem;
  background-color: #fff;
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.about-container{
  justify-content: space-around;
}
.about-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  gap: 2rem;
}


.about-text {
  flex: 1;
  text-align: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #444;
}


.about-image img {
  height: 40vh;
  display: flex;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    text-align: left;
  }

  .about-text {
    text-align: left;
  }
}

  
  .multi-image {
    flex-direction: column;
  }

  .projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  
  .project-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    width: 100%;          /* take full width */
    max-width: 100%;      /* ensure full width of parent */
    overflow-y: auto;     /* vertical scroll only if needed */
    align-items: center;
  }
  
  
  
  .project-card.multi-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  

  .project-gallery img {
    width: 100%;               /* stretch to fit container */
    max-width: 1000px;         /* adjust max width as needed */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  .project-gallery {
    scrollbar-width: none;       /* Firefox */
  }
  
  .project-gallery::-webkit-scrollbar {
    display: none;               /* Chrome, Safari */
  }
  

  .project-gallery img {
    max-width: 1000px; /* Adjust as needed */
    height: auto;
  }
  
  
  
  .project-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 0 auto; /* Center horizontally */
    justify-content: center;
    align-items: center;
  }
  
  
  .project-info {
    padding: 2rem;
  }
  
  @media (min-width: 768px) {
    .multi-image {
      flex-direction: row;
      align-items: flex-start;
    }
  
    .project-gallery {
      flex-direction: column;
      width: 50%;
      max-height: 600px;
      overflow-y: auto;
    }
  
    .project-info {
      width: 50%;
    }
  }
  
  .skills {
    background-color: #fff;
    padding: 4rem 2rem;
  }
  
  .skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .skills h3{
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .skill-card {
    background-color: #f0f8ff;
    border: 2px solid #0077ff;
    color: #0077ff;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  
  
  .skill-card:hover {
    background-color: #0077ff;
    color: white;
    transform: scale(1.05);
  }

  .skill-card i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
  }
  
  .contact {
    padding: 4rem 2rem;
    background-color: #f5f5f5;
    text-align: center;
  }
  
  .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
  }
  
  .contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }
  
  .contact-item {
    text-decoration: none;
    color: #0077ff;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .contact-item:hover {
    text-decoration: underline;
  }
  
  .contact-form {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
  }
  
  .contact-form button {
    padding: 1rem;
    background-color: #0077ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #005fcc;
  }
  