/* Additional styles for pages */

/* Page Banner */
.page-banner {
  background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)),
    url('../images/yego.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  margin-top: 80px;
  text-align: center;
}

.banner-content h1 {
  font-size: 4rem; /* Larger size for handwritten font */
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow for better readability */
  transform: rotate(-1deg); /* Slight rotation for handwritten feel */
}

.breadcrumbs {
  font-size: 1.3rem; /* Increased size for handwriting font */
  margin-top: 10px;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
}

.breadcrumbs a:hover {
  transform: scale(1.05);
}

.breadcrumbs span {
  color: var(--light-text);
}

/* Nav active link */
.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* About Page */
.about-page {
  padding: 60px 0;
}

.values-list {
  margin-top: 20px;
  padding-left: 20px;
}

.values-list li {
  margin-bottom: 10px;
}

.team {
  background-color: var(--bg-dark);
  padding: 80px 0;
}

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

.team-member {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.member-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.member-info {
  padding: 20px;
}

.member-info h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.position {
  color: var(--secondary-color);
  font-size: 14px;
  margin-bottom: 15px;
}

.bio {
  margin-bottom: 15px;
}

.stats {
  background-color: var(--bg-darker);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-icon {
  color: var(--primary-color);
  font-size: 36px;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
}

.clients {
  background-color: var(--bg-dark);
  padding: 80px 0;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.client-logo {
  filter: grayscale(100%) brightness(1.5);
  transition: all 0.3s ease;
  opacity: 0.6;
  max-width: 150px;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Services Page */
.services-intro {
  background-color: var(--bg-dark);
  padding: 60px 0 30px;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 32px;
}

.services-page {
  padding: 60px 0;
}

.service-details {
  margin-top: 20px;
  text-align: left;
}

.service-details ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.service-details li {
  margin-bottom: 8px;
}

.process {
  background-color: var(--bg-dark);
  padding: 80px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.process-step {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Projects Page */
.projects-intro {
  background-color: var(--bg-dark);
  padding: 60px 0 30px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 40px 0 20px;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.projects-page {
  padding: 60px 0;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.project-image {
  position: relative;
}

.project-category {
  display: inline-block;
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.case-study {
  background-color: var(--bg-dark);
  padding: 80px 0;
}

.case-study-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.case-study-image {
  flex: 1;
}

.case-study-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-study-details {
  flex: 1;
}

.case-study-details h3 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 10px;
}

.case-category {
  color: var(--secondary-color);
  font-size: 16px;
  margin-bottom: 20px;
}

.case-description {
  margin-bottom: 30px;
}

.case-results {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.result-item h4 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Contact Page */
.contact-page {
  padding: 60px 0;
}

.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.contact-intro h2 {
  color: var(--primary-color);
  font-size: 32px;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
}

.social-contact {
  margin-top: 40px;
}

.social-contact h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Combined Map & FAQ Section */
.map-faq-section {
  padding: 80px 0;
  background-color: #000000; /* Changed to pure black */
  position: relative;
  z-index: 1;
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
}

.map-faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Very dark overlay with high opacity, similar to partners section */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.97));
  pointer-events: none;
  z-index: -1;
}

/* Add subtle texture pattern */
.map-faq-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm2 2v16h16V2H2z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.section-header.centered {
  text-align: center;
  margin-bottom: 50px;
}

.map-faq-section .section-header h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.map-faq-section .header-line {
  width: 80px;
  height: 3px;
  background: #fad02c;
  margin: 0 auto 20px;
  box-shadow: 0 0 10px #fad02c;
}

.map-faq-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* Add decorative elements */
.map-faq-container::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(250, 208, 44, 0.05) 0%,
    transparent 70%
  );
  top: -50px;
  right: -50px;
  z-index: -1;
}

.map-column,
.faq-column {
  flex: 1;
  min-width: 300px;
  position: relative;
}

/* Map Column Styles */
.map-wrapper {
  height: 350px;
  border-radius: 12px; /* Matching the partner cards border radius */
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* Enhanced shadow to match partner cards */
  border: 1px solid rgba(250, 208, 44, 0.08); /* Matching the partner cards border style */
}

.map-container {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info {
  background: rgba(10, 10, 10, 0.95); /* Darker, nearly black background */
  padding: 20px;
  margin-top: 20px;
  border-radius: 12px; /* Matching other elements */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
  border: 1px solid rgba(250, 208, 44, 0.08); /* Matching the partner cards border style */
  backdrop-filter: blur(15px); /* Add glass-like effect */
  -webkit-backdrop-filter: blur(15px);
}

.location-info h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.location-info p {
  margin: 10px 0;
  font-size: 16px;
  color: #f4f4f4; /* Lighter text color for better contrast */
}

.location-info i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
  text-align: center;
  text-shadow: 0 0 5px rgba(250, 208, 44, 0.3); /* Subtle glow effect */
}

/* FAQ Column Styles */
.faq-column h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.faq-container.modern {
  max-width: 100%;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(250, 208, 44, 0.08); /* Matching the partner cards border style */
  border-radius: 12px; /* Matching the partner cards border radius */
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: rgba(
    10,
    12,
    20,
    0.9
  ); /* Very dark background to match partners section */
  backdrop-filter: blur(15px); /* Add glass-like effect */
  -webkit-backdrop-filter: blur(15px);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
    0 5px 15px rgba(250, 208, 44, 0.05);
  border-color: rgba(250, 208, 44, 0.2);
}

.faq-question {
  padding: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h4 {
  font-size: 16px;
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-icon {
  font-size: 16px;
  color: var(--primary-color);
  transition: all 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 208, 44, 0.1);
  border-radius: 50%;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
  background: rgba(250, 208, 44, 0.3);
}

.faq-item {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item:hover .toggle-icon {
  transform: scale(1.2);
  background: rgba(250, 208, 44, 0.2);
}

.faq-item.active:hover .toggle-icon {
  transform: scale(1.2) rotate(45deg);
}

.faq-item.active {
  border-color: rgba(250, 208, 44, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(250, 208, 44, 0.05);
}

.faq-question:hover h4 {
  color: #fad02c;
  text-shadow: 0 0 8px rgba(250, 208, 44, 0.2);
}

.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: rgba(5, 5, 10, 0.95); /* Even darker for FAQ answers */
  opacity: 0.95;
}

.faq-item.active .faq-answer {
  padding: 0 18px 18px;
  max-height: 500px;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  padding: 5px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .map-faq-container {
    flex-direction: column;
  }

  .map-column,
  .faq-column {
    width: 100%;
  }

  .map-wrapper {
    height: 300px;
  }

  .map-faq-section {
    padding: 60px 0;
  }

  .map-faq-section .section-header h2 {
    font-size: 2rem;
  }

  .location-info,
  .faq-item {
    backdrop-filter: none; /* Remove backdrop filter on mobile for better performance */
    -webkit-backdrop-filter: none;
  }
}

/* Override section transitions for this specific section */
section.map-faq-section {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

/* Enhanced FAQ animations */
.faq-item {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item:hover .toggle-icon {
  transform: scale(1.2);
  background: rgba(250, 208, 44, 0.2);
}

.faq-item.active:hover .toggle-icon {
  transform: scale(1.2) rotate(45deg);
}

.faq-item.active {
  border-color: rgba(250, 208, 44, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(250, 208, 44, 0.05);
}

.faq-question:hover h4 {
  color: #fad02c;
  text-shadow: 0 0 8px rgba(250, 208, 44, 0.2);
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(0, 32, 91, 0.9), rgba(0, 32, 91, 0.9)),
    url('../images/cyaze.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  color: var(--light-text);
}

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

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

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Project Detail Page */
.project-details {
  background-color: var(--bg-dark);
  padding: 60px 0;
}

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

.main-image {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.main-image img {
  width: 100%;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.thumb {
  width: 100px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-meta {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.meta-item h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.project-description h2 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 20px;
}

.project-description h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin: 30px 0 15px;
}

.project-description ul {
  margin: 20px 0;
  padding-left: 20px;
}

.project-description li {
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.feature {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.feature-icon {
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.result-box {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.result-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.related-projects {
  background-color: var(--bg-darker);
  padding: 80px 0;
}

.related-projects .projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .case-study-content {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .page-banner {
    height: 200px;
  }

  .banner-content h1 {
    font-size: 32px;
  }

  .project-filters {
    flex-direction: column;
  }

  .case-results {
    flex-direction: column;
    gap: 15px;
  }

  .gallery-thumbs {
    justify-content: center;
  }
}
