/* ============================================
   CRYOTONICS — Designed for Presence
   Premium Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-off-white: #f5f5f7;
  --color-bg-light: #0d0f18;
  --color-bg-section: #0a0c14;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.55);
  --color-text-muted: rgba(255, 255, 255, 0.4);
  --color-border: rgba(255, 255, 255, 0.15);
  --color-border-light: rgba(255, 255, 255, 0.06);
  --color-accent-magenta: #ffffff; /* Replaced pink with white for sheer minimalism */
  --color-accent-purple: #ffffff; 
  --color-accent-gradient: transparent;
  --color-accent-gradient-reverse: transparent;
  --color-shadow: rgba(0, 0, 0, 0.5);
  --color-shadow-md: rgba(0, 0, 0, 0.7);
  --color-shadow-lg: rgba(0, 0, 0, 0.9);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 100%;
  --container-narrow: 800px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg-section);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: transparent; /* Full transparency to reveal fixed backgrounds at z-index: -1 */
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
  /* Removed z-index: 1 to prevent stacking context that hides z-index: -1 children behind parent background */
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  font-weight: 200;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 0.03em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: 0.02em;
}

h4 {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.text-gradient {
  color: var(--color-text-primary);
  /* Removed bold gradients in favor of refined text */
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.section-subtitle.centered {
  margin: 0 auto;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 4vw; /* Fluid proportional padding for edge-to-edge uniformity on all screens */
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 120px 0;
}

.section--alt {
  background-color: transparent;
}

/* --- Global Background --- */
.global-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}
.global-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

/* --- Inner Page Backgrounds --- */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}
.page-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.global-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.flex {
  display: flex;
  align-items: center;
}

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

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

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: transparent;
  box-shadow: none;
}

.header .container {
  width: 100%;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.header__nav a:hover,
.header__nav a.active {
  color: #ffffff;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.3s ease;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.btn--primary:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: var(--color-text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--color-shadow);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: transparent;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__logo {
  width: 160px;
  height: 160px;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease-out;
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero__description {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__keywords {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero__keywords span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero__keywords .dot {
  width: 4px;
  height: 4px;
  background: var(--color-accent-magenta);
  border-radius: 50%;
  opacity: 0.6;
}

.hero__actions {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* --- Cards --- */
.card {
  background: rgba(15, 18, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover .card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transform: scale(1.05);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

.card__text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Service Detail Cards --- */
.service-detail-card {
  background: rgba(15, 18, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
}

.service-detail-card:hover {
  box-shadow: 0 12px 40px var(--color-shadow);
  border-color: rgba(255, 255, 255, 0.12);
}

.service-detail-card h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
  color: #ffffff;
  letter-spacing: 0.05em;
}

.service-detail-card p {
  margin-bottom: var(--space-lg);
}

.deliverable-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.deliverable-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
}

.deliverable-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

/* --- Project Cards --- */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--color-shadow-lg);
}

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

.project-card:hover .project-card__image {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-xl);
  background: linear-gradient(to top, rgba(5, 5, 5, 0.88), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.project-card__tag {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.project-card__arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.project-card:hover .project-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

/* --- Clients Section --- */
.clients-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4xl);
  flex-wrap: wrap;
}

.client-logo {
  height: 50px;
  opacity: 0.7;
  transition: all var(--transition-base);
  cursor: default;
}

.client-logo:hover {
  opacity: 1;
}

/* --- Why Choose Us --- */
.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.value-card:hover .value-card__icon {
  background: var(--color-accent-gradient);
  color: var(--color-white);
  transform: translateY(-4px);
}

.value-card__title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.value-card__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-section {
  background: var(--color-bg-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.contact-info p {
  margin-bottom: var(--space-2xl);
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-details a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--color-accent-magenta);
}

.contact-details__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Forms --- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form__label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-accent-magenta);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.08);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Footer --- */
.footer {
  background: #000000;
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.footer__text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-5xl)) 0 var(--space-4xl);
  background: transparent;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* --- Page Content --- */
.page-content {
  padding: var(--space-5xl) 0;
}

.page-content h2 {
  margin-bottom: var(--space-lg);
}

.page-content p + p {
  margin-top: var(--space-md);
}

/* --- Careers --- */
.careers-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.careers-cta h2 {
  margin-bottom: var(--space-lg);
}

.careers-cta p {
  margin-bottom: var(--space-2xl);
}

.careers-email {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent-magenta);
  letter-spacing: 0.05em;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: var(--space-lg) 0;
  border-radius: 2px;
}

.divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* --- Services Page --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__content h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.service-block__content p {
  margin-bottom: var(--space-xl);
}

/* --- About Page --- */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.about-value-card {
  padding: var(--space-xl);
  background: rgba(15, 18, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.about-value-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

.about-value-card h4 {
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.about-value-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-3xl); }

  .section { padding: var(--space-4xl) 0; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    background: url('../images/menu-bg.jpg') center/cover no-repeat, rgba(10, 10, 15, 0.85);
    background-blend-mode: overlay;
    box-shadow: -10px 0 40px var(--color-shadow-md);
    transition: right var(--transition-base);
    padding: var(--space-2xl);
  }

  .header__nav.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .header__inner {
    justify-content: space-between;
    gap: 0;
  }

  .global-canvas {
    z-index: -5; /* Push behind text and images on mobile */
    opacity: 0.35; /* Reduce saturation/intensity on mobile */
  }

  body.menu-open .global-canvas {
    z-index: 10000 !important;
    opacity: 0.8 !important; /* Bring dots to foreground over transparent menu */
  }

  .global-bg img {
    opacity: 0.35; /* Make the homepage background image more visible on smaller screens */
  }

  .header__cta {
    display: none;
  }

  .hero__logo {
    width: 110px;
    height: 110px;
  }

  .hero__title {
    letter-spacing: 0.12em;
  }

  .hero__keywords {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .section { padding: var(--space-3xl) 0; }

  .clients-strip {
    gap: var(--space-2xl);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero__logo {
    width: 90px;
    height: 90px;
  }

  .page-hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
  }
}

/* --- Overlay for Mobile Nav --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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


/* ========================================= */
/* EXTRACTED HOMEPAGE STYLES */
/* ========================================= */

/* ===== HOMEPAGE — CINEMATIC FUTURISTIC THEME ===== */

    .hp-body {
      background: #0a0c14;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* --- Header --- */
    .hp-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      height: 72px;
      display: flex;
      align-items: center;
      background: transparent;
      transition: all 0.4s ease;
    }

    .hp-header.scrolled {
      background: rgba(10, 12, 20, 0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    .hp-header .container {
      width: 100%;
    }

    .hp-header__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }

    .hp-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .hp-logo img {
      height: 36px;
      width: 36px;
      object-fit: contain;
    }

    .hp-logo__text {
      font-family: 'Outfit', sans-serif;
      font-size: 1.15rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      color: #ffffff;
      text-transform: uppercase;
    }

/* Header Navigation */
.hp-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hp-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  padding: 4px 0;
  transition: all 0.3s ease;
}

.hp-nav a:hover,
.hp-nav a.active {
  color: #ffffff;
}

.hp-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.3s ease;
}

.hp-nav a:hover::after,
.hp-nav a.active::after {
  width: 100%;
}

    /* Grid-dot icon on far right */
    .hp-grid-icon {
      display: grid;
      grid-template-columns: repeat(3, 4px);
      gap: 3px;
      cursor: pointer;
    }

    .hp-grid-icon span {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      transition: background 0.2s ease;
    }

    .hp-grid-icon:hover span {
      background: rgba(255, 255, 255, 0.8);
    }

    /* --- Hero Section --- */
    .hp-hero {
      position: relative;
      width: 100%;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      background: #0a0c14;
    }

    .hp-hero__bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }

    .hp-hero__bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      opacity: 0.65;
    }

    /* Dark gradient overlay for text legibility */
    .hp-hero__bg::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        to right,
        rgba(10, 12, 20, 0.92) 0%,
        rgba(10, 12, 20, 0.55) 45%,
        rgba(10, 12, 20, 0.15) 100%
      ),
      linear-gradient(
        to top,
        rgba(10, 12, 20, 0.95) 0%,
        transparent 40%
      );
    }

    .hp-hero__content {
      position: relative;
      z-index: 2;
      padding: 0 0 0 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      min-height: 100vh;
    }

    .hp-hero__main {
      padding: 0 6vw;
      padding-top: 140px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .hp-hero__subtitle {
      font-family: 'Outfit', sans-serif;
      font-size: clamp(0.9rem, 1.5vw, 1.2rem);
      font-weight: 200;
      letter-spacing: 0.25em;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      margin-bottom: 8px;
      animation: hpFadeUp 0.8s ease-out 0.1s both;
    }

    .hp-hero__title {
      font-family: 'Outfit', sans-serif;
      font-size: clamp(3.5rem, 9vw, 7.5rem);
      font-weight: 200;
      letter-spacing: 0.08em;
      line-height: 0.95;
      color: #ffffff;
      margin-bottom: 32px;
      animation: hpFadeUp 0.8s ease-out 0.25s both;
    }

    .hp-hero__desc {
      font-family: 'Outfit', sans-serif;
      font-size: 0.85rem;
      font-weight: 300;
      line-height: 1.8;
      color: rgba(255, 255, 255, 0.45);
      max-width: 380px;
      padding-left: 20px;
      border-left: 1px solid rgba(255, 255, 255, 0.15);
      margin-bottom: 40px;
      animation: hpFadeUp 0.8s ease-out 0.4s both;
    }

    .hp-hero__cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Outfit', sans-serif;
      font-size: 0.78rem;
      font-weight: 400;
      letter-spacing: 0.12em;
      color: #ffffff;
      padding: 12px 32px;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 999px;
      background: transparent;
      cursor: pointer;
      transition: all 0.3s ease;
      animation: hpFadeUp 0.8s ease-out 0.55s both;
      width: fit-content;
    }

    .hp-hero__cta:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.5);
      transform: translateY(-2px);
    }

    /* --- Bottom Info Cards --- */
    .hp-hero__bottom {
      display: flex;
      justify-content: flex-end;
      padding: 0 6vw 48px;
      animation: hpFadeUp 0.8s ease-out 0.7s both;
    }

    .hp-info-strip {
      display: flex;
      gap: 0;
      background: rgba(15, 18, 30, 0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 14px;
      overflow: hidden;
      max-width: 560px;
      width: 100%;
    }

    .hp-info-card {
      flex: 1;
      padding: 24px 28px;
    }

    .hp-info-card:first-child {
      border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hp-info-card__title {
      font-family: 'Outfit', sans-serif;
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: #ffffff;
      margin-bottom: 10px;
    }

    .hp-info-card__text {
      font-family: 'Outfit', sans-serif;
      font-size: 0.78rem;
      font-weight: 300;
      line-height: 1.7;
      color: rgba(255, 255, 255, 0.4);
    }

    /* --- About Section (preserved) --- */
    .home-about {
      position: relative;
      padding: 120px 0;
      background: #060810;
      overflow: hidden;
    }

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

    .home-about__grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .home-about__left {
      max-width: 540px;
    }

    .home-about__left h2 {
      margin-bottom: 24px;
      font-size: 2.2rem;
    }

    .home-about__left p {
      margin-bottom: 24px;
    }

    .home-about__right {
      background: rgba(15, 18, 30, 0.6);
      padding: 40px;
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(10px);
    }

    .feature-list {
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .feature-item {
      display: flex;
      gap: 20px;
    }

    .feature-item__icon {
      font-family: 'Outfit', sans-serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--color-accent-magenta);
      background: rgba(233, 30, 99, 0.1);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .feature-item h4 {
      font-family: 'Outfit', sans-serif;
      font-size: 1.1rem;
      margin-bottom: 6px;
    }

    .feature-item p {
      font-family: 'Outfit', sans-serif;
      font-size: 0.9rem;
      margin-bottom: 0;
    }

    /* --- Mobile Menu Toggle --- */
    .hp-menu-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      width: 28px;
      cursor: pointer;
      z-index: 1001;
    }

    .hp-menu-toggle span {
      height: 2px;
      width: 100%;
      background: #ffffff;
      transition: all 0.3s ease;
      border-radius: 2px;
    }

    .hp-menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .hp-menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    .hp-menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    /* --- Animations --- */
    @keyframes hpFadeUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* --- Responsive --- */
    @media (max-width: 1024px) {
      .home-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }
    }

    @media (max-width: 768px) {
      .hp-header__inner {
        justify-content: space-between;
        gap: 0;
      }

      .hp-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        background: rgba(10, 12, 20, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 60px 40px;
        z-index: 1000;
      }

      .hp-nav.open {
        right: 0;
      }

      .hp-nav a {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        font-weight: 300;
        opacity: 0.7;
        transition: all 0.3s ease;
      }

      .hp-nav a.active,
      .hp-nav a:hover {
        opacity: 1;
        color: var(--accent-light);
        padding-left: 10px;
      }

      .hp-menu-toggle {
        display: flex;
        width: 30px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1100;
      }

      .hp-menu-toggle span {
        width: 100%;
        height: 1px;
        background: #fff;
        transition: all 0.3s ease;
      }

      .hp-menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
      }
      .hp-menu-toggle.active span:nth-child(2) {
        opacity: 0;
      }
      .hp-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
      }

      .hp-grid-icon {
        display: none;
      }

      .hp-hero__main {
        padding: 110px 6vw 0;
      }

      .hp-hero__title {
        font-size: clamp(2.2rem, 12vw, 4rem);
        line-height: 1.1;
        margin-bottom: 24px;
      }

      .hp-hero__desc {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.8;
      }

      .hp-hero__bottom {
        justify-content: stretch;
        padding: 0 4vw 32px;
      }

      .hp-info-strip {
        flex-direction: column;
        max-width: 100%;
      }

      .hp-info-card:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }

      .home-about {
        padding: 80px 0;
      }
    }

    @media (max-width: 480px) {
      .hp-hero__title {
        font-size: 2rem;
      }

      .hp-info-card {
        padding: 18px 20px;
      }
    }




/* Inner Page Background Overlay (35% Opacity) */
.inner-page-bg-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; 
  background-size: cover;
  background-position: center;
  opacity: 0.55; /* Boosted to match homepage hero feel */
  pointer-events: none;
}


/* Combined Responsive Navigation Logic */
@media (min-width: 769px) {
  /* Secondary Desktop Interaction: Sliding Navigation */
  .hp-nav {
    position: fixed !important;
    right: 4vw !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(20px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
  }
  
  .hp-nav.open-desktop {
    right: 50% !important;
    transform: translateY(-50%) translateX(50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 768px) {
  /* Primary Mobile Interaction: Hamburger Drawer */
  .hp-nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important; /* Unset the desktop centered logic */
    transform: none !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100vh !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: rgba(10, 12, 20, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 9999 !important; /* Extremely high to beat any hero elements */
    opacity: 0 !important; /* Hidden by default */
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  .hp-nav.open {
    right: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important; /* Ensure it overrides any hidden display from desktop */
  }
}
