/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between; /* logo left, nav right */
  align-items: center; /* vertical center */
  padding: 1rem 4rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* subtle shadow */
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem; /* spacing between menu items */
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s;
}

nav a:hover {
  background-color: #a0522d; /* elegant brown hover */
  color: #fff;
}

/* ===== Hero Section ===== */
.hero {
  height: 90vh;
  background: url('assets/heroBanner.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4); /* overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  padding: 0.8rem 2rem;
  background-color: #a0522d;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero .btn:hover {
  background-color: #8b4513;
}

/* ===== About Section ===== */
.about {
  padding: 4rem 2rem;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
}

/* ===== Gallery Section ===== */
.gallery {
  padding: 4rem 2rem;
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery p {
  color: #555;
  margin-bottom: 2rem;
}

/* ===== Grid Layout for Art Cards ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 equal columns */
  gap: 1.5rem; /* space between cards */
  align-items: start;
}



/* ===== Art Card Styles ===== */
.art-card {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #fff;
  margin-bottom: 30px;
}

.art-card img {
  width: 100%;
  height: 200px; /* uniform height for all images */
  object-fit: cover; /* maintain aspect ratio and cover space */
  display: block;
}

.art-card h3 {
  margin: 0.5rem 0 0 0.5rem;
  font-size: 1.1rem;
}

.art-card p {
  margin: 0.2rem 0 0.5rem 0.5rem;
  color: #777;
  font-size: 0.9rem;
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* --- Overlay effect --- */
.art-card {
  position: relative;          /* parent boundary for overlay */
  overflow: hidden;            /* hide overlay when off-screen */
}

.overlay {
  position: absolute;
  bottom: -100%;               /* start hidden below the card */
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* semi-transparent black */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: bottom 0.4s ease; /* smooth slide */
}

.art-card:hover .overlay {
  bottom: 0;                   /* slide up into view */
}


/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #f5f5f5;
  color: #555;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  header {
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}
