:root {
  --primary-color: #1a202c; /* Charcoal Dark Blue */
  --secondary-color: #2d3748;
  --accent-color: #f6ad55; /* Construction Orange */
  --accent-hover: #ed8936;
  --text-color: #4a5568;
  --heading-color: #1a202c;
  --bg-light: #f7fafc;
  --white: #ffffff;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--heading-color);
  font-weight: 700;
}

/* Navbar Style */
.navbar {
  padding: 0.8rem 0;
  transition: var(--transition);
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar.sticky {
  background: var(--white);
  padding: 0.8rem 0; /* Kept same as default padding */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 60px;
  transition: var(--transition);
}

.navbar.sticky .navbar-brand img {
  height: 60px; /* Kept same as default height */
}

.nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin: 0 10px;
  position: relative;
}

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

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

.btn-primary-custom {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(26, 32, 44, 0.6), rgba(26, 32, 44, 0.6)), 
              url('../img/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to top, var(--bg-light), transparent);
  z-index: 1;
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  opacity: 0.9;
}

/* Section Common Styles */
.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-title.center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Service Cards */
.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.project-card img {
  width: 100%;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 32, 44, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

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

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

/* Stats Section */
.stats-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
}

.stat-item h2 {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.stat-item p {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.form-control {
  padding: 12px 15px;
  border-color: #eee;
}

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

/* Footer Section */
footer {
  background-color: var(--primary-color);
  color: #adb5bd;
  padding: 80px 0 20px;
}

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

footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-color);
}

footer ul {
  list-style: none;
  padding: 0;
}

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

.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* Floating Buttons */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 110px;
  right: 25px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.scroll-top {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 40px;
  right: 32px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  display: none;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.scroll-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  color: #fff;
}

/* Modal Popup Form */
.modal-content.custom-popup {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.popup-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.popup-header h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.popup-close:hover {
  opacity: 1;
}

/* Modern Background Patterns */
.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  opacity: 0.05;
  pointer-events: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
}

.badge-custom {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent-color);
  z-index: 9999;
}

/* Animations */
[data-aos] {
  transition-duration: 800ms !important;
}

/* Responsive fixes */
@media (max-width: 991px) {
  .navbar {
    background: var(--white);
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

.grayscale-hover {
  filter: grayscale(100%);
  transition: var(--transition);
}

.grayscale-hover:hover {
  filter: grayscale(0%);
  opacity: 1 !important;
}

.tracking-widest {
  letter-spacing: 0.2rem;
}

.service-hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.service-hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.icon-box-service {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-hover-card:hover .icon-box-service {
  background: var(--accent-color);
}

.service-hover-card:hover .icon-box-service i {
  color: var(--white) !important;
}

.italic {
  font-style: italic;
}

/* Modern Hamburger Icon */
.hamburger-inner {
  width: 25px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-inner span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Toggler animation logic (Bootstrap doesn't add aria-expanded automatically for offcanvas in all versions, we'll use a simple approach) */
.navbar-toggler:not(.collapsed) .hamburger-inner span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar-toggler:not(.collapsed) .hamburger-inner span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler:not(.collapsed) .hamburger-inner span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.offcanvas {
  width: 320px !important;
  background-color: var(--white);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.offcanvas-body .nav-link {
  color: var(--primary-color) !important;
}

.offcanvas-body .nav-link.active {
  color: var(--accent-color) !important;
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block !important;
    padding: 0;
  }
  .navbar-brand img {
    height: 50px;
  }
}
