/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {		
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 2rem 0;
}

header {
  background-color: white; /*#0077b5*/
  color: white;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #2186ECff;/*#fff*/
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: #f4f4f4;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section {
  padding: 4rem 0;
}

.section.light {
  background-color: #cfe8f9;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  flex: 1 1 30%;
  background: white;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #1e2a38;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.button:hover {
  background-color: #2186ECff; /* matches footer blue */
}

footer {
  background: #2186ECff;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}

.social-links {
  display: flex;
  gap: 20px; /* space between icons */
  justify-content: center; /* center the links horizontally */
  padding: 15px 0;
}

.social-links a {
  color: #555; /* default icon color */
  font-size: 1.5rem; /* icon size */
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #0077b5; /* change color on hover, e.g. LinkedIn blue */
}

.social-links a:focus {
  outline: 2px solid #0077b5;
  outline-offset: 4px;
}

/* Card Hover Effect */
.card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px); /* "pop up" effect */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* more prominent shadow */
  cursor: pointer;
  color: black;
}

.card:hover {
  background-color: #cfe8f9;
}

/*Card toggle for mobile devices*/
.card.active {
  background-color: #cfe8f9;
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  color:black;
}

.image {
  width: 100vw;                  /* full viewport width */
  min-height: 500px;             /* adjust height as needed */
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;           /* vertically center content */
  /* Optional: overlay a dark tint for readability */
  position: relative;
  color: white;
}

.image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* dark overlay */
  z-index: 0;
}

.image > .container {
  position: relative;
  z-index: 1;
}

/*Card toggle feature*/
/* Grid container */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch; /* stretch cards to equal height */
  padding: 0 10px;
}

/* Base card styles */
.card {
  background: #2186ECff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  color: white;

  display: flex;
  flex-direction: column; /* stack content vertically */
  justify-content: center; /* center content vertically */
  align-items: center;
  padding: 15px;

  /* Set min height for alignment */
  min-height: 300px;

  /* Take full width on mobile */
  width: 100%;
  max-width: 100%;

  text-align: center;
  transition: all 0.3s ease;
}

/* Card heading */
.card h3 {
  margin: 0;
  font-size: 1.2rem;
  flex-shrink: 0; /* prevent shrinking */
}

/* Description hidden by default */
.card-description {
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  margin-top: 1rem;
  flex-grow: 1; /* allow description to fill space when visible */
}

/* Active card styles */
.card.active {
  justify-content: flex-start; /* top align content */
  min-height: auto; /* let height adjust with content */
  text-align: justify;
}

.card.active h3 {
  display: none;
}

.card.active .card-description {
  display: block;
  align-items: center;
  text-align: justify;
}

/* Image card styles */
.image-card {
  cursor: default;
  padding: 0;
}

.image-card img {
  width: 100%;
  height: 325px;           /* Fixed height */
  object-fit: cover;       /* Ensures image fills the box without distortion */
  border-radius: 5px;
  display: block;
}

/* Tablet devices: 2 cards per row */
@media (min-width: 600px) {
  .card {
    width: 45%;
    max-width: 45%;
  }
}

/* Desktop devices: 3 cards per row */
@media (min-width: 1024px) {
  .card {
    width: 30%;
    max-width: 30%;
  }
}

/*Back to top button*/

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 1000;
  background-color: #2186EC; /* Match footer blue */
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none; /* Hidden by default */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #0d6efd; /* Slightly darker blue on hover */
}

.section {
  padding: 60px 0;
}

#consulting {
  background-color: #cfe8f9;
  color: #222;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#consulting p {
	
  max-width: 700px;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}

#about p {
  max-width: 700px;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}