/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* ========== Layout ========== */
main {
  flex: 1;
  padding: 30px 8%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== Header ========== */
header {
  background-color: #4a90e2;
  color: white;
  padding: 30px 8%;
  text-align: center;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header h3 {
  font-size: 1.1rem;
  font-style: italic;
  color: #e0f0ff;
  margin-bottom: 20px;
}

/* Navigation */
header nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: #fe9400;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
}

header nav a:hover {
  background-color: #ff4400;
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* ========== Sections (Card Style) ========== */
section {
  background-color: #ffffff;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 10px;
  border-left: 4px solid #4a90e2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

section h2 {
  color: #4a90e2;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

section p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
}

section p + p {
  margin-top: 10px;
}

/* ========== Split Section (Images + Text) ========== */
.split-section {
  display: flex;
  align-items: center;
  gap: 30px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
}

.split-image {
  flex: 1;
  text-align: center;
}

.split-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.services-page .split-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ========== Buttons & Links ========== */
a.button,
button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 20px;
  background-color: #4a90e2;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

a.button:hover,
button:hover {
  background-color: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* Inline links */
section a:not(.button) {
  color: #357abd;
  font-weight: bold;
  text-decoration: none;
}

section a:not(.button):hover {
  text-decoration: underline;
}

/* ========== Lists ========== */
section ul {
  margin-left: 30px;
  margin-bottom: 15px;
}

section ul li {
  margin-bottom: 8px;
}

/* ========== Forms ========== */
form {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  max-width: 500px;
}

form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}


/* ========== Reviews Page ========== */
.reviews-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.reviews-group h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.review-card {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.review-rating {
  font-size: 1.2rem;
  color: #fe9400;
  margin-bottom: 10px;
}

.review-text {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.8;
}

.review-author {
  display: block;
  text-align: right;
  font-weight: bold;
  color: #4a90e2;
  font-style: normal;
}

/* ========== About Page Specifics ========== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 20px 0 40px;
}

.image-item {
  height: 200px; /* Fixed height for consistent slot size */
  display: flex; /* Use flexbox to center content */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  background-color: #f0f0f0; /* Light background for the item */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.image-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensure full image is displayed */
  border-radius: 8px; /* Slightly smaller border-radius for the image inside the item */
}

.about-me-profile-image img {
  max-width: 70%; /* Smaller than full width, but larger than gallery items */
  border-radius: 50%; /* Make it circular */
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments for the gallery */
@media (max-width: 900px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }
}


/* ========== Footer ========== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 8%;
}

/* ========== Responsive Design ========== */
@media (max-width: 900px) {
  .split-section,
  .split-section.reverse {
    flex-direction: column;
  }

  .split-image {
    margin-top: 15px;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  header h3 {
    font-size: 1rem;
  }

  main {
    padding: 20px 5%;
  }

  section {
    padding: 20px;
  }
}


/* New styles for top service request button on services.html */
.top-service-cta-container {
  text-align: center;
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 15px 0;
}

.top-service-cta {
  display: block;
  width: 80%; /* Make it wide */
  max-width: 400px; /* Limit max width */
  margin: 0 auto 25px auto; /* Center it and add bottom margin */
  padding: 15px 30px;
  font-size: 1.2rem;
  background-color: #4a90e2; /* Blue button */
  border-radius: 50px; /* More rounded */
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.top-service-cta:hover {
  background-color: #5a9bdc; /* A calmer shade of blue */
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  .top-service-cta {
    padding: 12px 25px;
    font-size: 1rem;
  }
}


/* New styles for urgent message on index.html */
.urgent-message {
  text-align: left; /* Align all text content to the left */
  padding: 20px 20px; /* Reduced top padding */
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.urgent-message .button {
  display: block;
  width: 80%;
  max-width: 400px;
  margin-left: auto; /* Explicitly set left margin to auto */
  margin-right: auto; /* Explicitly set right margin to auto */
  margin-bottom: 15px; /* Adjusted to move button up */
  padding: 15px 30px;
  font-size: 1.2rem;
  background-color: #4a90e2;
  border-radius: 50px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  text-align: center; /* Center the text inside the button */
}

.urgent-message .button:hover {
  background-color: #5a9bdc; /* A calmer shade of blue */
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.urgent-text {
  font-size: 1.2rem; /* Adjusted font size */
  font-weight: bold;
  color: #333;
  margin-bottom: 20px; /* Increased margin */
  padding-bottom: 20px; /* Add padding to the bottom */
  border-bottom: 1px solid #ddd; /* Add a separator line */
  line-height: 1.6;
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
  text-align: left; /* Align text to the left */
}

.urgent-text i {
  font-size: 1.8rem; /* Larger icon size */
  margin-right: 20px; /* Space between icon and text */
  color: #4a90e2; /* Icon color */
  width: 40px; /* Fixed width for alignment */
  text-align: center;
}

.urgent-text:last-child {
  margin-bottom: 0;
  border-bottom: none; /* No border for the last item */
  padding-bottom: 0;
}

/* ========== Links Page ========== */
.links-page .links-container {
  text-align: center;
  padding: 60px 20px;
}

.links-page .button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.links-page .button-row {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.links-page .button {
  width: 280px;
  padding: 20px;
  font-size: 1.2rem;
  border-radius: 12px;
  text-align: center;
}

#request-service-btn {
  background-color: #4a90e2; /* Blue */
  transform: scale(1.1);
}

#request-service-btn:hover {
  background-color: #357abd;
}

#review-page-btn {
  background-color: #5cb85c; /* Greener */
  color: white;
}

#review-page-btn:hover {
  background-color: #4cae4c;
}

#main-website-btn {
  background-color: #20c997; /* Teal */
}

#main-website-btn:hover {
  background-color: #17a284;
}


/* Adjust for smaller screens */
@media (max-width: 768px) {
  .urgent-text {
    font-size: 1.1rem;
  }
  .urgent-message .button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .links-page .button-row {
    flex-direction: column;
  }
  .links-page .button {
    width: 100%;
  }
}
