/* Base styles for Make My Day Holding corporate website */

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

body {
  /* Use a more elegant typeface – Verdana is clean and refined */
  font-family: Verdana, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

header {
  /* Soften the header with a rich gradient and avoid a flat dark blue */
  /* Brighter gradient for the header to avoid dark, dull tones */
  /* Vibrant gradient for the header – deeper navy blending into bright azure */
  background: linear-gradient(135deg, #003366 0%, #3399ff 100%);
  color: #ffffff;
  padding: 1.25rem 1rem;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  /* Increase the logo size for better visibility */
  height: 60px;
  margin-right: 10px;
}

/* Style for the company name next to the logo */
.company-name {
  font-size: 1.5rem;
  font-weight: normal;
  margin-left: 0.5rem;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  /* Avoid heavy bold navigation text */
  font-weight: normal;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  /* Dark gradient for a striking hero section */
  /* Harmonize hero section with a lighter gradient to avoid dullness */
  /* Match the hero gradient with the refreshed header hues */
  /* Complimentary gradient for the hero section */
  background: linear-gradient(135deg, #004080 0%, #357edd 100%);
  color: #ffffff;
  text-align: center;
  padding: 6rem 1rem;
}

/* Heading in hero uses the accent teal color */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #00BFA6;
}

/* Adjust hero paragraph for readability on new gradient */
.hero p {
  font-size: 1.25rem;
  color: #E1E8ED;
  margin-bottom: 2.5rem;
}

/* Section modifiers */
.section-light {
  background-color: #ffffff;
  color: #333;
}

.section-dark {
  background-color: #f5f7fb;
  color: #333;
}

/* Cards and portfolio styles */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2rem;
  max-width: 350px;
  text-align: center;
  flex: 1 1 280px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}

/* Service card image styling */
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1rem;
}

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

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0A3D62;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #0A3D62;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #555;
}

.card a {
  color: #00BFA6;
  /* Remove unnecessary bold from links inside cards */
  font-weight: normal;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* AI section styling */
.ai-section {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
  padding: 4rem 1rem;
}
.ai-section h2 {
  color: #0A3D62;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.ai-section .ai-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.ai-section .ai-card {
  flex: 1 1 300px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.2s ease-in-out;
}
.ai-section .ai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.ai-section .ai-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00BFA6;
}
.ai-section .ai-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0A3D62;
}
.ai-section .ai-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Portfolio section styling */
.portfolio-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0A3D62;
}
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.portfolio-item {
  flex: 1 1 300px;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.portfolio-item .content {
  padding: 1.5rem;
}
.portfolio-item .content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0A3D62;
}
.portfolio-item .content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.portfolio-item .content a {
  color: #00BFA6;
  text-decoration: none;
  font-weight: normal;
}
.portfolio-item .content a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background-color: #00BFA6;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.btn:hover {
  background-color: #009f8b;
}

.section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  background-color: #0A3D62;
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}

footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

footer a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-form button {
  background-color: #0A3D62;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button:hover {
  background-color: #08345C;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #0A3D62;
}

.legal-content p {
  margin-bottom: 1rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f5f5f5;
  border-top: 1px solid #cccccc;
  padding: 1rem;
  display: none;
  z-index: 9999;
}

.cookie-banner p {
  margin-bottom: 0.5rem;
  color: #333;
}

.cookie-banner button {
  background-color: #0A3D62;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-banner button:hover {
  background-color: #08345C;
}

/* Dark blue section for alternating backgrounds */
.section-darkblue {
  background: linear-gradient(135deg, #003366 0%, #00214d 100%);
  color: #ffffff;
  text-align: center;
}

.section-darkblue h2 {
  color: #00BFA6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-darkblue p {
  color: #e1e8ed;
}

/* Ensure card text in dark sections stays legible by overriding the general paragraph color */
.section-darkblue .card p {
  color: #333333;
}

/* Intro paragraph within services section */
.services-intro {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e1e8ed;
}

/* Logo text styles for MD^2 design */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  line-height: 1;
}

.logo-text .logo-main {
  font-size: 2.2rem;
  font-weight: bold;
  color: #00BFA6;
}

.logo-text .logo-main .logo-superscript {
  font-size: 1rem;
  vertical-align: super;
  color: #00BFA6;
  margin-left: 2px;
}

.logo-text .logo-sub {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: 2rem;
  }
}