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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background-image: url('images/nakitak-logo.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 84px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-link {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #5e2ca5;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5e2ca5;
  transition: width 0.3s ease;
}

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

/* Hero Section */
/* Added construction site background image */
.hero {
  position: relative;
  height: 600px;
  background-image: url("/construction-site.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: #5e2ca5;
  color: #fff;
}

.btn-primary:hover {
  background-color: #4a2283;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(94, 44, 165, 0.3);
}

/* Added white border style for Contact Us button */
.btn-bordered {
  border: 2px solid #fff;
}

.btn-secondary {
  background-color: transparent;
  color: #5e2ca5;
  border: 2px solid #5e2ca5;
}

.btn-secondary:hover {
  background-color: #5e2ca5;
  color: #fff;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: #000;
}

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

.bg-light {
  background-color: #f8f8f8;
}

/* About Preview */
.about-preview p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Added styling for construction worker image in About section */
.about-image-section {
  margin: 30px 0;
  text-align: center;
}

.about-section-image {
  max-width: 840px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: none;
  max-height: 700px;
  object-fit: contain;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(94, 44, 165, 0.2);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #5e2ca5;
}

.service-card p {
  font-size: 16px;
  color: #666;
}

/* Portfolio note styling */
.portfolio-note {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  height: 300px;
  /* Made portfolio cards clickable links */
  display: block;
  text-decoration: none;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Made portfolio overlay always visible instead of on hover only */
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 30px 20px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

/* Portfolio Page */
.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  height: 350px;
}

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

/* Made portfolio item overlay always visible for mobile accessibility */
.portfolio-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  padding: 30px 20px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

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

.portfolio-category {
  font-size: 14px;
  color: #5e2ca5;
  background-color: #fff;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  margin-top: 10px;
}

/* CTA Section */
.cta-section {
  background-color: #5e2ca5;
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Footer */
/* Complete footer redesign with grid layout and comprehensive sections */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #5e2ca5;
}

.footer-logo {
  width: 210px;
  height: auto;
  margin-bottom: 15px;
}

.footer-tagline {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-links,
.footer-contact,
.footer-hours {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li,
.footer-hours li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-links a,
.footer-contact a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #5e2ca5;
}

.footer-contact li {
  color: #ccc;
  font-size: 14px;
}

.footer-contact strong {
  color: #fff;
}

.footer-hours li {
  color: #ccc;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #999;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-legal a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #5e2ca5;
}

.footer-legal span {
  color: #666;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  color: #fff;
  background-color: #333;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #5e2ca5;
  transform: translateY(-3px);
}

/* Page Banner */
/* Changed banner background from grey image to solid purple color */
.page-banner {
  position: relative;
  height: 300px;
  background-color: #5e2ca5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 48px;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.mission-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

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

.mission-text {
  font-size: 20px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  color: #333;
}

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

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: 30px;
}

.value-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #5e2ca5;
}

.value-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

/* Services Page */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-detail-card {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-detail-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.service-detail-card h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #5e2ca5;
  text-align: left;
}

.service-detail-card p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.service-detail-card ul {
  list-style: none;
  padding: 0;
}

.service-detail-card ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #666;
}

.service-detail-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5e2ca5;
  font-weight: bold;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: 50px auto;
  max-width: 900px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.modal-content img {
  width: 100%;
  height: auto;
}

.modal-info {
  padding: 30px;
}

.modal-info h2 {
  font-size: 32px;
  margin-bottom: 10px;
  text-align: left;
}

.modal-category {
  color: #5e2ca5;
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-info p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* Added styling for image counter in modal */
.modal-counter {
  font-size: 14px;
  color: #999;
  margin-top: 15px;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #5e2ca5;
}

/* Added navigation arrows for modal image gallery */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(94, 44, 165, 0.8);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav:hover {
  background-color: #5e2ca5;
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #333;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.contact-detail-item h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #5e2ca5;
}

.contact-detail-item a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-detail-item a:hover {
  color: #5e2ca5;
}

.contact-detail-item p {
  margin: 0;
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5e2ca5;
}

.form-confirmation {
  text-align: center;
  padding: 40px;
  background-color: #f8f8f8;
  border-radius: 10px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background-color: #5e2ca5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 20px;
}

.form-confirmation h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #5e2ca5;
}

.form-confirmation p {
  font-size: 16px;
  color: #666;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .logo img {
    height: 70px;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .hero {
    height: 450px;
  }

  .hero-content h1 {
    font-size: 24px;
    line-height: 1.3;
    padding: 0 10px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .about-section-image {
    max-width: 100%;
    max-height: 500px;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .services-grid,
  .portfolio-grid,
  .portfolio-full-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 50px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo {
    width: 168px;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 13px;
  }

  .footer-legal {
    font-size: 13px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .modal-content {
    margin: 20px;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 40%;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 18px;
    line-height: 1.4;
  }

  .section {
    padding: 40px 0;
  }

  .section h2 {
    font-size: 24px;
    padding: 0 10px;
  }

  .about-preview p {
    font-size: 16px;
    padding: 0 10px;
  }

  .about-section-image {
    max-width: 100%;
    max-height: 400px;
  }

  .page-banner {
    height: 250px;
  }

  .page-banner h1 {
    font-size: 28px;
    padding: 0 15px;
  }

  .mission-text {
    font-size: 16px;
    padding: 0 10px;
  }

  .service-card,
  .service-detail-card {
    padding: 25px 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .footer {
    padding: 40px 0 15px;
  }

  .footer-logo {
    width: 140px;
  }

  .footer-contact a,
  .footer-contact li {
    word-break: break-word;
    font-size: 13px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .footer-legal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .modal-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
    top: 35%;
  }

  .modal-prev {
    left: 5px;
  }

  .modal-next {
    right: 5px;
  }

  .contact-detail-item {
    gap: 15px;
  }

  .contact-icon {
    font-size: 24px;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Legal Content Pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 28px;
  color: #5e2ca5;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.legal-content h3 {
  font-size: 22px;
  color: #000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 30px;
}

.legal-content ul li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #333;
}

.legal-content strong {
  color: #000;
  font-weight: 600;
}
