/* Container for all projects */
.projects-grid {
    display: grid;
    /* This makes it responsive: auto-fits as many columns as possible */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Card Style */
.project {
    background: #fff;
    border-radius: 16px;
    overflow: hidden; /* Ensures image stays inside rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft shadow like reference */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

/* Hover Effect - Lifts the card up */
.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image styling (Top part) */
.project img {
    width: 100%;
    height: 180px; /* Fixed height for uniformity */
    object-fit: cover; /* Crops image nicely without stretching */
    border-bottom: 1px solid #f0f0f0;
}

/* Title Styling */
.project h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 20px 25px 10px; /* Top, Side, Bottom margins */
    font-family: 'Segoe UI', sans-serif;
}

/* Description Styling */
.project p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0 25px 25px; /* Side and Bottom margins */
    flex-grow: 1; /* Pushes the link to the bottom if text is short */
}

/* Link / Button Styling */
.project a {
    display: inline-block;
    text-decoration: none;
    color: #6a5acd; /* Purple color matching your reference */
    font-weight: 600;
    margin: 0 25px 30px; /* Align with text */
    font-family: sans-serif;
    transition: color 0.2s;
}

.project a:hover {
    color: #483d8b; /* Darker purple on hover */
    text-decoration: underline;
}


/* Project part*/

#certificates {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* Individual Certificate Card */
.certificate {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.certificate:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Certificate Image */
.certificate img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3; /* Maintains consistent height */
}

/* Responsive Design */

/* Tablets (768px and below) */

.profile {
  border-radius: 35%;
}