:root {
  --primary-bg: #ffffff;        /* Clean white background */
  --secondary-bg: #f0f5ff;      /* Light blue background */
  --accent-primary: #4361ee;    /* Vibrant blue */
  --accent-secondary: #7209b7;  /* Rich purple */
  --accent-tertiary: #3bc9db;   /* Bright cyan */
  --text-dark: #2b2d42;        /* Deep blue-gray for text */
  --text-light: #ffffff;       /* White text */
  --card-gradient: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.1));
  --header-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

body {
  background-color: var(--primary-bg);
  color: var(--text-dark);
}

.section {
  padding: 60px 20px;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.bg-light {
  background-color: var(--secondary-bg) !important;
  color: var(--text-dark) !important;
}

.card {
  background: var(--card-gradient);
  border: 1px solid rgba(67, 97, 238, 0.1);
  backdrop-filter: blur(8px);
}

footer {
  background: var(--header-gradient);
  color: var(--text-light);
  padding: 1.5rem 0;
}

header {
  background: var(--header-gradient);
  color: var(--text-light);
  padding: 1rem 0;
}

.header-logo-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.header-title h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.header-title .lead {
  font-size: 1rem;
  opacity: 0.9;
}

.header-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.header-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .header-title h1 {
    font-size: 1.5rem;
  }
  
  .header-nav {
    margin-top: 1rem;
    font-size: 0.7rem;
  }
  
  .header-nav .nav {
    justify-content: center !important;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust based on your header height */
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-spacer {
  height: 110px; /* Should match your header height */
}

/* Optional: Make the header more compact when scrolling */
.fixed-header.scrolled {
  padding-top: 5px;
  padding-bottom: 5px;
}

.fixed-header.scrolled .header-logo-container {
  width: 60px;
  height: 60px;
}

.fixed-header.scrolled .header-title h1 {
  font-size: 1.4rem;
}

.fixed-header.scrolled .header-title .lead {
  font-size: 0.9rem;
}

/* Staff Section */
.staff-headshot {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--card-gradient);  /* Using subtle card gradient instead */
  padding: 3px;                      /* Reduced padding */
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.1);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(67, 97, 238, 0.1);  /* Very subtle border */
}

.staff-headshot:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.2);
  border-color: var(--accent-primary);  /* Accent color on hover */
}

/* Project Section */
.project-card {
  background: var(--card-gradient);
  border: 1px solid rgba(67, 97, 238, 0.1);
  border-radius: 15px;
  padding: 20px;
  height: 100%;           /* Full height of grid row */
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 360px;          /* Limit maximum width */
  margin: 0 auto;            /* Center the card */
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
  border-color: var(--accent-primary);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
}

.project-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.project-screenshot {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: left top;    /* Crop from top-left corner */
  border-radius: 10px;
  margin-bottom: 0px;
  transition: all 0.4s ease;
}

.project-card:hover .project-screenshot {
  transform: scale(1.02);
}

.project-title {
  color: var(--accent-primary);
  font-size: 1.25rem;
  margin: 15px 0;
  font-weight: 600;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 0px;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: left;
}

.service-icon-small-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--header-gradient);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 6px;
}

.service-icon-small {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Makes the icons white */
}

.project-tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tech-tag {
  background: var(--header-gradient);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .project-screenshot {
    height: 140px;          /* Reduced from 180px */
  }
}

@media (max-width: 576px) {
  .project-screenshot {
    height: 120px;          /* Reduced from 160px */
  }
  
  .project-card {
    max-width: 320px;       /* Slightly narrower on mobile */
  }
}

/* Services Section */
.service-item {
  background: white;
  border: 0px solid rgba(67, 97, 238, 0.1);
  padding: 25px;
  border-radius: 0px;
  height: 100%;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.1);
}

.service-icon-large {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  background: var(--header-gradient);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.service-item:hover .service-icon-large {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.service-icon {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1); /* Makes the icons white */
  opacity: 1;
  transition: all 0.3s ease;
}

.service-details {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.service-details li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  padding-top: 80px;
  padding-bottom: 40px;
}

.featured-clients {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.featured-clients li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  text-align: left;
}

.featured-clients li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.client-list {
  font-weight: 500;
  color: var(--accent-secondary);
  margin-bottom: 15px;
}

.photo-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(67, 97, 238, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.photo-frame:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.team-photo {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.photo-caption {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .featured-clients {
    max-width: 600px;     /* Limit width on mobile */
    margin: 0 auto;       /* Center the container */
    text-align: left;     /* Keep text left-aligned */
  }
  
  .featured-clients li {
    text-align: left;     /* Maintain left alignment */
    padding-right: 15px;  /* Add some right padding for readability */
  }
}
