:root {
  --primary-color: #14315d;
  --primary-light: rgb(0, 2, 146);
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-dark: #6b7280;
  --primary: rgb(0, 0, 0);

  --primary-dark: #425e87;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --dark: #1f2937;
  --light: #f9fafb;
  --success: #10b981;
  --gray-light: #f5f7fa;
  --gray-dark: #6b7280;
  --white: #ffffff;
  --black: #111827;
}

body {
  font-family: "Nunito Sans", sans-serif;
  background-color: var(--gray-light);
}

/* Hero Section */
.about-hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  padding: 160px 0 180px;
  position: relative;
  overflow: hidden;
}

/* Wave effect using SVG background */
.about-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.1' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.1' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  pointer-events: none;

  /* Rotate the wave */
  transform: rotate(180deg);
  transform-origin: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
}

.shape-2 {
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
}

/* Hero Section end */

.projects-section {
  padding: 30px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 120px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--gray-dark);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 12px 24px;
  margin: 0 10px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-dark);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.category-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.category-tab.active {
  color: var(--primary-color);
}

.category-tab.active::after {
  width: 100%;
}

.category-tab:hover:not(.active) {
  color: var(--primary-light);
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
}

.project-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.project-content p {
  color: var(--gray-dark);
  margin-bottom: 15px;
  line-height: 1.5;
}

.view-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    flex-direction: column;
    align-items: center;
  }

  .category-tab {
    margin: 5px 0;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
}


/* Portfolio Section Styles */
.portfolio-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Show 2 per row */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio = 9/16 = 56.25% */
    background-size: contain; /* If you want the whole image visible */
    background-position: center center;
    background-repeat: no-repeat;
}


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.view-btn {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    color: #4F46E5;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #f3f4ff;
    transform: translateY(-2px);
}

.project-info {
    padding: 20px;
}

.project-info p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Stack on small screens */
    }
}