/* === IMPORT FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === BASE === */
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  color: #000;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === HEADER === */
header {
  background-color: #f4f4f4;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 2rem 1rem 1rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #222;
  margin-bottom: 1rem;
}

/* === NAVIGATION === */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

nav a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0077cc;
}

nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* === GENERAL CONTAINER === */
.container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}


/* === HOME PAGE HERO === */
.home-container {
  display: flex;
  flex-direction: column;
  justify-content: center;      /* Center content vertically */
  align-items: center;          /* Center content horizontally */
  flex: 1;
  max-width: 900px;
  margin: 0 auto;               /* Remove margin that was pushing it down */
  padding: 2rem 1rem;
  min-height: 100vh;            /* Take full viewport height */
  text-align: center;
}

.hero {
  margin-bottom: 2rem;
}

.slogan {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #003366;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: #a1a1a1;
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #005fa3;
  cursor: pointer;
}

.intro {
  font-size: 1.1rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === CONTACT PAGE === */

.contact-box {
  padding: 30px 40px;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
  background-color: rgba(234, 225, 225, 0.5);
  position: relative;  /* enables z-index */
  z-index: 1;          /* above background at z = -1 */
}

.contact-box h3 {
  margin-bottom: 20px;
  color: #333;
}

.contact-box p {
  margin: 10px 0;
  font-size: 1.1rem;
  color: #333;
  text-align: left;
}

.contact-page {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: transparent;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 2rem 1rem; /* adjust as needed */
  z-index: 0;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/AZ_line.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto; /* scale to full width */
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

/* === PORTFOLIO PAGE === */
.portfolio-container {
  padding: 2rem 1rem;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.portfolio-item {
  flex: 1 1 calc(33.333% - 2rem);
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

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

.productlines h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* === FOOTER === */
footer {
  background-color: #f4f4f4;
  text-align: center;
  padding: 20px;
  color: #444;
  font-size: 0.9rem;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}

.horizontal-research {
  display: flex;
  flex-direction: row;       /* ← ensures horizontal layout */
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 2rem;
  padding: 0 1rem;
}

.research-card img {
  width: 100%;
  height: auto;
  max-height: 160px; /* Add this line */
  object-fit: cover;
}

.research-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.research-card h3 {
  margin: 0.5rem 0 0.2rem;
}

.research-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === .TXT Handling === */
.markdown-body {
  text-align: justify;
  line-height: 1.6;
  padding: 1rem 0;
}

.markdown-body p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #333;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #003366;
}

.markdown-body ul,
.markdown-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}



/* === RESPONSIVE === */
@media (max-width: 768px) {
  .portfolio_cards,
  .productline_cards {
    flex-direction: column;
    align-items: center;
  }
  
  .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.portfolio-card,
.product-card {
  flex: 1 1 300px;       /* grow, shrink, basis for flexibility */
  max-width: 350px;      /* max width to keep cards consistent */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;          /* stretch to fill container height */
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

/* Optional: make sure images don’t shrink */
.card-logo {
  width: 50px;
  height: auto;
  margin-bottom: 1rem;
  flex-shrink: 0;



/* === CONSULTING SERVICES SECTION === */
.consulting-services {
  margin-top: 2rem;
  text-align: center;
}

.consulting-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.consulting-card {
  background-color: #0077cc;
  color: #fff;
  padding: 1.25rem 2rem;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  flex: 1 1 250px;
  max-width: 300px;
  transition: background-color 0.3s ease;
}

.consulting-card:hover {
  background-color: #005fa3;
  cursor: pointer;
}

/* === TESTIMONIAL BOXES === */
.testimonials {
  margin-top: 4rem;
  text-align: center;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.testimonial-box {
  background-color: #ffffff;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  width: 100%;
  text-align: left;
}

.testimonial-box p {
  font-style: italic;
  margin-bottom: 1rem;
  color: #444;
  font-size: 1rem;
}

.testimonial-box span {
  font-weight: bold;
  color: #0077b6;
}

/* === RESPONSIVE FOR CONSULTING & TESTIMONIALS === */
@media (max-width: 768px) {
  .consulting-cards,
  .testimonial-cards {
    flex-direction: column;
    align-items: center;
  }

  .consulting-card,
  .testimonial-box {
    max-width: 90%;
  }
}
