/** 
 * CSS for Tiwari Infrastructure Pvt Ltd 
 * Modern, Professional, Responsive
 */

 /* ==========================================
   CSS Variables
========================================== */
:root {
  /* Default Dark Theme (from original) */
  /* --primary-color: #2e3e30;  */
  --primary-color: #2E3E30; 

  --primary-light: #3a4d3c;
  --accent-color: #9fb36d; 
  --accent-hover: #8da15c;
  
  --text-main: #e8eade; 
  --text-muted: #b4bcac;
  --text-highlight: #c0ce9c; 
  --text-dark: #2e3e30; 
  
  --bg-main: #2e3e30; 
  --bg-gray: #3a4d3c; 
  --bg-darker: #253327; 
  
  --border-color: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(46, 62, 48, 0.95);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  /* Light Theme Overrides */
  --primary-color: #f0f4f0; 
  --primary-light: #e0e8e0;
  --accent-color: #7b9442; /* Slightly darker accent for better contrast on light */
  --accent-hover: #637932;
  
  --text-main: #2e3e30; 
  --text-muted: #4e6351;
  --text-highlight: #1c261d; 
  --text-dark: #e8eade; /* Inverted */
  
  --bg-main: #fcfcfc; 
  --bg-gray: #f0f4f0; 
  --bg-darker: #ffffff; 
  
  --border-color: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.95);
}

/* ==========================================
   Reset & Base Styles
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.bg-gray {
  background-color: var(--bg-gray);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
}

.section-tag {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}
.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(159, 179, 109, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-main);
}

.btn-block {
  width: 100%;
}

/* ==========================================
   Header / Navbar / Top Banner
========================================== */
.top-banner {
  background-color: var(--bg-darker);
  color: var(--text-highlight);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 8px 0;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header {
  position: absolute;
  top: 34px; /* below top banner */
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  position: fixed;
  top: 0;
  box-shadow: var(--shadow-md);
  padding: 5px 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  transition: var(--transition);
  padding: 0 5%;
  max-width: none;
}

.header.scrolled .navbar {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
}

.logo-box {
  width: 320px;
  height: 65px; 
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  border: none;
}

/* .logo-box img {
    width: 150px;
    height: auto;
    max-width:100%;
    object-fit: cover;
   
} */


.logo-box img {
  width: 230px;
    height: auto;
    margin-top: 20px;
    object-fit: cover;
    max-width:100%;



}

@media (max-width: 768px) {
  .logo-box img {
   width: 150px;
    height:134px;
     margin-bottom:9.5px;
    object-fit: cover;
    max-width:100%;


  }
}


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

.logo-name {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: 0px;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

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

.nav-links a:not(.nav-btn) {
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  font-size: 0.95rem;
}

.nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

.nav-links a:not(.nav-btn):hover,
.nav-links a.active:not(.nav-btn) {
  color: var(--text-highlight);
}

.nav-links a:not(.nav-btn):hover::after,
.nav-links a.active:not(.nav-btn):after {
  width: 100%;
  background-color: var(--text-highlight);
}

.nav-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.theme-toggle-btn:hover {
  color: var(--accent-color);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================
   Hero Split Layout Section
========================================== */
.hero-split {
  min-height: calc(100vh - 34px);
  display: flex;
  flex-wrap: wrap;
  padding-top: 124px; /* Header height + banner height */
}

.hero-left {
  flex: 1;
  min-width: 50%;
  display: flex;
  align-items: center;
  padding: 60px 5% 60px 8%;
}

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

.hero-title {
  color: var(--text-highlight);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  font-family: serif;
  line-height: 1;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  /* color: var(--text-highlight); */
  /* color: #c9d6b9; */
  color: #9fb36d;
  text-shadow: none;
  /* font-size: 148px; */
  font-family: 'Marcellus', serif;
}

.hero-subtitle {
  color: var(--text-main);
  font-size: 1.15rem;
  margin-bottom: 50px;
  max-width: 550px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-right {
  flex: 1;
  min-width: 50%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-pane {
  flex: 1;
  min-height: 400px;
  width: 100%;
}

.hero-image-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-pane {
  padding: 50px 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--bg-main);
}

.feature-tag {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  margin-bottom: 24px;
}

.hero-feature-pane h3 {
  font-size: 1.8rem;
  color: var(--text-highlight);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-feature-pane p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
}

/* ==========================================
   About Us Section
========================================== */
.about {
  background-color: var(--bg-main);
  padding: 100px 0;
}

.about-header {
  margin-bottom: 60px;
}

.heading-underline {
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 30px;
}

.about-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.highlight-text {
  color: var(--text-main);
  background-color: rgba(159, 179, 109, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.about-stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-stat-box {
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(50% - 15px);
  background-color: var(--bg-darker);
  padding: 25px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.about-stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(159, 179, 109, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
}

.stat-centered {
  margin-top: 10px;
}

/* ==========================================
   Disciplines Section (Services split-layout)
========================================== */
.disciplines {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--primary-color);
}

.disciplines-left {
  flex: 0 0 40%;
  padding: 80px 5%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 120px;
  height: fit-content;
}

.disciplines-title {
  font-family: serif;
  font-size: clamp(3rem, 4vw, 4rem);
  color: var(--text-highlight);
  line-height: 1.1;
  margin-bottom: 24px;
}

.disciplines-desc {
  color: var(--text-highlight);
  font-size: 1.1rem;
  line-height: 1.6;
}

.disciplines-right {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
}

.discipline-item {
  display: flex;
  padding: 80px 10%;
}

.discipline-item.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.discipline-meta {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discipline-num {
  font-size: 1.25rem;
  color: var(--text-highlight);
  font-family: serif;
}

.discipline-icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-highlight);
  font-size: 1.25rem;
  border-radius: 2px;
}

.discipline-content {
  flex: 1;
  padding-left: 20px;
}

.discipline-content h3 {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-highlight);
  margin-bottom: 20px;
  line-height: 1.2;
}

.discipline-content p {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 450px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
}

.learn-more.btn-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

[data-theme="light"] .learn-more.btn-link, 
[data-theme="light"] .learn-more {
  color: var(--text-muted);
}

.learn-more:hover {
  color: var(--text-highlight);
  gap: 12px;
}

/* ==========================================
   Services Modal
========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  position: relative;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

[data-theme="light"] .modal-close {
  background: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
}

.modal-title {
  font-family: serif;
  font-size: 2.5rem;
  color: var(--text-highlight);
  margin-bottom: 20px;
  line-height: 1.2;
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 30px;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.modal-feature-item {
  background-color: var(--bg-gray);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-color);
}

.modal-feature-item h4 {
  color: var(--text-highlight);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.modal-feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================
   Quote Banner Section
========================================== */
.quote-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("https://static.wixstatic.com/media/b2cf1a_718145652598471ea8cdd895b2670c90~mv2.png/v1/fill/w_1040,h_621,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/b2cf1a_718145652598471ea8cdd895b2670c90~mv2.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 60px 20px;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(58, 77, 60, 0.75); /* Muted overlay */
  z-index: 1;
}

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

.quote-text {
  font-family: serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}

.quote-text span {
  font-style: italic;
  color: var(--accent-color);
}

/* ==========================================
   Testimonials Section
========================================== */
.testimonials {
  padding: 100px 0;
}

.testimonials .heading-underline {
  margin: 15px auto 20px;
}

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

.testimonial-card {
  background-color: var(--bg-main);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(159, 179, 109, 0.3);
}

.quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
  color: rgba(159, 179, 109, 0.15); /* Faint accent color */
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-color);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--text-highlight);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================
   Portfolio Section (Landmark Achievements)
========================================== */
.portfolio {
  background-color: var(--bg-main);
  padding: 100px 0;
}

.portfolio-header {
  margin-bottom: 60px;
}

.portfolio-tag-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.portfolio-line {
  width: 40px;
  height: 1px;
  background-color: var(--accent-color);
}

.portfolio-tag {
  color: var(--accent-color);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.portfolio-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.portfolio-title {
  font-family: serif;
  font-size: clamp(3rem, 4vw, 4rem);
  color: var(--text-highlight);
  line-height: 1.1;
  font-weight: 500;
}

.portfolio-btn {
  font-size: 0.85rem;
  padding: 12px 24px;
  letter-spacing: 1px;
}

/* ==========================================
   Project Dropdown Filter
========================================== */
.portfolio-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.portfolio-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.project-filter-dropdown {
  position: relative;
  min-width: 280px;
  z-index: 100;
}

.dropdown-trigger {
  width: 100%;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.dropdown-trigger:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dropdown-trigger i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.project-filter-dropdown.active .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  list-style: none;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.project-filter-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: 0.2s;
}

.dropdown-menu li:hover {
  background: rgba(159, 179, 109, 0.1);
  color: var(--accent-color);
}

.dropdown-menu li.active {
  background: var(--accent-color);
  color: var(--text-dark);
}

/* Projects grid and cards kept as is with minor tweaks */
.pcard-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.pcard-info-grid span {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.pcard-info-grid strong {
  color: var(--text-main);
}

.status-tag {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-tag.ongoing { background: rgba(159,179,109,0.2); color: #9fb36d; }
.status-tag.completed { background: rgba(99,179,237,0.2); color: #63b3ed; }

@media (max-width: 768px) {
  .portfolio-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-filter-dropdown {
    width: 100%;
  }
}

/* ==========================================
   New Project Cards (pcard)
========================================== */
.portfolio-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
  animation: pcardFadeIn 0.5s ease both;
}

.pcard {
  background: var(--bg-darker);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(159, 179, 109, 0.35);
}

.pcard.hidden {
  display: none;
}

/* Card Image Area */
.pcard-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-light);
}

.pcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pcard:hover .pcard-image img {
  transform: scale(1.06);
}

/* Category Badge */
.pcard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.pcard-badge.architectural { background: #63b3ed; color: #fff; }
.pcard-badge.metro         { background: #9fb36d; color: #fff; }
.pcard-badge.tunnel        { background: #ed8936; color: #fff; }
.pcard-badge.casting       { background: #b794f4; color: #fff; }
.pcard-badge.transport     { background: #48bb78; color: #fff; }
.pcard-badge.civil         { background: #ed64a6; color: #fff; }

/* Card Body */
.pcard-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 15px;
}

.pcard-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card.archived-project {
  display: none;
}

.portfolio-card.archived-project.show {
  display: flex;
  animation: fadeIn 0.5s ease forwards;
}

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

.portfolio-image-wrapper {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background-color: var(--primary-light);
}

.portfolio-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image-wrapper img {
  transform: scale(1.03);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 43, 33, 0.7); /* Deep green tint */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

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

.portfolio-action {
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 12px 24px;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-width: 1px;
}

.portfolio-action:hover {
  background-color: transparent !important;
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}

.portfolio-card:hover .portfolio-action {
  transform: translateY(0);
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-highlight);
}

.portfolio-status {
  color: var(--text-muted);
}

/* ==========================================
   Team Section
========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background-color: var(--bg-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.team-image {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(26, 43, 32, 0.9), transparent);
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px 0;
  transition: bottom 0.4s ease;
}

.team-card:hover .team-social {
  bottom: 0;
}

.team-social a:hover {
  background-color: var(--text-highlight);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.team-info {
  padding: 24px;
}

.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-grid.team-single {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.team-card.featured-member {
  max-width: 420px;
  width: 100%;
}

@media (max-width: 480px) {
  .team-card.featured-member {
    max-width: 100%;
  }
}

/* ==========================================
   Contact Section
========================================== */
.contact {
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  font-family: serif;
  font-size: clamp(3rem, 4vw, 4rem);
  color: var(--text-highlight);
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 450px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.direct-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direct-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.direct-link, .direct-address {
  font-size: 1.5rem;
  color: var(--text-main);
  font-family: serif;
}

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

.contact-right {
  background-color: var(--bg-main);
  padding: 60px 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.sleek-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 0;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
  margin-top: 20px;
  align-self: flex-start;
  padding: 16px 32px;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ==========================================
   Footer
========================================== */
.footer {
  background-color: var(--primary-color);
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

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

.footer-nav a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.footer-nav a:hover {
  color: var(--text-highlight);
}

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

.footer-social a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-massive-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  /* font-size: clamp(5rem, 15vw, 18rem); */
  font-size: clamp(5rem, 10vw, 5rem);

  line-height: 0.75;
  color: rgba(255, 255, 255, 0.02);
  text-align: center;
  letter-spacing: -2px;
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -30px;
  position: relative;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-legal a:hover {
  color: var(--text-highlight);
}
/* ==========================================
   Client Trust Marquee
========================================== */
.client-marquee {
  background-color: var(--bg-darker);
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.marquee-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 20px;
  font-weight: 600;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Add fades at edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content-wrapper {
  display: flex;
  width: max-content;
  animation: scroll-marquee 35s linear infinite;
}

.marquee-content-wrapper:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 40px;
}

.client-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0.4;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 1px;
  
}

[data-theme="light"] .client-logo {
  opacity: 0.6;
}

.client-logo:hover {
  opacity: 1;
  color: var(--accent-color);
  transform: scale(1.05);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   Responsive Design
========================================== */
@media (max-width: 992px) {
  .disciplines-left {
    flex: 0 0 100%;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 24px;
  }
  
  .disciplines-right {
    flex: 0 0 100%;
  }
  
  .portfolio-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .about-stat-box {
    width: 100%;
    padding: 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .discipline-item {
    padding: 30px 20px;
    flex-direction: column;
  }

  .discipline-content {
    padding-left: 0;
  }

  .hero-left, .hero-right {
    min-width: 100%;
    border-left: none;
  }
  
  .hero-left {
    padding: 40px 20px;
    order: 2; /* Move text below image */
  }
  
  .hero-right {
    order: 1; /* Keep image at top */
  }

  .hero-split {
    flex-direction: column;
    padding-top: 80px; /* Reduced from 124px */
    min-height: auto;
  }

  .navbar {
    height: 70px;
  }

  .header {
    top: 30px;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    margin-bottom: 30px;
  }

  .hero-image-pane {
    min-height: 250px; /* Reduced from 400px */
    height: 35vh;
  }

  .team-image {
    height: 320px; /* Reduced for mobile */
  }

  .hero-feature-pane {
    padding: 30px 20px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 1001;
  }

  .header.scrolled .nav-links {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Logo adjustment for mobile */
  .logo-box {
    width: 180px;
    height: 40px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

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

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

@media (max-width: 480px) {
  .section {
    padding: 30px 0;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .portfolio-grid-v2 {
    animation: none !important;
  }

  .hero-title {
    font-size: 2.1rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .hero-image-pane {
    height: 30vh;
    min-height: 200px;
  }

  .hero-feature-pane {
    padding: 25px 5%;
  }

  .hero-feature-pane h3 {
    font-size: 1.3rem;
  }

  .about-stat-box {
    padding: 15px;
    gap: 12px;
  }

  .stat-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 0.9rem;
  }

  .disciplines-title {
    font-size: 2.2rem;
  }

  .discipline-content h3 {
    font-size: 1.5rem;
  }

  .quote-text {
    font-size: 1.6rem;
  }

  .portfolio-title {
    font-size: 1.8rem;
  }

  .contact-title {
    font-size: 1.9rem;
  }

  .direct-link, .direct-address {
    font-size: 1.1rem;
  }

  .marquee-content {
    gap: 30px;
  }

  .client-logo {
    font-size: 0.95rem;
  }

  .top-banner {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    padding: 4px 10px;
  }
  
  .logo-box {
    width: 140px;
    height: 35px;
  }
}

/* ==========================================
   Project Card Hover Overlay
========================================== */
.pcard-image {
  position: relative;
  overflow: hidden;
}

.pcard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 62, 48, 0.85); /* Matches --primary-color with opacity */
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}

.pcard:hover .pcard-overlay {
  opacity: 1;
}

.view-details-btn {
  background: var(--accent-color);
  color: var(--text-dark);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pcard:hover .view-details-btn {
  transform: translateY(0);
}

.view-details-btn:hover {
  background: var(--text-main);
  transform: scale(1.05);
}

/* ==========================================
   Project Details Modal
========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.project-modal-container {
  background: var(--bg-darker);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .project-modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.modal-close-btn:hover {
  background: var(--accent-color);
  color: var(--text-dark);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.modal-image-side {
  height: 100%;
  background: #1a1a1a;
}

.modal-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-side {
  padding: 60px;
  overflow-y: auto;
  max-height: 90vh; /* Independent scroll if content is long */
}

.modal-content-side h2 {
  font-size: 2.5rem;
  margin: 15px 0 30px;
  line-height: 1.2;
  color: var(--text-highlight);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.meta-item label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.meta-item span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-description h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.modal-description p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

/* Modal Responsive */
@media (max-width: 992px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-image-side {
    height: 300px;
  }
  .modal-content-side {
    padding: 20px;
  }
  .modal-content-side h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

