/* General Styles */
body {
  font-family: "Cambria", Arial, sans-serif;
  background-color: #383838;
  color: #ffffff;
  scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background-image: linear-gradient(
      to bottom right,
      rgba(0, 4, 40, 0.8),
      rgba(14, 58, 96, 0.8)
    ),
    url("./assets/img/hero-sec.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.aboutSec {
  /* height: 50vh; */
  background-image: linear-gradient(
      to bottom right,
      rgba(0, 4, 40, 0.8),
      rgba(14, 58, 96, 0.8)
    ),
    url("./assets/img/aboutus.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.hero-section h1 {
  animation: fadeInDown 1s ease-in-out;
}

.hero-section p {
  animation: fadeInUp 1.5s ease-in-out;
}

.hero-section a {
  animation: fadeInUp 2s ease-in-out;
}

/* Portfolio Section */
.portfolio-section {
  background-color: #1c1c1c;
}

.portfolio-section .card {
  border: none;
  transition: transform 0.3s ease-in-out;
}

.portfolio-section .card:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact-section {
  background-color: #0a0a0a;
}

/* Footer Styling */
footer {
  border-top: 5px solid #0149a2; /* Top border */
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-title::after {
  content: "";
  width: 50px;
  height: 2px;
  background-color: #f8f9fa;
  position: absolute;
  bottom: -10px;
  left: 0;
  animation: slide-in 1s ease-out;
}

.footer-link {
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
  color: #ffc107;
  transform: translateX(5px);
}

.social-link {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
  color: #ffc107;
  transform: scale(1.2);
}

.about-section {
  padding: 5rem 0;
  background-color: linear-gradient(
    rgba(26, 32, 91, 0.8),
    rgba(0, 78, 146, 0.8)
  );
}

.about-main {
  background: linear-gradient(rgba(69, 69, 70, 0.8), rgba(90, 106, 117, 0.8));
  padding: 2rem;
  border-radius: 8px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #f8f9fa;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background-color: #ffc107;
  position: absolute;
  bottom: -10px;
  left: 0;
  animation: expand-bar 1s ease-out;
}

.lead {
  font-size: 1.2rem;
  color: #e0e0e0;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: 0.5rem;
}

.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.team-section {
  background-color: #1e1e1e; /* Dark gray background for team section */
  color: #f4f4f4; /* Light text color for contrast */
  text-align: center;
  padding: 20px 0;
  border-radius: 8px; /* Rounded corners for the section */
}

.team-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #f4f4f4; /* Ensure header color contrasts with background */
}

.team-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.team-member {
  background-color: #424242; /* Slightly lighter gray for contrast */
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.team-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px; /* Center image horizontally and add bottom margin */
  transition: transform 0.3s ease;
  border: 3px solid #f4f4f4; /* White border for contrast */
}

.team-img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

.team-member:hover .team-img {
  transform: scale(1.1);
}

.team-member h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #ffffff; /* Bright white for names */
}

.team-member p {
  color: #d3d3d3; /* Light gray for positions and details */
  font-size: 0.9em;
  margin-bottom: 10px;
}

.team-details {
  font-size: 0.85em;
  color: #b0b0b0; /* Medium-light gray for detailed text */
  line-height: 1.5;
  margin-top: 10px;
  flex-grow: 1;
}

/* Tablet styles */
@media (min-width: 768px) {
  .team-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .team-member {
    width: 45%; /* Two cards per row on tablets */
    max-width: 300px;
  }
}
@media (max-width: 768px) {
  .team-container {
    flex-direction: column;
    gap: 30px;
  }
}

/* Desktop styles */
@media (min-width: 1200px) {
  .team-member {
    width: 30%; /* Three cards per row on desktops */
    max-width: none; /* Remove max-width restriction */
  }
}
/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    width: 0;
  }
  to {
    width: 50px;
  }
}

@keyframes expand-bar {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.2rem;
  }
}
