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

body,
html {
  font-family: Arial, sans-serif;
  height: 100%;
  scroll-behavior: smooth;
}
:root {
  --primary-color: #045268;
  --accent-color: #31C3DA;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
}

body {
  background-color: var(--background-light);
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-logo {
  width: 70px;
  height: 60px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Buttons */
button, .btn {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
  background-color: var(--primary-color);
  color: var(--accent-color);
}

/* Icons (like contact section right side) */
.icon-links a {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s;
}

.icon-links a:hover {
  color: var(--accent-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
}

.navbar .nav-links li {
  margin-left: 20px;
}

.navbar .nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.navbar .nav-links a:hover {
  color: #31C3DA;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

/* Hero Slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slideshow-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slideShow 15s infinite;
}

@keyframes slideShow {
  0% {
    background-image: url("images/PEB9.jpg");
  }
  33% {
    background-image: url("https://images.unsplash.com/photo-1485083269755-a7b559a4fe5e?q=80&w=1169&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  }
  66% {
    background-image: url("images/PEB10.jpg");
  }
  100% {
    background-image: url("images/PEB_HOME.jpg");
  }
  
}

/* About Button */
.about-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  background:#045268;
  cursor: pointer;
  border-radius: 8px;
}

/* .about-btn:hover {
  /* background: #31C3DA; */
/* } */

/* About Section */
/* --- About Us Section --- */
.about-section {
  background-color: #f9f9f9;
  color: #1e1e1e;
  padding: 80px 60px;
}

.about-section h2 {
  color: #045268;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
}
.about-container strong{
  color: #31C3DA;
}

.about-container h3{
  color: #31C3DA;
}
.about-container ul {
  margin: 20px 0 40px 20px;
  list-style: disc;
  color: #045268;
}

/* --- Software Section --- */
/* --- Engineering & Design Software Section --- */
.software-section {
  background-color: #045268;
  color: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  margin-top: 40px;
}

.software-section h3 {
  color: #31C3DA;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.software-table {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Row layout: left (discipline) + right (software) */
.software-row {
  display: grid;
  grid-template-columns: 250px 1fr; /* fixed left, flexible right */
  gap: 40px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 15px;
}

.software-row:last-child {
  border-bottom: none;
}

/* Left Column */
.discipline h4 {
  color: #31C3DA;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ✅ Right Column — aligned to right end */
.software-list {
  text-align: right;         /* aligns text to right edge */
  justify-self: end;         /* pushes the block to right end */
  width: 100%;
}

.software-list p {
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0;
  color: #f2f2f2;
}

/* ✅ Responsive for mobile */
@media (max-width: 768px) {
  .software-row {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .software-list {
    text-align: center;
    justify-self: center;
  }
}

/* Services Section */
.services-section {
  padding: 100px 20px;
  text-align: center;
  background: #fff;
}
.services-section h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  color: #31C3DA;
}
.service-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}
.service-card {
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 300px;           /* fixed width for uniformity */
  flex: 1 1 250px;        /* flex-grow, flex-shrink, flex-basis for responsiveness */
  max-width: 100%;        /* prevents overflow on very small screens */
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card h3 {
  background: #045268;
  color: #fff;
  padding: 15px 0;
  font-size: 1.2em;
}
.explore-btn-container {
  margin-top: 40px;
}
.explore-btn {
  display: inline-block;
  background: #045268;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}
.explore-btn:hover {
  background: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Footer */
footer {
  background-color: #045268;
  color: #f0f0f0;
  display: flex;
  justify-content: space-between;
  padding: 40px 60px;
  flex-wrap: wrap;
}

.footer-left, .footer-right {
  width: 45%;
  min-width: 300px;
}

.footer-left h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-left p, .footer-right p {
  line-height: 1.6;
  color: #ddd;
}
.footer-right p{
  line-height: 2;
}
.footer-right a {
  color: #ddd;
  text-decoration: none;
}

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

.socials {
  margin-top: 10px;
}


/* Address section inside footer-left */
.address-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 15px;
  flex-wrap: wrap; /* ensures responsive stacking */
}

.address-box {
  flex: 1;
  min-width: 250px;
}

.address-box h4 {
  color: #31C3DA; /* highlight color */
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.address-box p {
  color: #ddd;
  line-height: 1.5;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .address-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .address-box {
    width: 100%;
  }
}

/* ✅ Responsive */ 
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-left, .footer-right {
    width: 100%;
    margin-bottom: 25px;
  }
}

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

.socials a {
  color: #ddd;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #31C3DA; /* construction-theme highlight color */
}

@media (max-width: 768px) {
  .socials {
    justify-content: center;
  }
}


@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #31C3DA;
  margin: 4px 0;
  border-radius: 2px;
}

/* ✅ Responsive toggle for small screens */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 200px;
    height: auto;
    background-color: #045268;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 20px; 
    transition: 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
  }
}  
