/* 
  MSD INFRA - Main Stylesheet
  Color Palette:
  Primary: #0A1F44 (Navy)
  Secondary: #F5A623 (Gold)
  Accent 1: #00AEEF (Blue)
  Accent 2: #ED1C24 (Red)
  Light: #F8F9FA
  White: #FFFFFF
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary-color: #0A1F44;
  --secondary-color: #F5A623;
  --accent-blue: #00AEEF;
  --accent-red: #ED1C24;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
  --header-height: 80px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.section-title h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

.section-title.text-left {
  text-align: left;
}

.section-title.text-left h2::after {
  left: 0;
  transform: none;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white) !important;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--secondary-color);
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

/* Visibility Utilities */
@media (max-width: 991px) {
    .d-none-mobile {
        display: none !important;
    }
    .d-block-mobile {
        display: block !important;
    }
    .btn-mobile-only {
        margin: 25px 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .d-block-mobile {
        display: none !important;
    }
}

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

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

/* Header & Nav */
header {
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo img {
  height: 50px;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  letter-spacing: 1px;
  line-height: 1;
}

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

.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

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

.nav-special {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  border: 2px solid var(--secondary-color);
  padding: 6px 15px !important;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-left: 10px;
  white-space: nowrap;
}

.nav-special:hover {
  background: var(--secondary-color);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Dropdown Styles */
.nav-item.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(10, 31, 68, 0.15);
  border-radius: 12px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  border-top: 3px solid var(--secondary-color);
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block !important;
  padding: 12px 25px !important;
  font-size: 0.9rem !important;
  color: var(--primary-color) !important;
  text-transform: none !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.dropdown-item:hover {
  background: var(--bg-light) !important;
  color: var(--secondary-color) !important;
  padding-left: 30px !important;
  transform: none !important;
}

.dropdown-trigger i {
  font-size: 0.7rem;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-trigger i {
  transform: rotate(180deg);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: fit-content;
    min-width: 200px;
    max-width: 80%;
    height: 100vh;
    background: var(--white);
    padding: 80px 40px 60px 30px;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.3);
    gap: 20px;
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.nav-links.active.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/* Mobile Overlay Backdrop - Removed as requested */

/* Mobile Dropdown Fix */
@media (max-width: 992px) {
    .nav-item.dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0 0 0 20px;
        min-width: 0;
        width: 100%;
        display: none; /* Hidden by default on mobile, toggled with JS or just keep open */
    }
    
    .nav-item.dropdown.open .dropdown-menu {
        display: block;
    }
    
    .nav-item.dropdown .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }
}

/* Removed old .nav-links.active.show as integrated above */



/* Mobile Menu Btn */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Footer Extra */
.d-none-mobile {
    display: block;
}

@media (max-width: 992px) {
    .d-none-mobile { display: none; }
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 0;
}

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

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-about img {
  height: 75px;
  background: var(--white);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block; /* Ensures padding/background is consistent */
  transition: var(--transition);
}

.footer-about img:hover {
  transform: scale(1.05);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 25px;
  max-width: 320px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3,
.footer-legal h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 12px;
}

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

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

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

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

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

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

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

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Card Hover Effects */
.project-card, .gallery-item {
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover, .gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(10, 31, 68, 0.15);
}

.project-card img, .gallery-item img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  /* Reset display for mobile toggling */
  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* Desktop Spacing Fix for 993px to 1250px */
@media (min-width: 993px) and (max-width: 1250px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo {
        gap: 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px !important; }
    .section { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px !important; }
    .page-header { height: 180px; }
    .page-header h1 { font-size: 1.8rem; }
    .section-title h2 { font-size: 1.8rem; }
    h1 { font-size: 1.8rem !important; }
}
