
/* 
* PRECISION DESIGN - Custom CSS
* A modern architecture website theme
*/

/* Variables */
:root {
  --color-primary: #E67E22;       /* Terracotta */
  --color-secondary: #34495E;     /* Slate Blue */
  --color-dark: #2C3E50;          /* Charcoal */
  --color-light: #ECF0F1;         /* Off-white */
  --color-accent: #16A085;        /* Teal */
  --color-warning: #F39C12;       /* Amber */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --transition: all 0.3s ease;
}

/* Base Styles */

.typewriter {
  overflow: hidden;
  border-right: 2px solid #000;
  white-space: nowrap;
  width: 0;
  animation: typing 2.5s steps(18, end) 1s infinite alternate, blink 0.7s step-end infinite;
  text-align: center;
}

@keyframes typing {
  from { width: 0 }
  to { width: 18ch }
}

@keyframes blink {
  50% { border-color: transparent }
}



body {
  font-family: var(--font-secondary);
  color: var(--color-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* For fixed navbar */
  background-color: var(--color-secondary) !important;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--color-secondary) !important;
  }
}

@media (max-width: 768px) {
  body {
    background-color: var(--color-secondary) !important;
  }
}

@media (max-width: 768px) {
  .logo {
    height: 7rem !important;
    width: auto;
  }

}

@media (max-width: 768px) {
  .display-3 {
    font-size: calc(1rem + 2.3vw);
    font-weight: 300;
    line-height: 1.2;
  }
  .fw-line {
    font-size: 1.2rem !important;
  }
}

.min-vh-100 {
    min-height: 80vh !important;
}

h1, h2,h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-light);
}

h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline-light {
  border-color: #000000;
  color: #000000;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: var(--color-primary);
}

.centered-button {
  position: absolute; /* Position it absolutely in relation to its container */
  top: 50%;           /* Move the button 50% from the top of the viewport */
  left: 50%;          /* Move the button 50% from the left of the viewport */
  transform: translate(-50%, -50%); /* Offset the button by 50% of its width and height */
  padding: 10px 20px; /* Adjust padding as needed */
  background-color: #f39c12; /* Example button color */
  color: white;       /* Button text color */
  border: none;       /* Optional: remove the border */
  font-size: 16px;     /* Adjust font size */
  cursor: pointer;    /* Make the cursor pointer to show it is clickable */
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  width: 100%;
  min-width: unset;
  max-width: 100%;
  overflow-x: hidden;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.6rem;
  position: relative;
}

.brand-text {
  white-space: nowrap;
  font-size: 1.1rem;
  color: var(--color-dark);
}

@media (max-width: 576px) {
  .brand-text {
    font-size: 0.95rem;
  }
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  margin-left: 2px;
}

.nav-item {
  margin: 0 0.25rem;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-dark) !important;
  padding: 0.75rem 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  height: 90vh;
  /* background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625'); */
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

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

p.lead.mb-5 {
  color: var(--color-light);
}

/* Section Styles */
.section-title {
  position: relative;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.title-line {
  width: 80px;
  height: 3px;
  background-color: var(--color-light);
  margin: 0.75rem auto 0;
}

.title-line-1 {
  width: 80rem;
  height: 3px;
  background-color: var(--color-light);
  margin: 0.75rem auto 0;
}

@media (max-width: 576px) {
  .title-line {
    width: 80px;
    height: 3px;
    background-color: var(--color-light);
    margin: 0.75rem auto 0;
  }
  .title-line-1 {
    width: 20rem;
    height: 3px;
    background-color: var(--color-light);
    margin: 1.75rem auto 0;
  }
  
}
/* Services Section */
.service-card {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-radius: 10px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--color-light);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--color-light);
  color: var(--color-secondary);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Projects Section */
.project-card {
  position: relative;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  transition: var(--transition);
}

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

.project-img {
  position: relative;
  overflow: hidden;
}

.project-img img {
  transition: transform 0.8s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.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: var(--transition);
}

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

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-info p {
  color: #777;
  margin-bottom: 0;
}

/* carousel */

.carousel {
  height: auto; /* Fixed height for carousel */
}

.carousel-inner {
  height: 100%;
}

.carousel-inner img {
  height: 290px; /* Fixed height for square thumbnail */
  width: 300px !important; /* Fixed width for square thumbnail */
  object-fit: cover; /* Ensures images fill the square without distortion */
  border-radius: 10px; /* Optional: Rounded corners for better aesthetics */
  margin: 0 auto; /* Centers the image */
}

/* Image Modal */
.modal-dialog {
  max-width: Auto; /* Ensure the modal does not exceed the viewport width */
  max-height: 90vh; /* Modal fits within 90% of the viewport height */
}

.modal-content {
  height: auto; /* Let the modal content adapt to its content */
  max-height: 90vh; /* Ensure content doesn't overflow */
  overflow-y: auto; /* Enable scrolling for overflowing content */
}

.modal-body img {
  max-height: 75vh; /* Ensure the image fits within the modal */
  width: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Keep the image proportional */
}

.modal-title {
  color: var(--color-secondary);
}


/* Default for larger screens: Display images in a row */
.d-flex {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center images within the slide */
  align-items: center; /* Vertically align images */
  gap: 10px; /* Space between images */
}

/* Each image container */
.d-flex > div {
  flex: 1;
  max-width: 33.33%; /* Three images per row */
  box-sizing: border-box;
}
.p-2 {
  padding: 5px;
}
/* Media query for smaller screens: only 1 image per slide */
@media (max-width: 768px) {
  .d-flex {
      flex-direction: column; /* Stack images vertically */
  }
  .d-flex > div {
      max-width: 100%; /* Full width for each image */
  }
  .carousel-inner img {
      height: auto; /* Adjust height for better display */
      width: 100%; /* Maintain responsive width */
  }
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-secondary);
}

.testimonial-card {
  padding: 2rem 1rem;
}

.testimonial-content {
  position: relative;
  padding: 1.5rem 2rem;
  background-color: var(--color-light);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.testimonial-content:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: var(--color-light) transparent transparent transparent;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-author h5 {
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  color: var(--color-light);
  margin-bottom: 0;
}

.carousel-indicators {
  bottom: -40px;
}

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  background-color: var(--color-light) !important;
  opacity: 0.3;
}

.carousel-indicators button.active {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(53%) sepia(97%) saturate(362%) hue-rotate(344deg) brightness(97%) contrast(95%);
}

/* CTA Section */
.cta-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1493397212122-2b85dda8106b');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Footer */
.footer {
  background-color: var(--color-light);
  color: var(--color-secondary);
}

.footer h5 {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer p {
  color: var(--color-secondary);
}

.footer a {
  color: var(--color-secondary);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-secondary);
  color: var(--color-light);
  transform: translateY(-3px);
}

.contact-info i {
  color: var(--color-secondary);
}

/* Page Header */
.page-header {
  height: 30vh;
  /* background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625'); */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: -1;
}

.breadcrumb-item a {
  color: var(--color-light);
}

/* About Page */

.mb-4 {
  color: var(--color-light);
}

.value-card {
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.value-icon {
  width: 70px;
  height: 70px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--color-light);
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background-color: var(--color-light);
  color: var(--color-secondary);
}

/* Project Page */

.container.gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.container.gallery .boxed-gallery {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;

}

.container.gallery .boxed-gallery .gallery-images {
  display: flex;
  flex-direction: column;
  width: 20%;
}
.container.gallery .boxed-gallery .gallery-images img {
  width: 100%;
}



/* Team Section */
.team-card {
  margin-bottom: 2rem;
  transition: var(--transition);
}

.team-img {
  position: relative;
  margin-bottom: 1.2rem;
}

.team-img img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-social {
  margin-top: 1rem;
}

.team-social a {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background-color: var(--color-light);
  color: var(--color-dark);
  border-radius: 50%;
  margin: 0 5px;
  transition: var(--transition);
}

.team-social a:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Awards Section */
.award-card {
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.award-icon {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Projects Filter */
.nav-pills .nav-link {
  color: var(--color-secondary);
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  margin: 0 0.25rem 0.5rem;
  transition: var(--transition);
}

.nav-pills .nav-link.active {
  background-color: var(--color-primary);
  color: #fff !important;
}

/* Contact Page */
.contact-info-card {
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.text-muted {
  color: var(--color-light) !important;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.contact-form-wrapper {
  border: 1px solid #eee;
}

.form-control, .form-select {
  border-radius: 0;
  padding: 0.75rem;
  border-color: #ddd;
}

.form-control:focus, .form-select:focus {
  box-shadow: none;
  border-color: var(--color-secondary);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-section {
    height: 80vh;
  }
  
  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0px 20px 15px rgb(44 62 80 / 45%);
    margin-top: 1em;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
  }
  
  .page-header {
    height: 25vh;
  }
}

@media (max-width: 576px) {
  .service-card,
  .project-card,
  .testimonial-card,
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}

.breadcrumb-item.active {
  color: rgba(213, 213, 213, 0.75) !important;
}

#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #25d366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

#whatsapp-button img {
  width: 48px;
  height: 48px;
}

/*  Mobile (smaller icon and padding) */
@media (max-width: 480px) {
  #whatsapp-button {
    bottom: 15px;
    right: 15px;
    padding: 8px;
  }

  #whatsapp-button img {
    width: 40px;
    height: 40px;
  }
}

/*  Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 768px) {
  #whatsapp-button {
    bottom: 18px;
    right: 18px;
    padding: 9px;
  }

  #whatsapp-button img {
    width: 44px;
    height: 44px;
  }
}


/* project gallery */

.gallery {
  column-gap: 10px;
  padding: 10px;
  padding-left: 100px;
  padding-right: 100px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.03);
}

.caption {
  font-size: 14px;
  margin-top: 4px;
  color: #ffffff;
  text-align: center;
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  color: white;
}

.popup img {
  max-width: 90%;
  max-height: 55vh;
  border-radius: 8px;
}

.popup .caption {
  color: white;
  margin-top: 12px;
}

.controls {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.btn {
  background: #34485d;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background: #ddd;
}

@media (max-width: 768px) {
  .gallery {
    column-count: 4 !important;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    column-count: 4 !important;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

