/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
}

/* /* Header */
header {
    background-color: #ac99d1;
    color: #fff;
    text-align: center;
    padding: 20px;
}

header img {
    border-radius: 50%;
    max-width: 20%;
    height: auto;
    margin-top: 10px;
} */

/* Header */
header {
  background-color: #ac99d1;
  color: #fff;
  padding: 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
/*   max-width: 1000px; */
  margin: auto;
  gap: 30px;
}

.header-content img {
  border-radius: 50%;
  width: 25%;
  height: auto;
  object-fit: cover;
}

.header-text h1 {
  font-size: 2.5rem;  /* Bigger font for name */
  margin: 0;
}

.header-text p {
  margin: 5px 0 0 0;
  font-size: 1.1rem;
}

/* Navigation */
nav {
    background-color: #333;
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav a {
    color: #fff;
    font-weight: bold;
}

/* Sections */
section {
    padding: 20px;
    margin: 20px 0;
}

section#projects a {
    color: #000;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* About Section Layout */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

#about-text {
    flex: 1 1 50%;
    min-width: 300px;
}

#about-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

#about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Project Iframe Section */
.project-card {
  position: relative;
  display: inline-block;  
  width: 29%;           /* 30% of the container width */
  min-width: 250px;     /* Ensures it's not too narrow on small screens */
  aspect-ratio: 4 / 3;  /* Maintains a consistent shape (optional) */
  border-radius: 10px;
/*   overflow: hidden; */
  margin: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.project-card img {
  width: 100%;
/*   height: 300px; */
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

/* Dark overlay and text */
.project-card .overlay {
  position: absolute;
/*   top: 0;
  left: 0;
  right: 0;
  bottom: 0;  */
  top: -8px;
  left: -8px;
  height: 95%;
  width: 98%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;     /* <— This keeps it centered horizontally */
  padding:1rem;
  text-align: center;
}


.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(70%);
}

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