/* General Body Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

/* Reusable Container */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  overflow: hidden;
}

/* Header and Navigation Styles */
/* header {
  background: #fff;
  color: #333;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo h1 {
  margin: 0;
  color: #5061c4;
  font-size: 1.8rem;
}

header a {
  text-decoration: none;
  color: #333;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

header nav ul li {
  margin-left: 20px;
}

header nav ul li a {
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #5061c4;
} */

/* Hero Section Styles */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  /* background-color: #fff;  <-- REMOVE OR COMMENT OUT THIS LINE */
  padding: 4rem 0;
  position: relative; /* <-- ADD THIS */
  overflow: hidden; /* <-- ADD THIS */
}
.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
  position: relative; /* <-- ADD THIS */
  z-index: 2; /* <-- ADD THIS */
}

/* --- Hero Background Slideshow --- */
.hero-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Sits behind the hero content */
  overflow: hidden;
  opacity: 0.7; /* Adjust for desired faintness */
  background: #000; /* Fallback color */
}

.hero-slideshow-track {
  display: flex;
  height: 100%;
  width: max-content; /* Automatically sets width to fit all images */
  animation: scroll-right 60s linear infinite; /* 60s duration, adjust as needed */
}

.hero-slideshow-track img {
  height: 100%;
  width: auto;
  object-fit: cover;
  padding: 0 1rem; /* Optional spacing between images */
}

/* Keyframes for a left-to-right scrolling animation */
@keyframes scroll-right {
  0% {
    /* Starts at the beginning of the *second* set of images */
    transform: translateX(-50%);
  }
  100% {
    /* Scrolls right until it reaches the beginning of the *first* set */
    transform: translateX(0);
  }
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #222;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

/* Call-to-Action Button Styles */
.cta-button {
  display: inline-block;
  background-color: #5061c4;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #3d4a9b;
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  text-align: center;
  max-width: 100%;
}

.hero-image img {
  max-width: 5.5rem;
  height: 5.5rem;
  border-radius: 20%; /* Makes the image circular */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 0 1rem 0 0;
}

/* Footer Styles */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  header nav ul {
    margin-top: 1rem;
  }

  .hero .container {
    flex-direction: column-reverse; /* Stack image above text on mobile */
    text-align: center;
  }
}

/* Home Page - Publications Preview */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.publication-card {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.publication-card h4 {
  margin-top: 0;
  color: #5061c4;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.publication-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Reusing .skills-list from global.css, but ensuring it looks good on home */
.home-expertise .skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}
.home-expertise .skills-list li {
  background: #ffffff;
  color: #333; /* Darker text for better contrast on white */
  padding: 1rem 1.5rem; /* More padding for a boxier feel */
  border-radius: 8px; /* Slightly rounded corners for a modern card look */
  font-weight: 500;
  border: 1px solid #e0e0e0; /* Subtle border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Initial shadow for depth */

  /* Smooth transition for the floating effect */
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* The "floating" effect on hover */
.home-expertise .skills-list li:hover {
  transform: translateY(-6px); /* Lifts the box up */
  box-shadow: 0 10px 20px rgba(80, 97, 196, 0.15); /* A softer, colored shadow for a nice glow */
  color: #5061c4; /* Change text color on hover */
}

/* Utility: spacing for CTA sections */
.section-cta { margin-top: 2.5rem; }

/* --- Web Development Team Section --- */

.developers-section {
    background-color: #f8f9fa; /* Light grey background */
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.developers-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.developer-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #5061C4; /* Your Theme Blue */
    position: relative;
    overflow: hidden;
}

.developer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(80, 97, 196, 0.15);
}

/* Avatar / Icon Circle */
.dev-avatar {
    font-size: 3rem;
    background: #eef0f8;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: block;
}

/* Typography */
.developer-card h4 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dev-role {
    color: #5061C4;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-dept {
    color: #777;
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .developers-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .developer-card {
        width: 100%;
        max-width: 320px;
    }
}