:root {
  --primary-color: #34495e; /* Dark Blue-Gray */
  --secondary-color: #e74c3c; /* Red-Orange Accent */
  --text-color: #2c3e50; /* Darker Blue-Gray for text */
  --light-text-color: #ecf0f1; /* Light Gray for text on dark backgrounds */
  --background-color: #f8f9fa; /* Light background */
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap");

/* Basic Reset & Body Styles */
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure body takes full viewport height */
}

.main-content-wrapper {
  flex-grow: 1; /* Allow main content to grow and push footer down */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

/* Navigation Bar */
.navbar {
  background-color: var(--card-background);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color);
}

.navbar-toggler {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 0.5rem;
}

.navbar-toggler-icon {
  line-height: 1;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 40px 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--light-text-color);
}

.profile-pic {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 5px solid var(--light-text-color);
  margin-top: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #c0392b; /* Darker red */
  transform: translateY(-2px);
}

/* Featured Artworks Section */
.featured-artworks {
  padding: 80px 0;
}

.featured-artworks h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.8rem;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.artwork-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.artwork-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.artwork-card img {
  max-width: 100%;
  height: 220px; /* Fixed height for images */
  object-fit: cover; /* Ensure images cover the area */
  display: block;
  width: 100%;
}

.artwork-card .card-body {
  padding: 20px;
}

.artwork-card h5 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.artwork-card p {
  font-size: 0.95rem;
  color: #7f8c8d; /* Gray */
  margin-bottom: 15px;
}

/* About and Contact Content */
.about-content,
.contact-content {
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

.about-content p,
.contact-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-content a,
.contact-content a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.about-content a:hover,
.contact-content a:hover {
  text-decoration: underline;
}

.contact-content ul {
  list-style: none;
  padding: 0;
}

.contact-content ul li {
  margin-bottom: 0.5rem;
}

.contact-content ul li a {
  display: inline-flex;
  align-items: center;
}

/* Artwork Detail Page */
.artwork-detail-content {
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.artwork-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.artwork-detail-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.artwork-detail-content p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.artwork-detail-content p strong {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 30px;
  margin-top: 80px;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  /* .navbar-nav { */
  /*   flex-direction: column; */
  /*   width: 100%; */
  /*   display: none; /* Hidden by default on mobile */
  */
  /*   text-align: center; */
  /*   margin-top: 1rem; */
  /* } */

  .navbar-nav.active {
    display: flex; /* Show when active */
  }

  .nav-item {
    margin: 10px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .featured-artworks {
    padding: 50px 0;
  }

  .featured-artworks h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
  }

  .artwork-card img {
    height: 200px;
  }

  .artwork-detail-content {
    padding: 20px;
  }

  .artwork-detail-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .profile-pic {
    width: 200px;
    height: 200px;
  }

  .featured-artworks h2 {
    font-size: 1.8rem;
  }

  .artwork-card h5 {
    font-size: 1.2rem;
  }

  .artwork-detail-content h2 {
    font-size: 1.8rem;
  }
}

