/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}
html {
  scroll-behavior: smooth;
}
/* Header */
header {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}
header h1 {
  margin: 0;
  font-size: 2.2rem;
}
header p {
  font-size: 1rem;
}
nav {
  margin-top: 1rem;
}
nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}

nav a:visited {
  color:rgb(185, 253, 253); 
}

nav a:active {
  color: #7c5096; /* slightly darker blue when clicked */
}

/* Sections */
section {
  padding: 1.2rem 1rem;
  max-width: 1000px;
  margin: auto;
}
section h2 {
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
}

/* Skills */
#skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  justify-content: center;
}
#skills li {
  background: #eaf2f8;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Projects */
.project {
  background: white;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  
}

figure {
  text-align: center;
  margin: 0;
}

figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
  font-style: italic;
}


.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.project h3 {
  margin-top: 0;
}
.project a {
  color: #2980b9;
  text-decoration: none;
  font-weight: bold;
}
.project a:hover {
  text-decoration: underline;
}

.ai {
  border: #333 1px solid;
}

a {
  color: #2980b9;        /* default color */
  text-decoration: none; /* remove underline */
}

a:hover {
  text-decoration: underline; /* underline only when hovering */
}
a:visited {
  color: #2980b9; /* keep same as default (no purple) */
}

a:active {
  color: #1f6391; /* slightly darker blue when clicked */
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 1rem;
}

.contact-container a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eaf2f8;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background 0.3s ease;
}

.contact-container a:hover {
  background: #2980b9;
  color: white;
  transform: translateY(-3px);
}



/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #2c3e50;
  color: white;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav a {
    margin: 5px;
  }
  #skills ul {
    flex-direction: column;
    align-items: center;
  }
}
