/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
  --bg-color: #ffffff;
  --text-main: #1a1a1a;
  --text-light: #555555;

  /* Brand Colors */
  --brand-black: #000000;
  --brand-red: #EA4335;
  --brand-blue: #4285F4;
  --brand-yellow: #FBBC05;
  --brand-green: #34A853;

  /* UI Elements */
  --border-color: #f0f0f0;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg-color);
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  color: #111;
  line-height: 1.3;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
.font-heading {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* =========================================
   2. UTILITIES & HELPER CLASSES
   ========================================= */
.text-light {
  color: var(--text-light);
}

.text-brand-red {
  color: var(--brand-red);
}

.text-brand-green {
  color: var(--brand-green);
}

.text-brand-blue {
  color: var(--brand-blue);
}

.flex-gap {
  display: flex;
  gap: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-r {
  background: var(--brand-red);
}

.dot-b {
  background: var(--brand-blue);
}

.dot-y {
  background: var(--brand-yellow);
}

.dot-g {
  background: var(--brand-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link-item {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link-back {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}

/* --- RESPONSIVE NAVIGATION STYLES --- */

/* 1. Hamburger Icon Styles (Hidden on Desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  /* Above the overlay */
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--brand-black);
  border-radius: 3px;
  transition: all 0.3s ease;
}



/* =========================================
   4. BUTTONS
   ========================================= */
.btn-cta {
  background-color: var(--brand-black);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
}

.btn-cta:hover {
  background-color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 168, 83, 0.3);
}

.btn-secondary {
  background: white;
  color: black;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f9f9f9;
  border-color: #bbb;
}

.btn-full-width {
  width: 100%;
  text-align: center;
}

/* =========================================
   5. THE LIVING LINE (UX ANIMATION)
   ========================================= */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 50px;
}

#living-line {
  position: fixed;
  left: calc(50% - 600px + 20px);
  top: 0;
  bottom: 0;
  width: 3px;
  background: #f0f0f0;
  z-index: -1;
}

#living-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  /* JS updates this */
  background: var(--brand-black);
  transition: background 0.5s ease;
}

.node {
  position: absolute;
  left: -38px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 2px #eee;
  transition: all 0.5s ease;

}

.node-black {
  background-color: var(--brand-black);
  border-color: var(--brand-black);
}

/* =========================================
   6. PAGE SECTIONS (HOME)
   ========================================= */
section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
  position: relative;
}

/* Hero */
.hero-tag {
  color: var(--brand-red);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 30px;
  max-width: 900px;
}

.hero-sub {
  font-size: 1.35rem;
  color: var(--text-light);
  max-width: 650px;
  margin-bottom: 50px;
  font-weight: 300;
}

/* Toggle / Silo Breaker */
.toggle-wrapper {
  background: #fafafa;
  padding: 60px;
  border-radius: 24px;
  margin-top: 50px;
  text-align: center;
  border: 1px solid #eee;
}

.silo-visual {
  display: flex;
  justify-content: center;
  gap: 150px;
  margin-bottom: 40px;
  transition: gap 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.silo-circle {
  width: 150px;
  height: 150px;
  background: #e0e0e0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #888;
  font-family: 'Outfit', sans-serif;
  transition: all 0.5s ease;
  font-size: 0.9rem;
}

.silo-circle span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 5px;
}

/* Silo Active State */
.silo-visual.merged {
  gap: 15px;
}

.silo-visual.merged .tech {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 10px 40px rgba(66, 133, 244, 0.4);
}

.silo-visual.merged .mkt {
  background: var(--brand-green);
  color: white;
  box-shadow: 0 10px 40px rgba(52, 168, 83, 0.4);
}

/* Toggle Switch UI */
.switch-label {
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
  color: var(--text-light);
  font-size: 1.1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--brand-blue);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.service-card {
  background: white;
  border: 1px solid #f0f0f0;
  padding: 50px 40px;
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  background: #f5f5f5;
  color: #666;
}

/* Highlighted card variation */
.service-card.highlight {
  border-color: var(--brand-green);
}

.service-card.highlight .card-pill {
  background: #e6f4ea;
  color: var(--brand-green);
}

/* Contact Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-box {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
}

form label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-green);
}

/* =========================================
   7. BLOG & ARTICLE STYLES
   ========================================= */
/* Blog Filter Bar */
.blog-header {
  padding: 140px 0 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cat-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cat-btn:hover {
  border-color: var(--brand-black);
  transform: translateY(-2px);
}

.cat-btn.active {
  background: var(--brand-black);
  color: white;
  border-color: var(--brand-black);
}

/* Blog Grid */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5% 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
}

.blog-card {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all;
}

/* FOOTER */
footer {
  background: #111;
  color: white;
  padding: 100px 5% 50px;
}

.footer-mission {
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
  max-width: 700px;
  line-height: 1.3;
  margin-bottom: 60px;
}

/* =========================================
   10. COOKIE POPUP
   ========================================= */
.cookie-wrapper {
  position: fixed;
  bottom: -100px;
  /* Hidden initially (slides up) */
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
  padding: 25px 5%;
  z-index: 9999;
  display: none;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-wrapper.show {
  bottom: 0;
  /* Visible state */
  display: flex;
}

.cookie-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 600px;
}

.cookie-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Extra styles for success/error messages */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  display: none;
  /* Hidden by default */
  font-size: 0.95rem;
  text-align: center;
}

.msg-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.msg-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.input-error {
  border-color: var(--brand-red) !important;
}

.error-text {
  color: var(--brand-red);
  font-size: 0.8rem;
  margin-top: -15px;
  margin-bottom: 15px;
  display: block;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   11. BOOKING MODAL
   ========================================= */
.modal-overlay {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* Black w/ opacity */
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #000;
}

.modal-summary {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px dashed #ccc;
  margin-bottom: 25px;
}

/* =========================================
   12. CLIENT LOGO GRID
   ========================================= */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.client-card {
  background: white;
  border: 1px solid #eee;
  padding: 30px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: default;
}

.client-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo-wrapper {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  width: 100%;
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  /* Makes logo B&W */
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-card:hover .client-logo {
  filter: grayscale(0%);
  /* Brings back color on hover */
  opacity: 1;
}

.domain-tag {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding-top: 10px;
}

/* Small dash above the domain text */
.domain-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: #eee;
  margin: 0 auto 8px;
  transition: background 0.3s ease;
}

.client-card:hover .domain-tag::before {
  background: var(--brand-blue);
}

.policy-header {
  padding: 160px 5% 60px;
  background: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.policy-date {
  display: inline-block;
  background: white;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid #eee;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 500;
}

.policy-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 280px 1fr;
  /* Sidebar | Content */
  gap: 80px;
  position: relative;
}

/* STICKY SIDEBAR NAV */
.policy-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.policy-nav-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-black);
}

.policy-nav ul {
  list-style: none;
}

.policy-nav li {
  margin-bottom: 0;
}

.policy-nav a {
  display: block;
  padding: 10px 0 10px 15px;
  font-size: 0.95rem;
  color: var(--text-light);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.policy-nav a:hover,
.policy-nav a.active {
  color: var(--brand-blue);
  border-left-color: var(--brand-blue);
  background: linear-gradient(90deg, #f0f7ff 0%, transparent 100%);
  padding-left: 20px;
  font-weight: 500;
}

/* CONTENT TYPOGRAPHY */
.policy-content {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  max-width: 800px;
}

.policy-section {
  margin-bottom: 60px;
  scroll-margin-top: 140px;
}

/* scroll-margin fixes sticky header overlap */

.policy-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--brand-black);
}

.policy-section h3 {
  font-size: 1.3rem;
  margin: 30px 0 15px;
}

.policy-section p {
  margin-bottom: 20px;
  color: #444;
}

.policy-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #444;
}

.policy-section li {
  margin-bottom: 10px;
}

/* CONTACT BOX IN CONTENT */
.policy-contact-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .policy-sidebar {
    display: none;
  }

  /* Hide TOC on mobile for simplicity */
  .policy-header {
    padding-top: 120px;
  }
}

/* --- HEADER --- */
header {
  padding: 180px 5% 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
}

/* --- FILTER BAR (The "Knowledge Graph") --- */
.filter-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cat-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cat-btn:hover {
  border-color: var(--brand-black);
  transform: translateY(-2px);
}

.cat-btn.active {
  background: var(--brand-black);
  color: white;
  border-color: var(--brand-black);
}

/* --- BLOG GRID --- */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5% 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  position: relative;
}

/* The Vertical Line on the Left */
.blog-line {
  position: absolute;
  left: 5%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f0f0f0;
  display: none;
  /* Only show on larger screens if desired layout shifts */
}

/* CARD DESIGN */
.blog-card {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-blue);
}

.card-image {
  height: 220px;
  background: #eee;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

/* Category Tag on Image */
.card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #111;
}

.card-excerpt {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 25px;
  flex-grow: 1;
}

.read-more {
  font-weight: 600;
  color: var(--brand-black);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.read-more span {
  transition: transform 0.3s ease;
}

.blog-card:hover .read-more span {
  transform: translateX(5px);
}

/* Specific Tag Colors */
.tag-tech {
  color: var(--brand-blue);
}

.tag-design {
  color: var(--brand-red);
}

.tag-strategy {
  color: var(--brand-green);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  header {
    padding-top: 120px;
  }

  section {
    margin: 0px 15px 0px 0px;
  }

  .blog-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem !important;
  }

  .timeline-container {
    padding-left: 25px;
  }

  #living-line {
    left: 15px !important;
  }

  .node {
    width: 14px;
    height: 14px;
    left: -32px;
  }

  .flex-gap {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .node {
    width: 14px;
    height: 14px;
    left: -16px;
  }

}

/* Overlay Background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* The Main Card */
.popup-container {
  background-color: #2b3137;
  /* Dark Grey like screenshot */
  color: white;
  width: 90%;
  max-width: 600px;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: 'Outfit', sans-serif;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

/* Visible State Animation */
.popup-overlay.show {
  opacity: 1;
}

.popup-overlay.show .popup-container {
  transform: translateY(0);
}

/* Skip Button (Top Right) */
.popup-skip-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: #111;
  color: white;
  border: 1px solid #444;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.popup-skip-btn:hover {
  background: #333;
}

/* Content Typography */
.popup-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.1;
}

.popup-text {
  color: #d0d7de;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Form Styles */
.popup-form {
  display: flex;
  gap: 10px;
}

.popup-input {
  flex-grow: 1;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #0d1117;
  color: white;
  font-size: 1rem;
  outline: none;
}

.popup-input:focus {
  border-color: #4285F4;
  /* Brand Blue */
}

.popup-submit-btn {
  background: white;
  color: black;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* Circle button like screenshot */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.popup-submit-btn:hover {
  transform: scale(1.1);
  background: #34A853;
  /* Brand Green on hover */
  color: white;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .popup-title {
    font-size: 1.8rem;
  }

  .popup-skip-btn {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
  }

  .popup-container {
    padding: 30px 20px;
  }

  .popup-form {
    flex-direction: column;
  }

  .popup-submit-btn {
    width: 100%;
    border-radius: 8px;
  }
}

#reading-progress {
	position: fixed; 
	top: 0;
	left: 0;
	height: 3px;
	background: var(--brand-blue, #0d6efd); /* Use a fallback color just in case */
	width: 0%;
	z-index: 9999; /* Ensure it's above everything else */
	transition: width 0.1s linear; /* Makes the movement smooth */
}

/* --- ARTICLE HEADER --- */
.img-article-header{
	width:100%;
}
.article-header {
	max-width: 800px; margin: 140px auto 60px; padding: 0 20px; text-align: center;
}
.meta-tag {
	display: inline-block; padding: 6px 14px; background: #eef2ff; color: var(--brand-blue);
	border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.article-title { font-size: 3rem; margin-bottom: 20px; letter-spacing: -1px; }
.article-meta { color: #888; font-size: 1rem; }

/* --- MAIN LAYOUT (Sidebar + Content) --- */
.content-wrapper {
	max-width: 1200px; margin: 0 auto; display: grid; 
	grid-template-columns: 250px 1fr; gap: 80px; padding: 0 5% 100px; position: relative;
}

/* STICKY TOC (Table of Contents) */
aside { position: relative; }
.toc-sticky {
	position: sticky; top: 120px;
}
.toc-header { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 15px; font-weight: 600; }
.toc-list { list-style: none; border-left: 2px solid #eee; }
.toc-list li { margin-bottom: 0; }
.toc-list a {
	display: block; padding: 8px 0 8px 20px; font-size: 0.9rem; color: #666; border-left: 2px solid transparent; margin-left: -2px;
}
.toc-list a:hover, .toc-list a.active {
	color: var(--brand-blue); border-left-color: var(--brand-blue); font-weight: 500;
}

/* ARTICLE BODY */
article { font-size: 1.15rem; color: #333; }
article p { margin-bottom: 30px; }
article h2 { font-size: 2rem; margin-top: 60px; margin-bottom: 25px; }
article h3 { font-size: 1.5rem; margin-top: 40px; }

/* Strategic Blockquote */
blockquote {
	border-left: 4px solid var(--brand-green);
	padding-left: 30px; margin: 40px 0;
	font-size: 1.4rem; font-family: 'Outfit', sans-serif; font-weight: 600; color: #111;
	background: #f9fdfa; padding: 40px; border-radius: 0 12px 12px 0;
}

/* Code Block Mockup */
.code-block {
	background: #1a1a1a; color: #eee; padding: 25px; border-radius: 8px; 
	font-family: monospace; font-size: 0.9rem; margin: 30px 0; overflow-x: auto;
}

/* AUTHOR BOX (The "Principal" Pitch) */
.author-box {
	margin-top: 80px; padding: 50px; background: #f9f9f9; border-radius: 16px;
	display: flex; align-items: center; gap: 30px; border: 1px solid #eee;
}
.author-img {
	width: 100px; height: 100px; background: #ddd url("../image/saikat_mitra.jpg") no-repeat 50% 50%; border-radius: 50%; flex-shrink: 0;
}
.author-text h4 { margin-bottom: 10px; font-size: 1.2rem; }
.author-text p { font-size: 1rem; color: #666; margin-bottom: 15px; }
.btn-author {
	display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--brand-blue);
}

 /* Ensure the form fits the timeline padding */
 /* --- CONTACT PAGE SPECIFIC CSS --- */
        
.contact-section {
	padding-bottom: 80px;
}

/* The Main Container Card */
.executive-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.03);
	margin-top: 30px;
	display: flex; /* Two Column Layout */
	overflow: hidden; /* Ensures rounded corners clip content */
}

/* --- Left Column: Info Panel --- */
.info-panel {
	background-color: #f8fafc; /* Subtle Contrast */
	width: 35%;
	padding: 50px 40px;
	border-right: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.info-header h3 {
	font-family: 'Outfit', sans-serif;
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: #0f172a;
}

.info-header p {
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 40px;
}

.info-item {
	margin-bottom: 30px;
}

.info-label {
	font-family: 'Outfit', sans-serif;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #94a3b8;
	margin-bottom: 8px;
	display: block;
	font-weight: 600;
}

.info-value {
	font-family: 'Inter', sans-serif;
	font-size: 1.1rem;
	color: #334155;
	font-weight: 500;
}

.info-highlight {
	background: #e0f2fe; /* Light Blue BG */
	color: #0284c7;      /* Blue Text */
	padding: 15px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	margin-top: auto; /* Pushes to bottom */
}

.info-highlight svg {
	margin-right: 10px;
	width: 20px; 
	height: 20px;
}

/* --- Right Column: Form Area --- */
.form-panel {
	width: 65%;
	padding: 50px;
}

/* Input Styling (Estimate Style) */
.input-wrapper {
	display: flex;
	flex-direction: column;
	position: relative;
}

.input-wrapper label {
	font-family: 'Outfit', sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}

.form-control {
	font-family: 'Inter', sans-serif;
	background-color: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 15px;
	color: #1e293b;
	transition: all 0.2s ease;
	outline: none;
	width: 100%;
}

.form-control:focus {
	border-color: var(--brand-blue, #0d6efd);
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Internal Grid for Form Fields */
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.full-width {
	grid-column: span 2;
}

textarea.form-control {
	min-height: 100px;
	resize: vertical;
}

/* Validation Colors */
.input-wrapper.error .form-control {
	border-color: #ef4444;
	background-color: #fef2f2;
}

.input-wrapper.error label {
	 color: #ef4444;
}

/* Button */
.submit-btn {
	background-color: var(--brand-black, #111);
	color: white;
	padding: 14px 35px;
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 15px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: transform 0.2s;
	float: right;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}