/* About Us Styles */
.about-section {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
}

.about-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-light.jpeg');
  opacity: 0.03;
  z-index: 0;
}

/* About Content Section - UPDATED FOR WHO WE ARE PAGE */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
  align-items: stretch; /* Ensure both columns stretch to the same height */
}

.about-text-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content evenly */
  padding: 30px 0; /* Add some padding to create space */
}

.about-text-block .lead-text {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--secondary-color);
  line-height: 1.8;
}

.about-text-block .main-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  flex-grow: 1; /* Allow this element to grow and take up available space */
}

.about-text-block .btn-container {
  margin-top: auto; /* Push button to the bottom */
  padding-top: 20px;
}

.about-text-block .btn {
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
  height: 600px; /* Set a fixed height for the grid */
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.grid-item.large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.grid-item.full-width {
  grid-column: 1 / span 2;
  grid-row: 3;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.1);
}

/* Values Section - UPDATED FOR WHO WE ARE PAGE */
.values-section {
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

.values-section .section-header {
  margin-bottom: 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.value-card {
  background: #f9f9f9;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.value-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  height: 70px;
  width: 70px;
  line-height: 70px;
  border-radius: 50%;
  background-color: rgba(230, 126, 34, 0.1);
  display: inline-block;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(360deg);
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--secondary-color);
}

.value-card p {
  color: #555;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-photo-grid {
    height: 500px; /* Slightly smaller height on tablets */
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-photo-grid {
    height: 400px; /* Smaller height on medium mobile */
  }
  
  .about-text-block .lead-text {
    font-size: 1.2rem;
  }
  
  /* Timeline adjustments for mobile */
  .timeline {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 10px;
  }
  
  .timeline-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .about-photo-grid {
    height: 350px; /* Even smaller height on small mobile */
    gap: 10px; /* Smaller gap between items */
  }
  
  /* Explicitly maintain the same grid structure */
  .grid-item.large {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  
  .grid-item.full-width {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-content {
    padding: 20px;
    width: 100%;
  }
  
  .timeline-item {
    margin-bottom: 30px;
  }
}

/* About Page Styles */
#about-page {
  overflow-x: hidden;
}

/* Hero Section with Parallax */
.about-hero {
  height: 80vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.about-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.about-hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.about-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

.about-hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
  text-align: center;
}

.about-hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 1px;
  text-align: center;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.text-center {
  text-align: center !important;
}

.section-header .subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

/* About Content */
.about-section {
  padding: 100px 0;
  background-color: #fff;
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.about-text-center .lead-text {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--secondary-color);
  line-height: 1.8;
}

.about-text-center .main-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.about-image-full {
  width: 100%;
  margin-bottom: 60px;
  position: relative;
}

.about-image-full img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
}

.value-card {
  background: #f9f9f9;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.value-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  height: 70px;
  width: 70px;
  line-height: 70px;
  border-radius: 50%;
  background-color: rgba(230, 126, 34, 0.1);
  display: inline-block;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--secondary-color);
}

.value-card p {
  color: #555;
  line-height: 1.7;
}

/* Timeline Section */
.journey-section {
  padding: 100px 0;
  background-color: #f9f9f9;
  position: relative;
}

.journey-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-light.jpeg');
  opacity: 0.05;
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 0;
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.timeline-content p {
  color: #555;
  line-height: 1.7;
}

/* Mobile adjustments for timeline */
@media (max-width: 768px) {
  .timeline {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 10px;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 22px;
  }
  
  .timeline-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .timeline-content {
    padding: 20px;
    width: 100%;
  }
  
  .timeline-item {
    margin-bottom: 30px;
  }
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background-color: #fff;
}

.team-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.2rem;
  color: #555;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-image {
  position: relative;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230, 126, 34, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
  opacity: 1;
}

.member-social {
  display: flex;
  gap: 15px;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.member-social a:hover {
  transform: translateY(-5px);
}

.member-info {
  padding: 25px;
  text-align: center;
}

.member-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.member-info .position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.member-info .bio {
  color: #555;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(to right, rgba(52, 73, 94, 0.85), rgba(26, 42, 58, 0.85));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  position: relative;
}
#cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(52, 73, 94, 0.85), rgba(26, 42, 58, 0.85));
  z-index: 1;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.cta-content .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta-content .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-text-center {
    padding: 0 20px;
  }
  
  .timeline:before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    left: 80px !important;
  }
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 3rem;
  }
  
  .about-hero p {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .about-text-center .lead-text {
    font-size: 1.2rem;
  }
  
  .about-image-full img {
    height: 350px;
  }
  
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .cta-content h2 {
    font-size: 2.2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .about-hero h1 {
    font-size: 2.5rem;
  }
  
  .about-hero p {
    font-size: 1rem;
  }
  
  .about-text-center .lead-text {
    font-size: 1.1rem;
  }
}

/* Enhanced Project Detail Styles */
.project-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .project-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.project-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-main-image:hover img {
    transform: scale(1.03);
}

.project-info h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #333;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.meta-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
}

.meta-value {
    font-size: 1.1em;
    color: #333;
}

.project-description {
    margin-bottom: 40px;
}

.project-description h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.project-description h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.project-description p {
    line-height: 1.7;
    color: #555;
}

/* Enhanced Gallery Styles */
.project-gallery.full-width {
    grid-column: 1 / -1; /* Make it span all columns */
    width: 100%;
    margin-bottom: 30px;
}

.project-gallery h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.project-gallery h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Enhanced Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-counter {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Make navigation buttons more visible on hover */
.lightbox-container:hover .lightbox-nav {
    opacity: 1;
}

/* Responsive adjustments for navigation buttons */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}

/* Larger screens get even bigger nav buttons */
@media (min-width: 1200px) {
    .lightbox-nav {
        font-size: 50px;
        width: 70px;
        height: 70px;
    }
    
    .lightbox-nav.prev {
        left: 30px;
    }
    
    .lightbox-nav.next {
        right: 30px;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
    font-size: 18px;

  object-fit: cover;
  transition: transform 0.8s ease;
}

#full-width-showcase:hover .showcase-image img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  align-items: center;
}

.showcase-content {
  /* max-width: 600px; */
  color: white;
  padding: 0 20px;
}

.showcase-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.showcase-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  text-align: center;
}

.showcase-buttons {
  display: flex;
  gap: 20px;
  justify-content: center; /* Center the buttons horizontally */
  margin-top: 30px;
}

.btn-outline.light {
  border: 2px solid white;
  color: white;
  background-color: transparent;
}

.btn-outline.light:hover {
  background-color: white;
  color: var(--secondary-color);
}

/* Testimonials Section with responsive carousel */
#testimonials {
  width: 100%;
  background-color: #f9f9f9;
  padding: 60px 0;
  text-align: center;
}

.testimonial-slider {
  width: 90%;
  max-width: 1800px;
  margin: 30px auto 0;
  position: relative;
  padding: 0 40px;
}

.testimonial-slide {
  position: relative;
  min-height: 250px; /* Minimum height */
  height: auto; /* Allow auto height */
  width: 100%;
  overflow: hidden;
  transition: height 0.3s ease; /* Smooth height transitions */
}

.testimonial-content {
  background-color: white;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  height: auto !important; /* Force auto height with !important */
  min-height: 200px; /* Minimum height */
  display: flex;
  flex-direction: column;
  position: absolute;
  box-sizing: border-box;
  transition: left 0.5s ease, opacity 0.3s ease;
  opacity: 0; /* Start invisible */
}

/* Make first few testimonials visible by default */
.testimonial-content:nth-child(-n+6) {
  opacity: 1;
}

.testimonial-content .quote-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.testimonial-content p {
  flex-grow: 1;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.6;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: auto; /* Push to bottom */
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.client-info h4 {
  margin: 0;
  font-size: 1rem;
}

.client-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #777;
  font-style: normal;
}

.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--primary-color);
  color: white;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
}
/* Who We Are Section with Overlapping Text - Enhanced Overlap */
/* Enhanced Value Items */
.who-we-are-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
}

.who-we-are-values .value-item {
  background: #f9f9f9;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.who-we-are-values .value-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.who-we-are-values .value-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.who-we-are-values .value-item:hover:before {
  transform: scaleX(1);
}

.who-we-are-values .value-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  height: 70px;
  width: 70px;
  line-height: 70px;
  border-radius: 50%;
  background-color: rgba(230, 126, 34, 0.1);
  display: inline-block;
  transition: all 0.3s ease;
}

.who-we-are-values .value-item:hover .value-icon {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(360deg);
}

.who-we-are-values .value-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--secondary-color);
}

.who-we-are-values .value-item p {
  color: #555;
  line-height: 1.7;
}
/* About Content Section */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
  align-items: stretch; /* Ensure both columns stretch to the same height */
}

.about-text-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content evenly */
  padding: 30px 0; /* Add some padding to create space */
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
  height: 600px; /* Set a fixed height for the grid */
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.grid-item.large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.grid-item.full-width {
  grid-column: 1 / span 2;
  grid-row: 3;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-photo-grid {
    height: 500px; /* Slightly smaller height on tablets */
  }
}

@media (max-width: 768px) {
  .about-photo-grid {
    height: 400px; /* Smaller height on medium mobile */
  }
  
  .about-text-block .lead-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .about-photo-grid {
    height: 350px; /* Even smaller height on small mobile */
    gap: 10px; /* Smaller
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.grid-item.large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.grid-item.full-width {
  grid-column: 1 / span 2;
  grid-row: 3;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-photo-grid {
    height: 500px; /* Slightly smaller height on tablets */
  }
}

@media (max-width: 768px) {
  .about-photo-grid {
    height: 400px; /* Smaller height on medium mobile
  margin: 30px 0;
}

.value-item {
  display: flex;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
  padding: 5px;
  border-radius: 8px;
}

.value-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.value-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #f39c12);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.value-item:hover .value-icon {
  transform: rotate(10deg) scale(1.1);
}

.value-content h3 {
  margin-bottom: 8px;
  color: var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.value-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.value-content p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}
#who-we-are {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

#who-we-are::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-light.jpeg');
  opacity: 0.05;
  z-index: 0;
}

.who-we-are-content.overlap-style {
  display: grid;
  /* Grid template columns will be set by JavaScript */
  position: relative;
  z-index: 1;
  gap: 0;
}
/* Ensure consistent container padding */
#main-footer .container,
#main-header .container {
  padding-left: 0;
  padding-right: 0;
}

/* Reset any existing margins that might interfere */
.footer-logo-contact {
  padding-left: 0;
  margin-left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo img,
  .footer-logo img {
    padding-left: 3%; /* Less padding on smaller screens */
  }
}

.who-we-are-text {
  padding: 50px;
  background-color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 2;
  /* Margin right will be set by JavaScript */
  align-self: center;
}

.who-we-are-image {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden; /* Keep overflow hidden to prevent image from extending outside */
  align-items: center;
  justify-content: center;
}

.who-we-are-image img {
  max-width: none; /* Allow image to exceed container width if needed */
  max-height: none; /* Allow image to exceed container height if needed */
}

/* Responsive adjustments - let JS handle desktop, CSS handles mobile */
@media (max-width: 992px) {
  .who-we-are-content.overlap-style {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .who-we-are-text {
    margin-right: 0;
    padding: 40px;
  }
  
  .who-we-are-image {
    min-height: auto;
    order: -1;
  }
  
  .who-we-are-image img {
    width: 100%;
    height: auto;
    min-height: auto;
  }
}

@media (max-width: 576px) {
  #who-we-are {
    padding: 60px 0;
  }
}
/* About Page Styles */
#about-page {
  overflow-x: hidden;
}

/* Hero Section with Parallax */
.about-hero {
  height: 80vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.about-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.about-hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.about-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
  width: 100%;
}

.about-hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
  text-align: center;
}

.about-hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 1px;
  text-align: center;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

/* About Content */
.about-section {
  padding: 100px 0;
  background-color: #fff;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image .image-accent {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--primary-color);
  border-radius: 10px;
  top: 20px;
  left: 20px;
  z-index: -1;
}

/* Timeline Section */
.journey-section {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 0;
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background-color: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.team-member {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-image {
  position: relative;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230, 126, 34, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
  opacity: 1;
}

.member-social {
  display: flex;
  gap: 15px;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.member-social a:hover {
  transform: translateY(-5px);
}

.member-info {
  padding: 25px;
}

.member-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.member-info .position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 40px auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

#modal-content-container {
    padding: 30px;
}

/* Enhanced Project Detail Styles */
.project-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .project-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.project-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-main-image:hover img {
    transform: scale(1.03);
}

.project-info h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #333;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.meta-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    padding: 60px 0;
  }
  
  .who-we-are-text h2 {
    font-size: 2.2rem;
  }
  
  .lead-text {
    font-size: 1.1rem;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  .video-wrapper {
    height: 300px;
  }

}}}
  
