/* General Reset */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #2d3436;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: #367588;
  color: #fefefa;
}

.navbar a {
  color: #fefefa;
  text-decoration: none;
}

.navbar a:hover {
  color: #f7c948;
}

/* Main Titles */
h1,
h2 {
  color: #367588;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

/* Intro Section Styling */
.intro {
  margin: 2rem auto;
  /* Adds vertical space above and below */
  padding: 2rem;
  /* Adds space inside the section */
  max-width: 80%;
  /* Restricts the width for a centered layout */
  border-radius: 10px;
  /* Optional: Adds rounded corners */
  background-color: #f4f4f9;
  /* Light background for distinction */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
}

.intro h2 {
  color: #367588;
  /* Matches the primary color */
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2d3436;
  /* Dark gray for readability */
}

.intro a {
  color: #367588;
  /* Link color matches the primary color */
  text-decoration: underline;
}

.intro a:hover {
  color: #f7c948;
  /* Changes link color on hover for better interaction */
}


/* Buttons */
.btn-primary {
  background-color: #367588;
  border: none;
  color: #fefefa;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #285964;
}

.btn-secondary {
  background-color: #f7c948;
  border: none;
  color: #2d3436;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #d8a63b;
}

/* Footer */
footer {
  background-color: #367588;
  color: #fefefa;
  margin-top: 3rem;
  padding: 1em 0;
  text-align: center;
}

footer a {
  color: #f7c948;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Form Container Layout */
.form-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap; /* Allows stacking on smaller screens */
}

.form-container .info,
.form-container .form {
  flex: 1; /* Ensures both sections take up equal space */
  min-width: 300px; /* Prevents sections from becoming too narrow */
}

.form-container .info {
  max-width: 40%; /* Limits width for better balance */
}

.form-container .form {
  max-width: 60%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-container {
    flex-direction: column; /* Stacks elements vertically */
  }

  .form-container .info,
  .form-container .form {
    max-width: 100%;
  }

  .form-container .form {
    margin-top: 2rem; /* Adds spacing between stacked elements */
  }
}

/* Form Styling */
form {
  background: #fefefa;
  padding: 1.5em;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
  margin-bottom: 0.5em;
  color: #367588;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 1em;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

form input:focus,
form textarea:focus {
  border-color: #367588;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Travel Guide Cards */
.card {
  background-color: #fefefa;
  border: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.card img {
  width: 100%;
  border-bottom: 2px solid #367588;
}

.card-title {
  color: #367588;
  margin: 0.5em 0;
}

.card-text {
  color: #2d3436;
}

.card:hover {
  transform: scale(1.02);
  transition: transform 0.2s;
}

.travel-guides img {
  aspect-ratio: 3 / 4;
  /* Maintain 3:4 aspect ratio */
  width: 100%;
  /* Fill the card container width */
  height: auto;
  /* Maintain aspect ratio */
  object-fit: cover;
  /* Ensures the image covers the area while keeping its proportions */
  border-radius: 5px;
  /* Optional: Matches the card style */
}


/* Links */
a {
  color: #367588;
  text-decoration: none;
}

a:hover {
  color: #f7c948;
  text-decoration: underline;
}

/* Interactive Banner Section */
.interactive-banner {
  position: relative;
  height: 60vh;
  /* Adjust based on the desired height */
  background: url('img/pexels-ivo-rainha-527110-1290141.jpg') no-repeat center center fixed;
  /* Replace with your image path */
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.interactive-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Semi-transparent overlay for better text contrast */
  color: #fefefa;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.interactive-banner h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.interactive-banner p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.interactive-banner .btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
}

/* Scrolling Effect */
html {
  scroll-behavior: smooth;
}

/* Interactive Header */
.interactive-header {
  background-color: #fefefa;
  /* Primary color */
  color: #367588;
  /* Text color */
  padding: 5rem 1rem;
  /* Add vertical spacing */
  text-align: center;
}

.interactive-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease-in-out;
}

.interactive-header p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  animation: fadeIn 2s ease-in-out;
}

.interactive-header .btn {
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: 5px;
  animation: fadeIn 2.5s ease-in-out;
  background-color: #f7c948;
  /* Accent color for button */
  color: #2d3436;
  /* Dark text color for contrast */
  border: none;
}

.interactive-header .btn:hover {
  background-color: #d8a63b;
  /* Slightly darker shade for hover effect */
}

/* Fade-in Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}