/*
Theme Name: Sengal Group Premium Theme
Theme URI: http://www.sengalgroup.com
Author: Antigravity / Sengal Group LLC
Author URI: http://www.sengalgroup.com
Description: A premium, highly creative, and clean custom WordPress theme designed for Sengal Group LLC structural engineering and MEP services.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sengal-theme
*/

/* ==========================================================================
   1. CSS VARIABLES & CORE DESIGN SYSTEM
   ========================================================================== */
:root {
  --primary: #111827;          /* Obsidian Black - For clean structural design */
  --primary-rgb: 17, 24, 39;
  --secondary: #374151;        /* Slate Gray - Corporate engineering feel */
  --accent: #358DC5;           /* Electric Blue - Requested by user */
  --accent-hover: #2B76A6;
  --accent-rgb: 53, 141, 197;
  --accent-secondary: #92BFCA; /* Ice Blue - Requested by user */
  --accent-secondary-rgb: 146, 191, 202;
  --bg-light: #F3F4F6;         /* Light Gray */
  --bg-dark: #0B0F19;          /* Deep futuristic dark black */
  --bg-white: #FFFFFF;
  --text-dark: #111827;        /* Pure Black text */
  --text-muted: #6B7280;       /* Muted Gray text */
  --text-light: #F3F4F6;       /* Light Gray text on dark bg */
  --border-light: #E5E7EB;     /* Border gray */
  --border-accent: rgba(53, 141, 197, 0.3);
  
  /* Fonts */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(17, 24, 39, 0.12);
  --shadow-accent: 0 10px 25px -5px rgba(53, 141, 197, 0.2);
  
  /* Spacing */
  --container-width: 1280px;
  --header-height: 80px;
}

/* ==========================================================================
   2. BASE RESETS & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; position: relative; padding-bottom: 15px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

ul, ol {
  list-style: none;
}

/* Custom Section Titles */
.section-title-wrapper {
  margin-bottom: 3.5rem;
  text-align: center;
}
.section-subtitle {
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}
.section-title.left::after {
  left: 0;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}
.btn-secondary:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background-color: rgba(255, 255, 255, 0.92); /* Frosted premium light header */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  height: 70px;
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  max-width: 180px;
  flex-shrink: 0;
}
.site-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}
.site-header.scrolled .site-logo img {
  height: 42px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.logo-text span {
  color: var(--accent);
}

/* Desktop Navigation */
.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

/* Base list settings for menu (both WP Menu and fallback ul) */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
  padding: 0;
  position: relative;
}

.main-navigation a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  position: relative;
  padding: 0.5rem 0;
  display: inline-block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--accent);
}

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

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

.header-cta {
  flex-shrink: 0;
}

.header-cta-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

.mobile-nav-toggle.open .hamburger-line {
  background-color: var(--bg-white) !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: var(--transition-smooth);
  padding: 2rem;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-menu-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.mobile-menu-info {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.mobile-menu-info p {
  margin-bottom: 0.5rem;
}

/* Animation on Toggle Open */
.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   4. FRONT PAGE HERO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
  color: var(--bg-white);
}

/* Engineering blueprints pattern decoration */
.hero-blueprint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(1) contrast(1.1);
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(30, 62, 98, 0.4) 0%, var(--primary) 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-accent);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Interactive Floating Isometric Widget */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-widget-box {
  width: 320px;
  height: 320px;
  background: rgba(30, 62, 98, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  transform: rotateX(25deg) rotateY(-35deg);
  box-shadow: 20px 20px 50px rgba(0,0,0,0.3);
  position: relative;
  animation: floatWidget 6s ease-in-out infinite;
}

.hero-widget-line {
  position: absolute;
  background: var(--accent);
  opacity: 0.8;
}

.hero-widget-line.x {
  height: 1px;
  width: 80%;
  top: 50%;
  left: 10%;
  box-shadow: 0 0 10px var(--accent);
}
.hero-widget-line.y {
  width: 1px;
  height: 80%;
  left: 50%;
  top: 10%;
  box-shadow: 0 0 10px var(--accent);
}

.hero-widget-tag {
  position: absolute;
  background: var(--primary);
  border: 1px solid var(--accent);
  color: var(--bg-white);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transform: rotateZ(5deg);
}

.hero-widget-tag.t1 { top: 20%; left: -20px; }
.hero-widget-tag.t2 { bottom: 25%; right: -30px; }
.hero-widget-tag.t3 { top: 60%; left: 40%; }

@keyframes floatWidget {
  0%, 100% { transform: rotateX(25deg) rotateY(-35deg) translateY(0px); }
  50% { transform: rotateX(25deg) rotateY(-35deg) translateY(-15px); }
}

/* ==========================================================================
   5. SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: 7.5rem 0;
  background-color: var(--bg-light);
}

/* Centered Layout Containers */
.services-container,
.value-container,
.projects-container,
.contact-container,
.footer-container,
.page-header-container,
.project-single-grid {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 3rem 2.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  background-color: var(--accent);
  height: 6px;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background-color: rgba(30, 62, 98, 0.05);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--primary);
  color: var(--accent);
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-feature-item i {
  color: var(--accent);
}

/* ==========================================================================
   6. SECTORS CARD HOVER ANIMATIONS
   ========================================================================== */
.sector-card {
  transition: var(--transition-smooth);
}
.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
  border-left-color: var(--accent) !important;
}

/* ==========================================================================
   7. VALUE PROPOSITION
   ========================================================================== */
.value-section {
  padding: 7.5rem 0;
  background-color: var(--bg-white);
}

.value-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.value-image-wrapper {
  position: relative;
}

.value-image-main {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.value-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 250px;
}

.badge-num {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.value-content h2 {
  margin-bottom: 1.5rem;
}

.value-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.value-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-item {
  display: flex;
  gap: 1.25rem;
}

.value-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.value-item-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.value-item-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. CLIENT CARD HOVER STYLES
   ========================================================================== */
.client-card {
  transition: var(--transition-smooth);
}
.client-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
  border-top-color: var(--primary) !important;
}

/* ==========================================================================
   9. PROJECTS SECTION
   ========================================================================== */
.projects-section {
  padding: 7.5rem 0;
  background-color: var(--bg-light);
}

/* Filters Menu */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.25rem;
}

.project-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--primary);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

.project-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.project-card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-card-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-link:hover {
  color: var(--accent-hover);
}

/* Animations for Filtering */
.project-card.fade-out {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

/* ==========================================================================
   10. CONTACT & FORM SECTION
   ========================================================================== */
.contact-section {
  padding: 7.5rem 0;
  background-color: var(--bg-white);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-title-group h2 {
  margin-bottom: 1.25rem;
}
.contact-title-group p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(30, 62, 98, 0.05);
  color: var(--secondary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-detail-card:hover .contact-detail-icon {
  background-color: var(--primary);
  color: var(--accent);
}

.contact-detail-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-detail-text a:hover {
  color: var(--accent-hover);
}

/* WhatsApp Floating Badge Card */
.whatsapp-badge-card {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--bg-white);
  padding: 1.75rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}
.whatsapp-badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35);
}
.whatsapp-badge-icon {
  font-size: 2.25rem;
}
.whatsapp-badge-info h4 {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.whatsapp-badge-info p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}
.whatsapp-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-white);
  color: #128C7E;
  padding: 0.45rem 1.15rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Form Container Card */
.contact-form-container {
  background-color: var(--bg-light);
  padding: 3.5rem 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.contact-form-container h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.sengal-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  border-radius: 4px;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30, 62, 98, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit-row {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* Form Feedback States */
.form-feedback-message {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
}
.form-feedback-message.success {
  display: block;
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}
.form-feedback-message.error {
  display: block;
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #FBD5D5;
}

/* ==========================================================================
   11. FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 6rem 0 2rem 0;
  border-top: 4px solid var(--accent);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-about h3 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.footer-col-about p {
  color: var(--text-light);
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.05);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.footer-social-link:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.footer-col-title {
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

.footer-menu-links li {
  margin-bottom: 0.85rem;
}
.footer-menu-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-menu-links a:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.footer-contact-item i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}
.footer-contact-item-text p {
  opacity: 0.85;
}
.footer-contact-item-text a:hover {
  color: var(--accent);
}

/* Bottom Bar */
.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   12. SINGLE & GENERAL PAGES
   ========================================================================== */
.page-header {
  padding: 10rem 2rem 5rem 2rem;
  background-color: var(--primary);
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}
.page-header-blueprint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}
.page-header-container {
  position: relative;
  z-index: 2;
}
.page-header-title {
  color: var(--bg-white);
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}
.breadcrumbs {
  font-size: 0.85rem;
  opacity: 0.8;
  display: flex;
  gap: 0.5rem;
}
.breadcrumbs a:hover {
  color: var(--accent);
}

.main-content-area {
  padding: 5rem 2rem;
  background-color: var(--bg-white);
}
.content-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Single Project Details */
.project-single-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
}

.project-single-main img {
  border-radius: 8px;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.project-details-section {
  margin-bottom: 2rem;
}
.project-details-section h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.project-sidebar-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem;
  position: sticky;
  top: 100px;
}

.project-sidebar-card h3 {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.project-meta-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.project-meta-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.project-meta-item p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Pagination styles */
.pagination-wrapper {
  margin-top: 3rem;
}
.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 0.25rem;
  transition: var(--transition-smooth);
}
.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

/* ==========================================================================
   13. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    display: none; /* Hide visual on smaller layouts */
  }
  
  .value-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .value-image-wrapper {
    order: 2;
    max-width: 600px;
    margin: 0 auto;
  }
  .value-content {
    order: 1;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .service-detail-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 5rem !important;
  }
  .service-detail-row .service-detail-image {
    order: 2 !important;
  }
  .service-detail-row .service-detail-text {
    order: 1 !important;
  }
  .sector-detail-card-horizontal {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem !important;
  }
  .about-row {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    margin-bottom: 4rem !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .services-section,
  .value-section,
  .projects-section,
  .contact-section,
  .site-footer,
  .page-header,
  .main-content-area {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .header-container,
  .hero-container,
  .services-container,
  .value-container,
  .projects-container,
  .contact-container,
  .footer-container,
  .page-header-container,
  .project-single-grid {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  
  .nav-menu,
  .main-navigation ul {
    display: none; /* Hide desktop menu lists */
  }
  
  .mobile-nav-toggle {
    display: block; /* Show hamburger toggle */
  }

  .header-cta {
    display: none; /* Hide the main CTA button on tablet/mobile to prevent clutter */
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .sengal-contact-form {
    grid-template-columns: 1fr;
  }
  .form-group-full,
  .form-submit-row {
    grid-column: span 1;
  }
  .form-submit-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .project-single-grid {
    grid-template-columns: 1fr;
  }
  .project-sidebar-card {
    position: static;
  }
  
  .team-card-wrapper {
    grid-template-columns: 1fr !important;
  }
  .team-avatar-col {
    padding: 3rem !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-title { font-size: 2.25rem; }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  
  .contact-form-container {
    padding: 2.25rem 1.5rem;
  }
}

/* ==========================================================================
   16. CUSTOM HERO BACKGROUNDS & AI CHATBOT WIDGET
   ========================================================================== */

/* Hero video background */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Hero slider background */
.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Floating Chatbot Widget Launcher */
.sengal-chat-launcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 9999;
  box-shadow: var(--shadow-accent);
  transition: var(--transition-smooth);
}

.sengal-chat-launcher:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 15px 30px -5px rgba(var(--accent-rgb), 0.4);
}

.sengal-chat-launcher i {
  transition: var(--transition-smooth);
}

.sengal-chat-launcher:hover i {
  transform: scale(1.1);
}

.launcher-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--accent);
  top: 0;
  left: 0;
  opacity: 0;
  animation: chatPulse 2.5s infinite;
  pointer-events: none;
}

/* Chat Widget Window */
.sengal-chat-window {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 60px);
  height: 520px;
  max-height: calc(100vh - 150px);
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform-origin: bottom right;
}

.sengal-chat-window.hidden {
  transform: scale(0.8) translateY(40px);
  opacity: 0;
  pointer-events: none;
}

/* Chat Header */
.chat-header {
  padding: 1.15rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #17283c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.chat-header-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1.2;
}

.chat-status {
  font-size: 0.75rem;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  margin-top: 2px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  animation: statusPulse 1.5s infinite;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0.25rem;
  line-height: 0.8;
}

.chat-close-btn:hover {
  color: var(--bg-white);
}

/* Chat Messages */
.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

/* Scrollbar customization */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Messages bubbles */
.chat-message {
  display: flex;
  width: 100%;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.chat-message .message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  max-width: 85%;
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-line;
}

.chat-message.user .message-bubble {
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 500;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.15);
}

.chat-message.assistant .message-bubble {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom-left-radius: 2px;
}

/* Typing indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.15rem !important;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

/* Chat Input Area */
.chat-input-area {
  padding: 1rem 1.25rem;
  background: rgba(17, 24, 39, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

#sengal-chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 0.65rem 1.25rem;
  color: var(--bg-white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
  outline: none;
}

#sengal-chat-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Keyframes */
@keyframes chatPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes typingBounce {
  0%, 80%, 100% { 
    transform: scale(0);
    opacity: 0.4;
  } 40% { 
    transform: scale(1.0);
    opacity: 1;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .sengal-chat-launcher {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
  }
  .sengal-chat-window {
    bottom: 85px;
    right: 20px;
    width: calc(100vw - 40px);
    max-width: none;
    height: 480px;
    max-height: calc(100vh - 120px);
  }
}

