:root {
  /* Fonts */
  --font-primary: 'Roboto', sans-serif;
  --font-headings: 'Archivo Black', sans-serif;

  /* Monochrome Palette (with a clear accent for UX) */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-lightest-gray: #F8F9FA; /* Bootstrap light bg */
  --color-light-gray: #E9ECEF;   /* Bootstrap card/border */
  --color-medium-gray: #CED4DA; /* Bootstrap borders */
  --color-muted-text: #6C757D;  /* Bootstrap muted text / secondary */
  --color-body-text: #333333;
  --color-headings: #222222;
  --color-dark-bg: #212529; /* Footer bg */
  --color-text-on-dark: #DEE2E6; /* Text on dark backgrounds */

  /* Accent Colors (Modern & Bright for CTAs and key elements) */
  --color-accent-primary: #0D6EFD; /* Bootstrap's primary blue */
  --color-accent-primary-darker: #0B5ED7;
  --color-accent-primary-hover: #0A58CA;
  --color-accent-secondary: #6C757D; /* Bootstrap secondary */
  --color-accent-secondary-darker: #5A6268;

  /* Gradients */
  --gradient-dark-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  --gradient-subtle-biomorphic: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(230,230,250,0.1)); /* Very subtle for biomorphic feel */

  /* UI Elements */
  --border-radius-base: 0.375rem; /* Bootstrap's default */
  --border-radius-biomorphic-soft: 12px; /* For cards, inputs */
  --border-radius-biomorphic-medium: 20px; /* More pronounced */
  --box-shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
  --box-shadow-lifted: 0 10px 30px rgba(0, 0, 0, 0.12);
  --box-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-smooth: 0.3s ease-out;
  --transition-bezier: cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Navbar height (approximate, for content offset) */
  --navbar-height: 70px;

  /* Glassmorphism */
  --glass-blur: 8px;
  --glass-bg-light: rgba(255, 255, 255, 0.45);
  --glass-bg-dark: rgba(33, 37, 41, 0.65); /* Darker glass for dark mode or overlays */
  --glass-border-light: 1px solid rgba(255, 255, 255, 0.2);
  --glass-border-dark: 1px solid rgba(255, 255, 255, 0.1);
}

/* === BASE STYLES === */
body {
  font-family: var(--font-primary);
  color: var(--color-body-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-headings);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-body-text);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent-primary-darker);
  text-decoration: none; /* Minimalist preference */
}

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

/* Section Base */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative; /* For pseudo-elements or absolute positioning */
}

.bg-light {
  background-color: var(--color-lightest-gray) !important;
}

/* === UTILITY CLASSES === */
.text-shadow-strong {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-headings);
  position: relative;
}
.section-title::after { /* Biomorphic underline */
  content: '';
  display: block;
  width: 70px;
  height: 5px;
  background-color: var(--color-accent-primary);
  margin: 0.75rem auto 0;
  border-radius: 10px / 50%; /* More organic shape */
  opacity: 0.8;
}

/* === NAVIGATION (Fixed Navbar) === */
.navbar {
  background-color: var(--glass-bg-light) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: var(--glass-border-light);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: background-color var(--transition-smooth);
}
.navbar-brand {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  color: var(--color-headings) !important;
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--color-body-text) !important;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent-primary) !important;
}
.navbar-nav .nav-link::before { /* Subtle hover effect */
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-accent-primary);
  transition: width var(--transition-smooth) var(--transition-bezier);
}
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 60%;
}
.navbar-toggler {
  border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34,34,34,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === HERO SECTION === */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem; /* Ample padding but not fixed min-height */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; /* For parallax */
}
/* Overlay is applied via inline style: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)) */
.hero-section .container {
  position: relative; /* Above overlay */
  z-index: 2;
}
.hero-title {
  color: var(--color-white) !important; /* Strict: white text */
  font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Ensure readability */
}
.hero-subtitle {
  color: var(--color-white) !important; /* Strict: white text */
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Ensure readability */
}

/* === BUTTONS (Global) === */
.btn, button, input[type='submit'], input[type='button'] {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem; /* Generous padding */
  border-radius: var(--border-radius-biomorphic-soft);
  border-width: 2px;
  border-style: solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-smooth) var(--transition-bezier);
  display: inline-block; /* For proper padding and margin */
  text-align: center;
  vertical-align: middle;
  user-select: none;
}
.btn:focus, button:focus, input[type='submit']:focus, input[type='button']:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(var(--color-accent-primary), 0.35);
}
.btn-primary,
button.btn-primary,
input[type='submit'].btn-primary { /* Apply to actual buttons and inputs too */
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--color-white);
}
.btn-primary:hover,
button.btn-primary:hover,
input[type='submit'].btn-primary:hover {
  background-color: var(--color-accent-primary-darker);
  border-color: var(--color-accent-primary-darker);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--box-shadow-lifted);
}
.btn-primary:active,
button.btn-primary:active,
input[type='submit'].btn-primary:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: var(--box-shadow-inset);
}
.btn-outline-primary {
  color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  background-color: transparent;
}
.btn-outline-primary:hover {
  background-color: var(--color-accent-primary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(var(--color-accent-primary), 0.2);
}
.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

/* === CARDS (Global Pattern) === */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-biomorphic-soft);
  box-shadow: var(--box-shadow-soft);
  transition: transform var(--transition-smooth) var(--transition-bezier), box-shadow var(--transition-smooth) var(--transition-bezier);
  overflow: hidden; /* Ensures child elements conform to border-radius */
  display: flex; /* STROGO */
  flex-direction: column; /* STROGO */
  align-items: center; /* STROGO: Centers .card-image and .card-content horizontally if they don't take full width */
  text-align: center; /* STROGO: Centers inline/inline-block content within the card */
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-lifted);
}
.card .card-image, /* Handles images at the top of vertical cards */
.card .image-container { /* General container for images in cards */
  width: 100%; /* Make image container take full width of card */
  height: 200px; /* STROGO: Fixed height for image containers */
  overflow: hidden; /* Clip image to container bounds */
  display: flex; /* Center image if it's smaller (though object-fit:cover usually handles this) */
  align-items: center;
  justify-content: center;
}
.card .card-image img,
.card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* STROGO: Ensure image covers container without distortion */
  transition: transform 0.4s var(--transition-bezier);
}
.card:hover .card-image img,
.card:hover .image-container img {
  transform: scale(1.05); /* Subtle zoom on image hover */
}
.card-content, /* Use for general card content structure */
.card .card-body { /* Bootstrap's class, ensure it centers too */
  padding: 1.5rem;
  width: 100%; /* Ensure content area spans card width */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content vertically if card has fixed height or if content smaller */
  text-align: center; /* Center text content */
  flex-grow: 1; /* Allows card body to fill remaining space in flex column */
}
.card-title {
  font-family: var(--font-headings);
  color: var(--color-headings);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.card-text {
  color: var(--color-body-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1; /* Allow text to take available space */
}
.card .btn { /* Button inside card */
  margin-top: auto; /* Pushes button to the bottom of card-body if it's a flex container */
}

/* Specific Card types for layout adjustments if needed */
/* Case Study Card: horizontal layout on desktop */
.case-study-card .row { /* Bootstrap row used inside */
  align-items: stretch; /* Make columns same height */
}
.case-study-card .card-image { /* Image part of horizontal card */
  height: 100%; /* For horizontal cards, image takes full height of its column */
  min-height: 250px; /* Ensure some height on smaller viewports before stacking */
}
@media (min-width: 768px) {
  .case-study-card .card-image {
    border-top-right-radius: 0;
    border-bottom-left-radius: var(--border-radius-biomorphic-soft);
  }
  .case-study-card .card-content {
    text-align: left; /* Align text left for horizontal layout */
    align-items: flex-start;
  }
}

/* Read More Links */
.read-more-link {
  font-weight: 600;
  color: var(--color-accent-primary);
  display: inline-block;
  margin-top: 0.5rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.read-more-link::after {
  content: ' →'; /* Arrow */
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}
.read-more-link:hover {
  color: var(--color-accent-primary-darker);
  transform: translateX(3px);
}
.read-more-link:hover::after {
  transform: translateX(2px);
}
.btn.read-more-link { /* If a button is styled as read-more */
    text-transform: none;
    letter-spacing: normal;
}


/* === FORMS === */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body-text);
  background-color: var(--color-white);
  background-clip: padding-box;
  border: 1px solid var(--color-medium-gray);
  appearance: none;
  border-radius: var(--border-radius-biomorphic-soft);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--box-shadow-inset);
}
.form-control:focus {
  color: var(--color-body-text);
  background-color: var(--color-white);
  border-color: var(--color-accent-primary-lighter);
  outline: 0;
  box-shadow: var(--box-shadow-inset), 0 0 0 0.25rem rgba(var(--color-accent-primary), 0.25);
}
.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-headings);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
.contact-form {
  background: var(--gradient-subtle-biomorphic), var(--color-lightest-gray);
  padding: 2.5rem;
  border-radius: var(--border-radius-biomorphic-medium);
  box-shadow: var(--box-shadow-lifted);
}


/* === SPECIFIC SECTIONS === */
/* About Us Section - Stat Widgets */
.stat-widget {
  background-color: var(--color-lightest-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius-biomorphic-soft);
  text-align: center;
  box-shadow: var(--box-shadow-soft);
}
.stat-widget h3 { /* The number */
  font-family: var(--font-headings);
  color: var(--color-accent-primary);
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}
.stat-widget p { /* The label */
  font-size: 1rem;
  color: var(--color-muted-text);
  margin-bottom: 0;
}

/* Innovation Section - Progress Bars */
.progress {
  height: 12px; /* Custom height */
  border-radius: var(--border-radius-base);
  background-color: var(--color-light-gray);
  overflow: hidden; /* Ensure progress bar respects radius */
}
.progress-bar {
  background-color: var(--color-accent-primary);
  transition: width 1.5s var(--transition-bezier) !important; /* Smooth animation from JS */
}
.innovation-card .card-body small { /* Text below progress bar */
    font-size: 0.8rem;
    color: var(--color-muted-text);
    margin-top: 0.5rem;
    display: block;
}


/* Clientele & Media Logos */
.client-logo, .media-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  margin: 0.5rem 1rem; /* Spacing for logos in a row/carousel */
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-smooth), opacity var(--transition-smooth);
}
.client-logo:hover, .media-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}


/* News Section (List Group styling) */
.list-group-item {
  border-radius: var(--border-radius-biomorphic-soft) !important; /* Override Bootstrap */
  margin-bottom: 1rem !important;
  border: 1px solid var(--color-light-gray);
  box-shadow: var(--box-shadow-soft);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.list-group-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lifted);
}
.list-group-item h5 {
  color: var(--color-headings);
}
.list-group-item small {
  color: var(--color-muted-text);
}

/* Parallax Effect (Basic placeholder for JS-driven better parallax) */
.parallax-background {
  background-attachment: fixed; /* Only works if element has enough height and scroll */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* === FOOTER === */
.footer {
  background-color: var(--color-dark-bg);
  color: var(--color-text-on-dark);
  padding: 3rem 0;
  font-size: 0.9rem;
}
.footer h5 {
  font-family: var(--font-headings);
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer .list-unstyled li {
  margin-bottom: 0.5rem;
}
.footer .footer-link {
  color: var(--color-text-on-dark);
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}
.footer .footer-link:hover {
  opacity: 1;
  color: var(--color-white);
  text-decoration: underline;
}
.footer hr {
  border-color: rgba(255,255,255,0.15);
}
.footer .small {
  font-size: 0.85rem;
  opacity: 0.7;
}
/* Footer social links (text-only styling) */
.footer .social-links-text li a { /* Assuming social links are in a ul.social-links-text */
  padding: 0.25rem 0; /* Minimal padding for text links */
  display: inline-block;
}

/* === SPECIFIC PAGE STYLES === */
/* Privacy & Terms Pages */
.page-privacy, .page-terms {
  padding-top: calc(var(--navbar-height) + 4rem); /* Offset for fixed navbar + extra space */
  padding-bottom: 4rem;
}
.page-privacy h1, .page-terms h1 {
  margin-bottom: 2rem;
}
.page-privacy h4, .page-terms h4 {
  font-family: var(--font-headings);
  color: var(--color-headings);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Success Page */
.page-success {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Allow header/footer */
}
.page-success main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.success-message-box {
  background-color: var(--color-lightest-gray);
  padding: 2rem;
  border-radius: var(--border-radius-biomorphic-medium);
  box-shadow: var(--box-shadow-lifted);
  max-width: 600px;
  margin: 2rem;
}
.success-message-box img { /* Checkmark icon */
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  /* Assuming an SVG or a green-tinted image */
}

/* === ANIMATIONS (Scroll-triggered, class added by JS) === */
.animated-element {
  /*opacity: 0;*/
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-bezier), transform 0.8s var(--transition-bezier);
}
.animated-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === COOKIE POPUP (Glassmorphism) === */
#cookie-popup {
  background-color: var(--glass-bg-dark) !important; /* Darker glass for contrast */
  backdrop-filter: blur(var(--glass-blur)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--color-white) !important;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-popup p {
  color: var(--color-light-gray) !important;
  margin-bottom: 1rem !important;
}
#cookie-popup a {
  color: var(--color-white) !important;
  font-weight: 600;
}
#cookie-popup button {
  margin-top: 0.5rem;
}
#accept-cookies { /* Specific button in cookie popup */
  background-color: var(--color-accent-primary) !important;
  border-color: var(--color-accent-primary) !important;
  color: var(--color-white) !important;
}
#accept-cookies:hover {
  background-color: var(--color-accent-primary-darker) !important;
  border-color: var(--color-accent-primary-darker) !important;
}
#decline-cookies {
  background-color: var(--color-accent-secondary) !important;
  border-color: var(--color-accent-secondary) !important;
  color: var(--color-white) !important;
}
#decline-cookies:hover {
  background-color: var(--color-accent-secondary-darker) !important;
  border-color: var(--color-accent-secondary-darker) !important;
}


/* Responsive Overrides for Bootstrap Columns if needed for stricter width control */
/* Example for ensuring columns are at least two-thirds on medium devices and up */
/* This might conflict with Bootstrap's natural flow, use with caution or adjust Bootstrap col classes */
/*
@media (min-width: 768px) {
  .row > .col-md-is-two-thirds {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
}
*/

/* Make sure content on specific pages like privacy/terms does not overlap header */
.content-page-container { /* Add this class to the main container of privacy/terms pages */
    padding-top: 100px;
}
.navbar-toggler{
  display: none;
}