/* /public/css/styles.css */

/* --- General Styles --- */

/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* --- Navigation Bar --- */

.navbar-brand {
  font-weight: bold;
}

/* --- Hero Section --- */

#hero {
  background-image: url('/images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#hero .container {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

#hero p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* --- About Section --- */

#about {
  padding: 4rem 0;
}

#about h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.about-content-block {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.about-content-block p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-content-block img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin-top: 1rem;
}

/* --- Portfolio Section --- */

#portfolio {
  padding: 4rem 0;
  background-color: #f1f1f1;
}

#portfolio h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.portfolio-item {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.portfolio-item img {
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.portfolio-item a.btn-primary {
  margin-top: 0.5rem;
}

/* --- Blog Section --- */

#blog {
  padding: 4rem 0;
}

#blog h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-post {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.blog-post h3 {
  margin-bottom: 1rem;
}

.blog-post p {
  font-size: 1rem;
  line-height: 1.5;
}

.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.blog-post .btn-primary {
  margin-top: 1rem;
}

/* --- Admin Panel --- */

#admin {
  padding: 4rem 0;
}

#admin h2 {
  margin-bottom: 2rem;
  text-align: center;
}

#admin .nav-tabs .nav-link.active {
  background-color: #ffffff;
  border-color: #dee2e6 #dee2e6 #ffffff;
}

#admin .tab-content {
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#admin-form .form-label {
  font-weight: 500;
}

#admin-form .btn-primary {
  width: 100%;
}

#about-content-blocks-list .about-content-block {
  cursor: grab;
}

#about-content-blocks-list .about-content-block:active {
  cursor: grabbing;
}

.remove-content-block,
.remove-portfolio-item,
.delete-blog {
  margin-top: 1rem;
}

/* --- Modal Styles (if any) --- */

.modal-content {
  border-radius: 0.5rem;
}

.modal-header {
  border-bottom: none;
}

.modal-footer {
  border-top: none;
}

/* --- Alerts --- */

.alert {
  margin-top: 1rem;
}

/* --- Responsive Adjustments --- */

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1.2rem;
  }

  .about-content-block,
  .portfolio-item,
  .blog-post {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  #hero {
    height: 50vh;
  }

  #hero h1 {
    font-size: 2rem;
  }

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