:root {
  --primary-red: #c62828;
  --primary-red-hover: #b71c1c;
  --dark-accent: #1c1c1c;
  --dark-accent-hover: #2d2d2d;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --gray-light: #e0e0e0;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-accent);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--dark-accent);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--dark-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

.footer {
  background-image: url('assets 2/construction footer.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 0 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* Made lighter to ensure image is visible */
  z-index: 1;
}

.footer .container {
  position: relative;
  z-index: 2;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-accent);
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span {
  color: var(--primary-red);
  font-size: 0.9em;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark-accent);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-red);
  transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-red);
}

.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-red);
}

.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--white);
}

/* Typewriter Animation Classes */
.hero-title span.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
}

.hero-title.animate-typewriter span.char {
  animation: typeLetter 0.05s forwards;
}

@keyframes typeLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 1;
  font-weight: 300;
  color: var(--gray-light);
}

.hero-cta {
  opacity: 1;
}

.hero.sub-loaded .hero-subtitle,
.hero.sub-loaded .hero-cta {
  animation: fadeInDelay 1s forwards ease-in-out;
}

@keyframes fadeInDelay {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections Structure */
.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
  margin-top: 15px;
}

.text-center .section-title::after {
  margin: 15px auto 0;
}

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Service Cards */
.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-red);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 20px;
  display: inline-block;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--dark-accent);
}

.service-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Why Choose Us */
.why-us-bg {
  background-color: var(--light-bg);
  background-image: linear-gradient(rgba(249,249,249,0.95), rgba(249,249,249,0.95)), url('pictures/unnamed (2).jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-content p {
  color: var(--text-light);
}

/* Why Us Slideshow */
.why-us-slideshow {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.why-us-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.why-us-slideshow .slide.active {
  opacity: 1;
}

/* Certifications Bar */
.cert-bar {
  background-color: var(--dark-accent);
  color: var(--white);
  padding: 40px 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
  text-align: center;
}

.cert-item {
  opacity: 0.8;
  transition: var(--transition);
}

.cert-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.cert-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 5px;
}

.cert-label {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* Projects Grid */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.project-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Health & Safety Banner */
.safety-banner {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.safety-banner h2 {
  color: var(--white);
}

.safety-banner .section-title::after {
  background-color: var(--white);
  width: 100%;
}

.safety-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 300;
}

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

.contact-info-card {
  background: var(--light-bg);
  padding: 40px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-detail i {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-top: 5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.1);
}

/* Footer */
.footer {
  background-color: var(--dark-accent);
  color: var(--gray-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--primary-red);
}

.footer-brand p {
  margin-bottom: 20px;
  max-width: 300px;
}

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

.social-icons a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-red);
  transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--primary-red);
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Cert Mention */
.cert-mention {
  margin-top: 15px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.cert-mention i {
  color: var(--primary-red);
}

/* Navigation WhatsApp */
.nav-whatsapp {
  color: #25d366 !important;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  gap: 5px;
}
.nav-whatsapp i {
  font-size: 1.2rem;
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title { font-size: 3rem; }
  .grid-3, .grid-4, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .mobile-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
    gap: 20px;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero-title { font-size: 2.5rem; }
  .section-padding { padding: 60px 0; }
  .floating-whatsapp { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 28px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2rem; }
  .grid-3, .grid-4, .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 500px; }
}
