@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;900&display=swap");

/* Root Variables */
:root {
  --primary-colour: #ffffff;
  --secondary-colour: #393939;
  --tertiary-colour: #353e45;
  --font-colour: #323740;
  --font-2-color: #575757;
  --text-font-family: "Roboto", serif;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar Styling */
/* Start Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 90px 0px 90px;
  background-color: var(--primary-colour);
}

.logo-container img {
  height: 40px;
}

.nav-links-container {
  display: flex;
  gap: 20px;
}

.nav-links-container a {
  text-decoration: none;
  font-family: var(--text-font-family);
  color: var(--font-colour);
  font-weight: 400;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links-container a:hover {
  color: var(--secondary-colour);
}
/* End Navbar */





/* Start Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0.5;
  transition: 0.3s ease;
}

.overlay.open {
  display: flex;
}
/* End Overlay */













/* Start Dropdown */
.dropdown {
  position: relative;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: var(--font-colour);
  padding: 10px 15px;
  background-color: inherit;
  font-family: var(--text-font-family);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-colour);
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown-content a {
  color: var(--font-colour);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  color: var(--secondary-colour);
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* End Dropdown */

/* Hamburger Menu */
/* Start Hamburger Menu */
.hamburger-menu-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 2;
}

.hamburger {
  width: 100%;
  height: 3px;
  background-color: var(--secondary-colour);
  transition: all 0.3s ease;
}

.hamburger-menu-container.open .First {
  transform: rotate(45deg);
}

.hamburger-menu-container.open .Second {
  opacity: 0;
}

.hamburger-menu-container.open .Third {
  transform: rotate(-45deg);
}
/* End Hamburger Menu */

/* Sidebar Styling */
/* Start Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: var(--primary-colour);
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1;
  overflow: hidden;
}
.sidebar a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 20px;
  color: var(--font-colour);
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  color: var(--secondary-colour);
}

.sidebar.open {
  width: 250px;
}

.sidebar-logo{
  width: 6rem;
  height: auto;
  margin-bottom: 15px;
  border-radius: 2px;
}

hr {
  border: none;
  height: 0.3px;
  background-color: #d7d7d7; /* Color of the line */
  margin: 20px 10px; 
}
/* End Sidebar */

/* Small Screen Styles */
/* Start Small Screen */
.small-screen-values {
  font-family: var(--text-font-family);
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: 16px;
}

.small-screen-dropdown .dropbtn {
  color: var(--font-colour);
  padding: 10px 15px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  font-family: var(--text-font-family);
}

.dropdown-content a {
  color: var(--font-colour);
}
.dropdown-content :hover{
  background-color: #f1f1f1;
}

.small-screen-dropdown:hover .dropdown-content {
  display: block;
}
/* End Small Screen */

/* Large Screen Values */
/* Start Large Screen Values */
.large-screen-values {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  font-family: var(--text-font-family);
  color: var(--font-colour);
}

.large-screen-values h2,
.large-screen-values h3 {
  font-size: 40px;
  margin-bottom: 10px;
}

.large-screen-values p {
  color: var(--secondary-colour);
  margin-bottom: 50px;
  font-size: 16px;
}
/* End Large Screen Values */

/* Media Queries */
/* Start Media Queries */
@media (max-width: 768px) {
  .nav-links-container {
    display: none;
  }

  .hamburger-menu-container {
    display: flex;
  }

  .large-screen-values {
    display: none;
  }

  .logo-container img {
    height: 30px;
  }

  .slideshow-container img {
    height: auto;
  }

  .navbar{
    padding: 20px 20px 0px 20px;
  }
}

@media (min-width: 769px) {
  .nav-links-container {
    display: flex;
  }

  .sidebar a {
    display: none;
  }

  .sidebar.open {
    width: 500px;
  }

  .small-screen-dropdown{
    display: none;
  }

  hr{
    display: none;

  }
}
/* End Media Queries */

/* Overlay Styling */
/* Start Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0.5;
  transition: 0.3s ease;
}

.overlay.open {
  display: flex;
}
/* End Overlay */

/* ===== New Projects Section ===== */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  grid-gap: 20px;
  padding: 20px;
  margin: 0 auto;
  max-width: 1400px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.project-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Gallery Modal ===== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-content {
  width: 90%;
  max-width: 1200px;
  position: relative;
}

.gallery-main-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

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

.close-gallery {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
}

@media (max-width: 480px) {
  .projects-container {
    grid-template-columns: 1fr;
  }

  .project-info {
    padding: 15px;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.7);
  }

  .project-title {
    font-size: 1.2rem;
  }
}

.footer {
  background-image: url("../Assets/backgrounds/backgrounds\ \(3\).jpg");
  background-color: #f7f7f7;
  padding: 4rem 2rem 2rem;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.footer-brand {
  flex: 1 1 250px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 300px;
  color: #292929;
}

.footer-links,
.footer-services {
  flex: 1 1 180px;
}

.footer-links h4,
.footer-services h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #111;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #333;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #777;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* loader animations */
/* Circle loader */
.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--secondary-colour);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1.5s linear infinite;
  z-index: 9999;
  display: none;
}

/* Animation for the rotation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.show-loader .loader {
  display: block;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Gallery Modal Styles ===== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  touch-action: manipulation;
  overflow-y: none;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.gallery-content {
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 60px 20px 20px;
  box-sizing: border-box;
}

.gallery-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding: 20px 0;
}

.gallery-main-image {
  max-width: 90%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.98);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  display: block;
  margin: 0 auto;
}

.gallery-main-image.active {
  transform: scale(1);
  opacity: 1;
}

/* Navigation Controls */
.gallery-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nav-arrow {
  pointer-events: all;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
  z-index: 10;
}

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

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

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

/* Close Button */
.close-gallery {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 20;
  pointer-events: all;
}

.close-gallery:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 15px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.7);
  scrollbar-width: none;
  justify-content: center;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  width: 70px;
  height: 50px;
  min-width: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.9;
}

.thumbnail.active {
  opacity: 1;
  border-color: white;
}

/* Project Info */
.gallery-project-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 20px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  max-width: 90%;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.gallery-project-title {
  font-size: 1.3rem;
  margin: 0 0 4px 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-project-location {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .gallery-content {
    padding: 80px 40px 40px;
  }

  .gallery-main-image {
    max-width: 85%;
  }

  .nav-arrow {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .nav-arrow.prev {
    left: 40px;
  }

  .nav-arrow.next {
    right: 40px;
  }

  .close-gallery {
    top: 30px;
    right: 30px;
  }

  .thumbnail {
    width: 80px;
    height: 60px;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .gallery-content {
    padding: 60px 15px 15px;
  }

  .gallery-main-image {
    max-width: 95%;
    max-height: 60vh;
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .thumbnail {
    width: 50px;
    height: 40px;
    min-width: 50px;
  }

  .gallery-project-info {
    padding: 8px 12px;
    bottom: 15px;
  }

  .gallery-project-title {
    font-size: 1.1rem;
  }

  .gallery-project-location {
    font-size: 0.8rem;
  }
}
