/* ==========================================================================
   CHERRY DAVINCI — DIGITAL DESIGNER & UI/UX ARCHITECT
   Font: Space Grotesk (Both Title and Body)
   Crisp Aesthetics (Zero Blurry Backgrounds Across All Sections)
   Palette: Deep Void (#000000), Vibrant Orange (#ff5500), Crisp White (#ffffff)
   ========================================================================== */

:root {
  --bg-deep: #000000;
  --bg-surface: #0a0a0d;
  --bg-card: #0c0d12;
  --bg-card-hover: #14161c;
  
  --orange-accent: #ff5500;
  --orange-hover: #ff6a1f;
  --orange-glow: rgba(255, 85, 0, 0.35);
  --orange-dim: rgba(255, 85, 0, 0.12);
  
  --text-white: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 85, 0, 0.5);
  
  /* Space Grotesk for BOTH Title and Body */
  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}

html {
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-main);
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--bg-deep);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-main);
}

body.is-loading {
  overflow: hidden;
}

/* ==========================================================================
   Fixed Background Canvas Engine (300 Frames)
   Crisp Viewport - Zero Blur
   ========================================================================== */

.canvas-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#sequenceCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-shading {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Ultra-clean vignette: leaves the 300-frame animation crisp, bright, and completely unblurred */
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-fluid), visibility 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  width: min(88%, 380px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.loader-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loader-logo {
  width: 38px;
  height: 38px;
}

.loader-brand {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.loader-progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--orange-accent);
  box-shadow: 0 0 12px var(--orange-glow);
  transition: width 0.15s ease-out;
}

.loader-numbers {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-accent);
}

.loader-caption {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Navigation Bar (Crisp - Zero Blur)
   ========================================================================== */

.site-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 85, 0, 0.45));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-item {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--orange-accent);
}

.nav-touch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease-fluid), box-shadow 0.25s ease;
}

.nav-touch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.35);
}

.arrow-circle {
  width: 32px;
  height: 32px;
  background: var(--orange-accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Scroll Layout & Content Flow
   ========================================================================== */

.scroll-content-layout {
  position: relative;
  z-index: 10;
  min-height: 420vh;
}

/* ==========================================================================
   Section 1: Hero (Crisp - Zero Blur)
   ========================================================================== */

.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8.5rem 0 3.5rem;
  position: relative;
}

.hero-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.hero-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-greeting {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.hero-headline {
  font-size: clamp(3.8rem, 8.5vw, 6.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-tagline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.pill-highlight {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--orange-dim);
  border: 1px solid rgba(255, 85, 0, 0.4);
  color: var(--orange-accent);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
  justify-self: end;
}

.hero-statement {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.hero-subtext {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Quick Hero Social Links */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.social-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.social-pill-link:hover {
  background: var(--orange-accent);
  border-color: var(--orange-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--orange-glow);
}

/* 4 Core Services (#01 to #04) */
.hero-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange-accent);
}

.service-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.service-detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Hero Scroll Prompt */
.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: -0.8rem;
}

.scroll-mouse-cue {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-mouse-dot {
  width: 3px;
  height: 6px;
  background: var(--orange-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: mouseAnim 1.6s infinite ease-in-out;
}

@keyframes mouseAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   Section 2: Trusted Brands Bar (Crisp - Zero Blur)
   ========================================================================== */

.section-brands {
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.4);
}

.brands-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.brands-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-white);
  flex-shrink: 0;
}

.brands-logo-row {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.brand-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.brand-item:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--orange-accent);
}

/* ==========================================================================
   Section 3: Tools & Software Ecosystem (Crisp - Zero Blur)
   ========================================================================== */

.section-tools {
  padding: 6.5rem 0 5rem;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.4);
}

.tools-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tools-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 650px;
}

.tools-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.tools-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.tool-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.3s var(--ease-fluid), border-color 0.3s ease, background 0.3s ease;
}

.tool-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.tool-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ps-icon {
  background: #001e36;
  border: 1px solid #31a8ff;
}

.ai-icon {
  background: #330000;
  border: 1px solid #ff9a00;
}

.adobe-code {
  font-size: 1.35rem;
  font-weight: 800;
}

.ps-icon .adobe-code { color: #31a8ff; }
.ai-icon .adobe-code { color: #ff9a00; }

.js-icon {
  background: #f7df1e;
}

.js-code {
  color: #000000;
  font-weight: 800;
  font-size: 1.2rem;
}

.chatgpt-icon {
  color: #10a37f;
  background: rgba(16, 163, 127, 0.12);
  border: 1px solid rgba(16, 163, 127, 0.4);
}

.antigravity-icon {
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid rgba(255, 85, 0, 0.4);
}

.google-flow-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.tool-type {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tool-highlight {
  border-color: rgba(255, 85, 0, 0.4);
  background: radial-gradient(circle at top right, rgba(255, 85, 0, 0.15) 0%, #121319 70%);
}

/* ==========================================================================
   Section 4: UI/UX & Design Showcase Grid (Crisp - Zero Blur)
   ========================================================================== */

.section-projects {
  padding: 8rem 0 6rem;
  background: rgba(0, 0, 0, 0.4);
}

.projects-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.projects-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 620px;
}

.orange-badge-tag {
  color: var(--orange-accent);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.projects-main-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.projects-main-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
}

.filter-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
  background: var(--orange-accent);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--orange-glow);
}

/* Projects Cards Grid */
.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-fluid), border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
}

.project-showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 85, 0, 0.25);
  background: var(--bg-card-hover);
}

.card-media-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #101014;
}

.card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-fluid);
}

.project-showcase-card:hover .card-media-wrap img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--orange-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
}

.card-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.card-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.cat-tag {
  color: var(--orange-accent);
  font-weight: 600;
}

.card-heading {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.card-summary {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.card-metrics-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-item strong {
  color: var(--orange-accent);
  font-weight: 700;
}

/* ==========================================================================
   Section 5: Behind the Designs (Branding, Social Media Banners, Dashboard UI)
   ========================================================================== */

.section-behind {
  padding: 7rem 0 6rem;
  background: rgba(0, 0, 0, 0.4);
}

.behind-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.behind-header-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: flex-start;
  gap: 3.5rem;
}

.behind-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.behind-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.behind-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.behind-subhead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-white);
  font-weight: 500;
}

.behind-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.behind-callout-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.4;
}

.orange-touch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--orange-accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
  transition: transform 0.25s var(--ease-fluid), background 0.25s ease, box-shadow 0.25s ease;
}

.orange-touch-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 85, 0, 0.6);
}

.arrow-circle-white {
  width: 34px;
  height: 32px;
  background: #ffffff;
  color: var(--orange-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 3 Cards: Branding, Social Banners, Dashboard UI */
.behind-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.showcase-card {
  background: #000000;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-fluid), border-color 0.4s ease, box-shadow 0.4s ease;
}

.showcase-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 85, 0, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 85, 0, 0.2);
}

.card-image-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: #111114;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-fluid);
}

.showcase-card:hover .card-image-box img {
  transform: scale(1.05);
}

.card-caption {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #000000;
}

.card-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-accent);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Section 6: Services Matrix (Crisp - Zero Blur)
   ========================================================================== */

.section-matrix {
  padding: 8rem 0;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.4);
}

.matrix-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.matrix-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.matrix-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.matrix-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
}

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

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s var(--ease-fluid), border-color 0.3s ease, background 0.3s ease;
}

.matrix-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.matrix-highlight {
  border-color: rgba(255, 85, 0, 0.35);
  background: radial-gradient(circle at top right, rgba(255, 85, 0, 0.15) 0%, #121319 70%);
}

.matrix-icon {
  font-size: 2rem;
  color: var(--orange-accent);
}

.matrix-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-white);
}

.matrix-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.matrix-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.2rem;
}

.matrix-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange-accent);
  font-weight: 700;
}

/* ==========================================================================
   Section 7: Footer with Logo Icon & Social Media Links
   ========================================================================== */

.folio-footer {
  padding: 5rem 0 4rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-light);
}

.footer-container {
  width: min(92%, 1240px);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-left-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 460px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-socials-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-accent);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.footer-social-btn:hover {
  background: var(--orange-accent);
  border-color: var(--orange-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--orange-glow);
}

.footer-links a {
  color: var(--orange-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   Interactive Touch Modal
   ========================================================================== */

.touch-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.touch-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-dialog {
  position: relative;
  width: min(90%, 480px);
  background: #0f1016;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 2.5rem;
  z-index: 1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 85, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.5rem;
}

.modal-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--orange-accent);
  box-shadow: 0 0 12px var(--orange-glow);
}

.modal-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--orange-accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: transform 0.2s, background 0.2s;
}

.modal-submit-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

.modal-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.modal-socials a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.modal-socials a:hover {
  color: var(--orange-accent);
}

.modal-feedback {
  font-size: 0.9rem;
  color: #10b981;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-align: center;
  margin-top: 1rem;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111218;
  border: 1px solid var(--orange-accent);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 10002;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-right {
    justify-self: start;
    max-width: 100%;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-cards-grid {
    grid-template-columns: 1fr;
  }
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .behind-header-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .behind-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brands-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .brands-logo-row {
    gap: 2rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .behind-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
