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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding: 20px;
}


header {
  text-align: center;
  padding: 20px 0;
  background-color: #007acc;
  /* Header background color */
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
}

header nav {
  margin: 20px;
}

.nav-links {
  margin-top: 20px;
  list-style-type: none;
  /* Remove default list styling */
  padding: 0;
  /* Remove default padding */
  font-weight: bold;
}

.nav-links li {
  display: inline;
  /* Display links inline */
  margin: 0 15px;
  /* Space between links */
}

.nav-links a {

  /* Remove underline from links */
  color: white;
  /* Link color */
  transition: color 0.3s;
  /* Smooth color transition */
}

.nav-links a i {
  margin-right: 8px;
  /* Space between icon and text */
}

.nav-links a:hover {
  color: #bbbbbb;
  text-decoration: none;
}

h1 {
  font-size: 2.5em;
  /* Larger font for the main title */
  margin-bottom: 6px;
}

h2 {
  font-size: 2em;
  /* Slightly larger subheadings */
  margin-bottom: 6px;
}

h3 {
  font-size: 1.5em;
  /* Sub-subheading for project titles */
  margin: 15px 0 5px;
  color: #005a99;
  /* Darker shade for contrast */
}

.contact-icons {
  margin-top: 10px;
}

.contact-icons a {
  color: white;
  margin: 0 18px;
  font-size: 1.5em;
  /* Icon size */
  transition: color 0.3s;
  /* Smooth transition */
}

.contact-icons a:hover {
  color: #bbbbbb;
  /* Change color on hover */
}

section {
  max-width: 800px;
  margin: auto;
  margin-top: 20px;
  padding: 20px 20px;
  background: white;
  /* White background for sections */
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #007acc;
  color: white;
  position: relative;
  bottom: 0;
  /* Keep footer at the bottom */
  margin-top: 20px;
  /* Space between content and footer */
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  /* Underline on hover for better UX */
}

ul {
  list-style-type: disc;
  /* Bullet points for lists */
  margin-left: 20px;
  /* Indentation for list items */
}

.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Center align images */
  margin-bottom: 20px;
  /* Space below the images */
}

.project-images img {
  width: 350px;
  /* Set width for images */
  height: auto;

  max-height: 350px;

  object-fit: cover;
  /* Maintain aspect ratio */
  margin: 10px;
  /* Space between images */
  border-radius: 5px;
  /* Optional: rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Optional: subtle shadow */
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  section {
    padding: 10px;
  }

  h1 {
    font-size: 2em;
    /* Adjust header size on smaller screens */
  }

  h2 {
    font-size: 1.5em;
    /* Adjust subheading size on smaller screens */
  }

  h3 {
    font-size: 1.2em;
    /* Adjust project title size on smaller screens */
  }
}

/* Skills Section Styles */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.skill-category {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
  color: #007acc;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.skill-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-category li {
  padding: 8px 0;
  display: flex;
  /* Add this */
  align-items: center;
  /* Add this */
  gap: 10px;
  /* Add this */
  border-bottom: 1px solid #eee;
}

.skill-category li i {
  width: 20px;
  /* Add this */
  text-align: center;
  /* Add this */
  margin-inline-end: 8px;
  margin-inline-start: 15px;
}

.skill-category li:last-child {
  border-bottom: none;
}

/* Lazy Loading Styles */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

/* Main Content Wrapper */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Enhanced Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Improved Modal Image */
.swal2-image-large {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    margin-bottom: 15px;
  }
}

/* Tech Badge Styles */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  background: #f0f7ff;
  color: #007acc;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85em;
  font-weight: 500;
  border: 1px solid #cce4ff;
}

.tech-badge i {
  margin-right: 6px;
  font-size: 0.9em;
}

/* Different badge colors for different tech categories */
.tech-badge.frontend {
  background: #fff0f7;
  color: #d6336c;
  border-color: #ffcce3;
}

.tech-badge.backend {
  background: #f3f0ff;
  color: #6741d9;
  border-color: #e5dbff;
}

.tech-badge.mobile {
  background: #fff4e6;
  color: #e8590c;
  border-color: #ffe8cc;
}

.tech-badge.database {
  background: #e6fcf5;
  color: #0ca678;
  border-color: #c3fae8;
}

/* Hover effect */
.tech-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.skill-category h3 i {
  margin-right: 8px;
  color: #007acc;
  font-size: 0.9em;
}

.skill-category ul {
  margin-top: 12px;
}

.skill-category ul li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.skill-category ul li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 3em;
  }

  header p {
    font-size: 1.2em;
  }

  .contact-icons a {
    font-size: 2em;
  }

  .nav-links {
    flex-direction: column;
    margin-top: 15px;
    margin-right: 15px;
  }

  .nav-links li {
    display: block;
    margin: 5px 0;
  }

  .nav-links a {
    display: block;
    padding: 5px 0;
    font-size: 1.3em;
  }
}