/* Basic Reset & Body Styles */
body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #333;
}

/* Header & Navigation */
header {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #3498db;
}

/* Scrolled state for the header */
header.scrolled {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo,
header.scrolled nav a {
  color: #2c3e50;
}
header.scrolled nav a:hover {
  color: #3498db;
}

/* Main Content & Sections */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 60px 0;
  border-bottom: 1px solid #ddd;
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #2c3e50;
}

/* Hero Section */
#hero {
  text-align: center;
  padding: 80px 0;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #555;
}

.cta-button {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: #2980b9;
}

/* Services Section */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-bottom: 15px;
  color: #3498db;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #2c3e50;
  color: #ecf0f1;
  margin-top: 40px;
}
/* New Styles for Why Us & Markets Sections */
.feature-cards,
.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

#why-us .card h3 {
  color: #27ae60; /* A green to differentiate */
}

#markets .card h3 {
  color: #8e44ad; /* A purple to differentiate */
}

/* Portfolio Section */
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: -20px auto 40px;
  font-size: 1.1rem;
  color: #555;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* To keep the image corners rounded */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.portfolio-content {
  padding: 25px;
  flex-grow: 1;
}

.portfolio-content h3 {
  margin-bottom: 15px;
  color: #e67e22; /* An orange to differentiate */
}
/* Meet the Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-member {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #ecf0f1;
}

.team-member h3 {
  margin-bottom: 5px;
  color: #2c3e50;
}

.team-member .team-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3498db;
  margin-bottom: 15px;
}

/* Testimonials Section */
#testimonials {
  background-color: #fff; /* A slightly different background to make it stand out */
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: #f4f4f9; /* Using the body background color for the card */
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid #3498db;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card .quote p {
  margin: 0;
}

.testimonial-card blockquote.quote {
  margin: 0;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-card .author {
  text-align: right;
}

.testimonial-card .author strong {
  display: block;
  color: #2c3e50;
}

.testimonial-card .author span {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Connect Section (Blog + Contact) */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.connect-column h2 {
  text-align: left;
}

.connect-column .section-intro {
  text-align: left;
  margin: -20px 0 40px;
}

/* Blog Sidebar Styles */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-post-preview {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.blog-post-preview:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-post-preview .post-date {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 10px;
}

.blog-post-preview h3 {
  margin-bottom: 15px;
  color: #c0392b; /* A reddish color for blog titles */
}

.blog-post-preview .read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.blog-post-preview .read-more:hover {
  text-decoration: underline;
}

/* Contact Form Styles (in the new layout) */
#contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsive adjustments for the new section */
@media (max-width: 900px) {
  .connect-grid {
    grid-template-columns: 1fr;
  }
}
/* Interactive FAQ Section Styles */
.faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Important for the max-height transition */
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  color: #3498db;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
  padding: 0 25px 25px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Active state for FAQ item */
.faq-item.active .faq-answer {
  max-height: 300px; /* Adjust if your answers are longer */
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(180deg);
}
/* --- Scroll Animation --- */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #3498db;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  text-decoration: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s ease;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: #2980b9;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2c3e50; /* Matches header/footer */
  color: #ecf0f1;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 101; /* Above other fixed elements */
  transition: transform 0.5s ease-in-out;
  transform: translateY(100%); /* Start hidden below the screen */
}

.cookie-banner.is-visible {
  transform: translateY(0); /* Slide into view */
}

.cookie-banner p {
  margin: 0;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* 404 Not Found Page */
.not-found-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 60vh; /* Use viewport height to help with vertical centering */
  padding: 40px 2rem;
  border-bottom: none;
}

.not-found-section h1 {
  font-size: 10rem;
  font-weight: bold;
  color: #3498db;
  margin: 0;
  line-height: 1;
}

.not-found-section p {
  font-size: 1.5rem;
  color: #555;
  margin: 20px 0 30px;
}
}
