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

:root {
  /* Color Bases */
  --brand-red: hsl(2, 84%, 61%);          /* Managed Office Spaces - Red */
  --brand-red-light: hsl(2, 84%, 68%);
  --brand-red-glow: hsla(2, 84%, 61%, 0.15);
  
  --brand-blue: hsl(211, 100%, 50%);       /* IT Services - Blue */
  --brand-blue-light: hsl(211, 100%, 60%);
  --brand-blue-glow: hsla(211, 100%, 50%, 0.15);
  
  --brand-green: hsl(153, 69%, 19%);      /* Social Impact - Green */
  --brand-green-light: hsl(152, 68%, 35%);
  --brand-green-glow: hsla(153, 69%, 19%, 0.15);

  --secondary: hsl(42, 100%, 53%);        /* Gold Accent */
  --secondary-dark: hsl(36, 100%, 45%);
  --dark-slate: hsl(340, 33%, 10%);       /* Primary Dark Slate */
  --body-text: hsl(0, 6%, 25%);           /* Body charcoal */
  --bg-light: hsl(330, 15%, 97%);         /* Off-white */
  --white: hsl(0, 0%, 100%);
  --gray-100: hsl(0, 0%, 96%);
  --gray-200: hsl(0, 0%, 90%);
  --gray-300: hsl(0, 0%, 80%);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(43, 22, 27, 0.06);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Theme Variable Overrides --- */
body {
  --primary: var(--brand-red);
  --primary-light: var(--brand-red-light);
  --primary-glow: var(--brand-red-glow);
  --theme-accent: var(--brand-red);
}

/* Scoped override for Managed Office Spaces section */
.theme-corporate-section {
  --primary: var(--brand-red);
  --primary-light: var(--brand-red-light);
  --primary-glow: var(--brand-red-glow);
  --theme-accent: var(--brand-red);
}

/* Scoped override for IT Services section */
.theme-tech-section {
  --primary: var(--brand-blue);
  --primary-light: var(--brand-blue-light);
  --primary-glow: var(--brand-blue-glow);
  --theme-accent: var(--brand-blue);
}

/* Scoped override for Social Impact section */
.theme-social-section {
  --primary: var(--brand-green);
  --primary-light: var(--brand-green-light);
  --primary-glow: var(--brand-green-glow);
  --theme-accent: var(--brand-green);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

p {
  color: var(--body-text);
  font-weight: 400;
}

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

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-padding {
  padding: var(--spacing-xxl) 0;
}

.text-center { text-align: center; }

.section-header {
  max-width: 700px;
  margin: 0 auto var(--spacing-xl) auto;
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-glow);
  color: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(43, 22, 27, 0.05);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--body-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark-slate);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.2);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

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

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

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-glass);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: var(--spacing-sm) 0;
}

.header.scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(43, 22, 27, 0.05);
  box-shadow: var(--shadow-sm);
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 76px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}


.logo-dot {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--body-text);
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: var(--transition-fast);
  transform-origin: right;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-impact-pill {
  background-color: var(--impact-green-glow);
  color: var(--impact-green);
  border: 1px solid rgba(15, 81, 50, 0.15);
  padding: 0.35rem 0.85rem !important;
  border-radius: var(--radius-full);
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  transition: var(--transition-fast);
}

.nav-impact-pill::after {
  display: none !important;
}

.nav-impact-pill:hover {
  background-color: var(--impact-green);
  color: var(--white);
}

.nav-cta {
  margin-left: var(--spacing-sm);
}

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

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--dark-slate);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--spacing-xxl);
  background: linear-gradient(135deg, hsl(330, 15%, 97%) 0%, hsla(2, 84%, 61%, 0.03) 100%);
  overflow: hidden;
}


.hero::after {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0) 70%);
  top: -10vw;
  right: -10vw;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -10vw;
  left: -10vw;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid rgba(43, 22, 27, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: var(--spacing-md);
  color: var(--dark-slate);
}

.hero-title span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(255, 193, 7, 0.4);
  z-index: -1;
  border-radius: 4px;
}

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

.hero-ctas {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  border-top: 1px solid var(--gray-200);
  padding-top: var(--spacing-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
}

.stat-num span {
  color: var(--secondary-dark);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--body-text);
}

.hero-img-container {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-img-wrapper img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero-img-wrapper:hover img {
  transform: scale(1.03);
}

/* Floating badge */
.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: 250px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.floating-badge-icon {
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-badge-text h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.floating-badge-text p {
  font-size: 0.75rem;
  line-height: 1.2;
}

/* --- About Section --- */
.about {
  background-color: var(--white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-md);
}

.about-content p {
  margin-bottom: var(--spacing-md);
  font-size: 1.05rem;
}

.about-bullets {
  margin-top: var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.bullet-item {
  display: flex;
  gap: 0.75rem;
}

.bullet-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--primary-glow);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
}

.bullet-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.bullet-text p {
  font-size: 0.85rem;
  color: var(--body-text);
  line-height: 1.3;
}

.about-video-container {
  position: relative;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--gray-200);
}

.about-feature-card {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  transition: var(--transition-normal);
  border-left: 4px solid var(--primary);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.about-feature-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.about-feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 5px;
  color: var(--primary);
}

/* --- Services & Core Competencies --- */
.services {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

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

.service-card {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 22, 27, 0.1);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 10px var(--primary-glow);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--secondary);
  color: var(--dark-slate);
  transform: rotate(5deg);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-xs);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card:hover .service-link {
  color: var(--secondary-dark);
}

/* --- Corporate Impact Callout Banner --- */
.impact-callout {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-slate) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact-callout::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.impact-callout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.impact-callout-text h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: var(--spacing-sm);
}

.impact-callout-text p {
  color: var(--gray-300);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.impact-callout-stats {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.callout-stat h3 {
  color: var(--secondary);
  font-size: 2rem;
}

.callout-stat p {
  color: var(--white);
  font-size: 0.85rem;
}

/* --- Notable Projects Section --- */
.projects {
  background-color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 81, 50, 0.15);
}

.project-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background-color: var(--primary);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.project-year {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--dark-slate);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.project-info {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xs);
}

.project-partner {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-social-section .project-partner {
  color: var(--primary-light);
}

.project-info p {
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.project-metrics {
  display: flex;
  gap: var(--spacing-md);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-md);
}

.metric-pill {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
}

.metric-lbl {
  font-size: 0.7rem;
  color: var(--body-text);
  text-transform: uppercase;
}

.project-btn {
  align-self: flex-start;
}

/* --- Process Section --- */
.process {
  background-color: var(--bg-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  position: relative;
}

.process-grid::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--primary-light) 0, var(--primary-light) 10px, transparent 10px, transparent 20px);
  z-index: 0;
}

.process-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background: transparent;
  transition: var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-5px);
}

.process-num {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border: 3px solid var(--primary-light);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto var(--spacing-sm) auto;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.process-card:hover .process-num {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.1);
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-xs);
}

.process-card p {
  font-size: 0.85rem;
}

/* --- Contact & Forms --- */
.contact {
  background-color: var(--white);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-info-wrap {
  position: sticky;
  top: 100px;
}

.contact-card {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.contact-card p {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-text p {
  font-size: 0.85rem;
  color: var(--body-text);
}

.form-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: var(--spacing-sm);
}

.form-wrapper p {
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-sm);
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--body-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-size: 0.95rem;
  background-color: var(--gray-100);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-submit {
  margin-top: var(--spacing-sm);
  width: 100%;
}

.form-feedback {
  margin-top: var(--spacing-sm);
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.form-feedback.success {
  display: block;
  background-color: rgba(25, 135, 84, 0.15);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.25);
}

.form-feedback.error {
  display: block;
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-slate);
  color: var(--white);
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-md);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--brand-red), var(--secondary), var(--impact-green));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.footer-logo {
  height: 84px;
  width: auto;
  display: block;
  margin-bottom: var(--spacing-md);
  background: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  max-width: max-content;
}

.footer-brand p {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  max-width: 300px;
}

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

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-300);
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.connection-badge span {
  color: var(--brand-red);
  font-weight: 700;
}

/* --- Project Detail Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 22, 27, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: var(--spacing-md);
}

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

.modal-container {
  width: 100%;
  max-width: 800px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--dark-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--brand-red);
  color: var(--white);
}

.modal-scroll {
  overflow-y: auto;
  flex-grow: 1;
}

.modal-header-img {
  height: 300px;
  position: relative;
}

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

.modal-header-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.modal-partner {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--gray-200);
}

.modal-stat-card {
  text-align: center;
}

.modal-stat-card h4 {
  font-size: 1.6rem;
  color: var(--primary);
}

.modal-stat-card p {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--body-text);
  font-weight: 600;
}

.modal-section-title {
  font-size: 1.2rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--primary-glow);
  padding-bottom: 4px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--body-text);
  margin-bottom: var(--spacing-md);
}

.modal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: var(--spacing-md);
}

.modal-list-item {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-list-item::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: bold;
}

/* --- Keyframe Animations --- */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* --- Responsive Layout Rules --- */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .hero-grid { gap: var(--spacing-md); }
  .projects-grid { gap: var(--spacing-md); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col:last-child { grid-column: span 3; }
  .impact-callout-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--spacing-md); }
}

@media (max-width: 768px) {
  :root {
    --spacing-xxl: 4rem;
  }
  .section-title { font-size: 2rem; }
  
  .logo-img {
    height: 50px;
  }
  
  .footer-logo {
    height: 60px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-menu .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-img-container {
    max-width: 500px;
    margin: var(--spacing-lg) auto 0 auto;
  }

  .floating-badge {
    bottom: -10px;
    left: 10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about-bullets {
    grid-template-columns: 1fr;
  }
  
  .impact-callout-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .impact-callout-stats {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-grid::after {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; text-align: center; gap: var(--spacing-sm); }
  .process-grid { grid-template-columns: 1fr; }
  .modal-list { grid-template-columns: 1fr; }
}
