.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
header {
    text-align: center;
    margin-bottom: 20px;
}

.skills-list, .projects {
    margin-bottom: 20px;
}
.skills-list ul {
    list-style-type: none;
    padding: 0;
}
.skills-list li {
    background: #f4f4f4;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
}

.projects .project {
    background: #f4f4f4;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}
.projects .project h3 {
    margin-top: 0;
}

.external-link {
    text-decoration: underline;
    position: relative;
}
.dark-mode .external-link {
    color: #C8C8C8;
    transition: color 0.1s ease-in-out;
}
.light-mode .external-link {
    color: #000000;
    transition: color 0.3s ease-in-out;
}

.header-background {
    position: relative;
    padding: 20px;
    color: white;
}

.image-container {
    position: relative;
    text-align: center;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;

}

.image-container h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 3em; /* Increase the font size */
}
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure the gradient is above the image but below the text */
    pointer-events: none; /* Allow clicks to pass through the gradient */
}

.image-container h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 10px;
    z-index: 2; /* Ensure the text is above the gradient */
    font-size: 3em; /* Increase the font size */
}

/* Media query for smaller screens */
@media (max-width: 1200px) {
    .image-container h1 {
        font-size: 3.0em;
        transform: translate(-50%, -55%);
    }
}

@media (max-width: 992px) {
    .image-container h1 {
        font-size: 2.5em;
        transform: translate(-50%, -60%);
    }
}

@media (max-width: 768px) {
    .image-container h1 {
        font-size: 2em;
        transform: translate(-50%, -65%);
    }
}

@media (max-width: 576px) {
    .image-container h1 {
        font-size: 1.5em;
        transform: translate(-50%, -70%);
    }
}

.header-background p, .header-background h1 {
    transition: color 0.2s ease-in-out;
    margin-top: 20px;
    margin-right: 0px;
}
.header-background p {
    margin-top: 30px;
    margin-bottom: -40px;
}

.dark-mode .header-background p, .dark-mode .header-background h1 {
    color: #C8C8C8;
}

.light-mode .header-background p, .light-mode .header-background h1 {
    color: #000000;
}

.external-link {
    text-decoration: underline;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.dark-mode .external-link {
    color: #C8C8C8;
}

.light-mode .external-link {
    color: #000000;
}

.header-background .line-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-right: -20px;
}

/* Enhanced Skills Section Styling */
.skills-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-heading {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.skills-heading h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.skills-heading h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, rgba(120, 120, 220, 0.8), rgba(50, 50, 180, 0.8));
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.skill-card {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

.light-mode .skill-card {
  background: rgba(240, 240, 240, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-image-container {
  position: relative;
  overflow: hidden;
  height: 180px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.skill-card:hover .skill-image-container {
  border-bottom-color: rgba(99, 102, 241, 0.8);
}

.skill-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.skill-card:hover .skill-image-container img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.skill-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.skill-card:hover .skill-overlay {
  opacity: 1;
}

.skill-content {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.skill-title {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.skill-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(120, 120, 220, 0.8), rgba(80, 80, 180, 0.8));
  transition: width 0.3s ease;
}

.skill-card:hover .skill-title::after {
  width: 100%;
}

.skill-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #999;
}

.light-mode .skill-description {
  color: #555;
}

/* Skill level indicator */
.skill-level {
  margin-top: 15px;
  height: 6px;
  background: rgba(120, 120, 120, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(120, 120, 220, 0.8), rgba(50, 50, 180, 0.8));
  width: 0;
  transition: width 1s ease;
}

.skill-card:hover .skill-progress {
  animation: fill-progress 1.5s forwards;
}

@keyframes fill-progress {
  to { width: var(--skill-level, 80%); }
}

/* Animation for skills appearance */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-image-container {
    height: 160px;
  }
}

/* JavaScript and tools icon badges */
.skill-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.skill-badge {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.light-mode .skill-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.skill-badge img {
  width: 14px;
  height: 14px;
}

/* Skill card link */
.skill-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

.skill-link:hover, .skill-link:focus {
  text-decoration: none;
  color: inherit;
}

/* Consistent Gallery Layout */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.light-mode .gallery-item {
  background: rgba(240, 240, 240, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.gallery-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-content {
  padding: 15px;
}

.gallery-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.gallery-description {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* Enhanced Skill Page Styling */
.skill-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Enhanced Skill Banner */
.skill-banner {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 40px;
  height: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 40px;
}

.skill-banner-icon {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 15px;
  margin-right: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-banner-icon img {
  width: 80px;
  height: 80px;
  display: block;
}

.skill-banner-text h1 {
  margin: 0 0 10px 0;
  font-size: 2.5rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-banner-text p {
  margin: 0;
  font-size: 1.2rem;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.skill-banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  z-index: 1;
}

.skill-banner-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
              radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* Skill Description */
.skill-description {
  margin-bottom: 40px;
  padding: 0 20px;
}

.skill-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

.skill-description a.external-link {
  color: #6366f1;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
}

.dark-mode .skill-description a.external-link {
  color: #8b5cf6;
}

.light-mode .skill-description a.external-link {
  color: #6366f1;
}

.skill-description a.external-link:hover {
  color: #4f46e5;
}

/* Section Title */
.section-title {
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 500;
  display: inline-block;
  position: relative;
  margin: 0;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 3px;
}

/* Skill Projects Section */
.skill-projects {
  padding: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .skill-banner {
    height: auto;
    padding: 30px 0;
  }
  
  .skill-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }
  
  .skill-banner-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .skill-banner-text h1 {
    font-size: 2rem;
  }
  
  .skill-banner-text p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .skill-banner-text h1 {
    font-size: 1.7rem;
  }
  
  .skill-banner-icon img {
    width: 60px;
    height: 60px;
  }
  
  .skill-description p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.3rem;
  }
}

/* Animation for skill sections */
.skill-page-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up 0.8s ease forwards;
}

.skill-banner {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease forwards 0.2s;
}

.skill-description {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease forwards 0.4s;
}

.section-title {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease forwards 0.6s;
}

.category-row {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease forwards 0.8s;
}

/* Animation for subsequent category-row elements with increasing delays */
.category-row:nth-child(2) {
  animation-delay: 1s;
}

.category-row:nth-child(3) {
  animation-delay: 1.2s;
}

.category-row:nth-child(4) {
  animation-delay: 1.4s;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
