/* 
  Yifeng Group - Premium Landing Page CSS Stylesheet
  Clean slate, navy blue, and silver corporate theme.
  NO YELLOW/GOLD, NO STARS.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CUSTOM DESIGN SYSTEM VARIABLES --- */
:root {
  --primary-blue: #0d3a75;       /* Classic corporate blue from nav bar image */
  --primary-blue-rgb: 13, 58, 117;
  --secondary-blue: #0a2540;     /* Deep navy blue */
  --accent-blue: #1b4e8c;        /* Medium steel blue */
  --neutral-dark: #334155;       /* Slate 700 text color */
  --neutral-light: #f8fafc;      /* Light gray background */
  --white: #ffffff;
  --border-color: #cbd5e1;       /* Clean slate 300 border */
  
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 4px;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px; /* Clean rectangular shapes */
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  border: 1px solid var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  border-color: var(--secondary-blue);
}

.btn-secondary {
  background-color: var(--secondary-blue);
  color: var(--white);
  border: 1px solid var(--secondary-blue);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-blue);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* --- SECTION LABELS --- */
.section-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--primary-blue);
}

.section-desc {
  font-size: 1rem;
  color: var(--neutral-dark);
  margin-bottom: 1.75rem;
}

/* --- HEADER / NAVIGATION (MATCHES SCREENSHOT) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.25rem 0;
  background: rgba(226, 232, 240, 0.85); /* Transparent grey background */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
}

header.scrolled {
  padding: 0.9rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: rgba(241, 245, 249, 0.95);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 2.2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569; /* slate gray nav text */
  padding: 0.4rem 0;
  position: relative;
}

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

/* Solid blue underline for active link */
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary-blue);
  transition: var(--transition-fast);
}

nav a.active::after {
  width: 100%;
}

.lang-switch {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
  margin-top: -0.1rem;
}

.lang-switch:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background-color: rgba(13, 58, 117, 0.05);
}

.lang-switch::after {
  display: none !important; /* Disable active underline on language switcher */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: var(--secondary-blue);
  color: var(--white);
  padding: 0.55rem 1.3rem;
  border-radius: 4px; /* clean rectangular shape from image */
  border: 1px solid var(--secondary-blue);
}

.header-btn:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--primary-blue);
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 90vh;
  background-color: var(--secondary-blue);
  background-image: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(13, 58, 117, 0.8) 100%), url('../images/hero_bg.png');
  background-size: cover;
  background-position: right center;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--neutral-light), transparent);
  pointer-events: none;
}

.hero-content {
  color: var(--white);
  max-width: 750px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero h1 span {
  display: block;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.25rem;
  line-height: 1.65;
  max-width: 650px;
}

.hero-btns {
  display: flex;
  gap: 1.25rem;
}

/* --- VISION SECTION (HOW WE DO THINGS) --- */
.vision {
  background-color: var(--neutral-light);
}

.vision-image-wrapper {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.vision-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* --- ENGINEERING STAGE (POWERED BY PARTNERSHIP) --- */
.engineering {
  background-color: var(--white);
}

.engineering-image-container {
  position: relative;
}

.stadium-img-wrapper {
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.stadium-img-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.established-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--secondary-blue);
  color: var(--white);
  padding: 1.8rem 2.2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 320px;
}

.established-badge h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.established-badge p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* --- OUR TOTAL SOLUTIONS (CAPABILITIES) --- */
.solutions {
  background-color: var(--neutral-light);
}

.solutions .grid-3 {
  margin-top: 3rem;
}

.solution-card {
  background-color: var(--white);
  padding: 3rem 2.2rem;
  border-radius: 4px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-blue);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(13, 58, 117, 0.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.solution-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.solution-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.solution-card p {
  color: var(--neutral-dark);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- PRODUCT & PROJECTS (TABS EXPLORER) --- */
.products-projects {
  background-color: var(--white);
}

.products-projects .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1px;
}

.tab-trigger {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-blue);
  transition: var(--transition-fast);
}

.tab-trigger:hover, .tab-trigger.active {
  color: var(--primary-blue);
}

.tab-trigger.active::after {
  width: 100%;
}

/* Tab Content Transitions */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.product-info h3 {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
  color: var(--primary-blue);
}

.product-info p {
  color: var(--neutral-dark);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Projects listing layout for Theatre category */
.projects-list-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.projects-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.project-item-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background-color: rgba(13, 58, 117, 0.05);
  color: var(--primary-blue);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(13, 58, 117, 0.1);
}

.product-gallery {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.product-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- STATS BANNER --- */
.stats-banner {
  background-color: var(--secondary-blue);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.stats-container {
  max-width: 800px;
  margin: 0 auto;
}

.stats-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.stats-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.stats-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* --- RECENT PROJECTS & PROGRESS TRACKING --- */
.current-projects {
  background-color: var(--neutral-light);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.projects-header-left {
  display: flex;
  flex-direction: column;
}

.projects-header-left .section-title {
  margin-bottom: 0;
}

/* Progress Tracker Bar styling placed inside details pane */
.progress-tracker {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Sourced: Left aligned inside details card */
  width: 100%;
  margin-bottom: 2rem;
}

.progress-text {
  font-family: var(--font-heading);
  font-size: 1.6rem; /* Sourced: Slightly smaller text for inside the pane */
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 5px;
  background-color: #cbd5e1;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%; /* 100% Complete */
  background-color: var(--primary-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .progress-bar-fill {
  transform: scaleX(1);
}

.featured-project-card {
  background-color: var(--white);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 4rem;
}

.project-details-pane {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.project-details-pane h3 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.project-details-pane p {
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 1.5rem;
}

.meta-item span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.25rem;
}

.meta-item p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0;
}

.project-gallery-pane-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #f1f5f9;
}

.project-gallery-pane {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16; /* Sourced: Strict 9x16 vertical aspect ratio */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.project-gallery-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-location-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1rem 1.5rem; /* Sourced: Elegant spacing for caption */
  text-align: right;
}

/* --- HORIZONTAL MILESTONE SCROLLER --- */
.milestones-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-top: 1.5px solid #e2e8f0;
  padding-top: 3rem;
}

.milestones-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-blue);
  letter-spacing: -0.3px;
}

.milestones-nav-btns {
  display: flex;
  gap: 0.75rem;
}

.milestone-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.milestone-nav-btn:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.milestone-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.milestones-scroll-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.milestones-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.milestones-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.milestones-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.milestones-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.milestone-card {
  min-width: 320px;
  max-width: 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.milestone-card:hover {
  transform: translateY(-4px);
}

.milestone-photo-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  margin-bottom: 1.25rem;
  background-color: #f1f5f9;
}

.milestone-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.milestone-card:hover .milestone-photo-wrapper img {
  transform: scale(1.05);
}

.milestone-photo-placeholder {
  width: 100%;
  height: 200px;
  background-color: #f1f5f9;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 1.5px dashed #cbd5e1;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.milestone-card:hover .milestone-photo-placeholder {
  background-color: #e2e8f0;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.milestone-photo-placeholder svg {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  stroke-width: 1.5;
}

.milestone-photo-placeholder span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.milestone-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.milestone-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-blue);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.milestone-desc {
  font-size: 0.85rem;
  color: var(--neutral-dark);
  line-height: 1.5;
}

/* --- INNOVATION & TRUST / SERVICE PROTOCOL --- */
.trust-protocol {
  background-color: var(--white);
}

.trust-left h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.trust-left .section-desc {
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.trust-mini-card {
  background-color: var(--neutral-light);
  padding: 2rem 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.trust-mini-card:hover {
  background-color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.trust-mini-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.trust-mini-card p {
  font-size: 0.85rem;
  color: var(--neutral-dark);
  line-height: 1.5;
}

/* Right card - Service Protocol */
.protocol-card {
  background-color: var(--secondary-blue);
  color: var(--white);
  padding: 3.5rem 3rem;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(10, 37, 64, 0.1);
  position: relative;
  overflow: hidden;
}

.protocol-card h3 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 2rem;
  border-left: 3.5px solid var(--accent-blue);
  padding-left: 0.85rem;
}

.protocol-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 10;
}

.protocol-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.protocol-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.protocol-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.protocol-item span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* --- CALL TO ACTION (CTA) --- */
.cta {
  background-color: var(--neutral-light);
  text-align: center;
  padding: 5.5rem 0;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1.1rem;
  color: var(--neutral-dark);
  margin-bottom: 2.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FOOTER --- */
footer {
  background-color: var(--white);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 4.5rem 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-about {
  max-width: 320px;
}

.footer-about .logo {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.footer-about p {
  color: #64748b;
  font-size: 0.9rem;
}

.footer-contact-info {
  text-align: right;
}

.footer-contact-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.footer-contact-info p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-blue);
  line-height: 1.7;
}

.footer-contact-info a {
  transition: var(--transition-fast);
}

.footer-contact-info a:hover {
  color: var(--primary-blue);
}



/* --- INTERACTIVE MODAL OVERLAY --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--white);
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: var(--neutral-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.modal-header {
  padding: 2.5rem 2.5rem 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.modal-header p {
  color: #64748b;
  font-size: 0.9rem;
}

.modal-body {
  padding: 2rem 2.5rem 2.5rem 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: block;
  color: var(--secondary-blue);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--secondary-blue);
  background-color: var(--neutral-light);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 58, 117, 0.15);
}

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

/* --- ANIMATION REVEALS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay modifiers */
.delay-100 { transition-delay: 80ms; }
.delay-200 { transition-delay: 160ms; }
.delay-300 { transition-delay: 240ms; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .engineering-image-container {
    order: 2;
  }
  
  .engineering .grid-2 {
    gap: 4rem;
  }
  
  .established-badge {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 320px;
    padding: 1.25rem 1.5rem;
    text-align: center;
  }
  
  .tab-content {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  
  .product-gallery {
    order: 2;
  }
  
  .featured-project-card {
    grid-template-columns: 1fr;
  }
  
  .project-gallery-pane {
    height: 350px;
  }
  
  .footer-top {
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
  
  .footer-about {
    max-width: 100%;
  }
  
  .footer-contact-info {
    text-align: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.85rem 0;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    padding: 1.5rem 0;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  
  nav a {
    color: rgba(255, 255, 255, 0.85);
  }
  
  nav a:hover, nav a.active {
    color: var(--white);
  }
  
  .header-btn-wrapper {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tabs-nav {
    flex-direction: column;
    gap: 0;
    margin-bottom: 2.5rem;
    align-items: center;
    border-bottom: none;
  }
  
  .tab-trigger {
    width: 100%;
    text-align: center;
    padding: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .tab-trigger::after {
    display: none;
  }
  
  .tab-trigger.active {
    background-color: var(--neutral-light);
    border-bottom-color: var(--primary-blue);
  }
  
  .project-details-pane {
    padding: 2rem 1.5rem;
  }
  
  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trust-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .protocol-card {
    padding: 2.5rem 2rem;
  }
  
  .cta-card h2 {
    font-size: 2rem;
  }
  

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 0.85rem;
  }
  
  .btn {
    width: 100%;
  }
}
