/* CSS Variables & Global Reset - Monochrome & Grey Theme */
:root {
  --bg-dark: #090a0c;
  --bg-card: rgba(26, 28, 33, 0.75);
  --bg-elevated: #14161b;
  --bg-solid-grey: #1a1c21;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #e2e8f0;
  --accent-rose: #D2A7A7;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.35);
  --font-family: 'Arsenal', sans-serif;
  --max-width: 1200px;
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --scroll-progress: 0%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(50, 53, 61, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(35, 38, 44, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(20, 22, 26, 0.6) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 0,
      transparent 20px
    );
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
}

/* Typography */
h1 { font-weight: 700; line-height: 1.02; letter-spacing: 0.5px; margin-bottom: 0.75rem; text-transform: uppercase; }
h2 { font-size: 3.25rem; font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: 1.65rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; }
p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-hero {
  padding-bottom: 2rem;
}

.section-no-frame {
  background: transparent;
  padding: 5rem 1.5rem;
}

.section-header {
  margin-bottom: 3rem;
}

.nda-text, .earlier-work-intro {
  color: var(--accent-rose);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.section-header .sub-text {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Custom List with SVG Diamond Bullet */
.custom-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.custom-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 400;
}

.custom-list li b {
  font-weight: 700;
  color: var(--text-primary);
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: url('Media/diamond.svg') no-repeat center center;
  background-size: contain;
}

.hero-lead {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent-rose);
  margin-bottom: 2.5rem;
}

/* Mobile vs Desktop Header Visibility */
.hero-header-mobile {
  display: none;
}

.hero-header-desktop {
  display: block;
}

/* Navbar — Dynamic Scroll Gradient Fill */
.navbar {
  position: sticky;
  top: 0;
  background: 
    linear-gradient(
      to right, 
      var(--bg-solid-grey) 0%, 
      var(--bg-solid-grey) var(--scroll-progress), 
      rgba(255, 255, 255, 0.05) var(--scroll-progress), 
      rgba(255, 255, 255, 0.05) 100%
    ) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  will-change: background;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.header-phone {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
}

.header-phone:hover {
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
  transform-origin: center;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  transform: scale(1.1);
  text-shadow: 0 0 12px rgba(248, 250, 252, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* External Link Icon in Navbar */
.nav-external-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Mobile-Only Floating External Buttons — Hidden on Desktop Viewports */
.mobile-only-floating {
  display: none !important;
}

/* Hero Section */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-img-wrapper {
  width: 100%;
}

.hero-photo {
  width: 100%;
  max-height: 1040px;
  object-fit: contain;
  display: block;
}

.hero-title {
  font-size: 8.25rem;
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

/* Interactive Cards Layouts */
.card {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card-full {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  min-height: 420px;
}

.card-education {
  margin-top: 1rem;
}

.card-title-rose {
  color: var(--accent-rose);
}

.card-stacked {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  min-height: 680px;
}

.card-visual-top {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem 0;
  overflow: hidden;
}

.card-corner-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 28px;
  height: 28px;
  z-index: 3;
  object-fit: contain;
  transition: var(--transition);
}

.card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: var(--transition);
}

.card-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card-mockup-img {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  transition: var(--transition);
}

.card-visual-top .card-mockup-img {
  max-width: 100%;
  max-height: 100%;
  transform: scale(1.15);
}

/* Liquid Glass Holders */
.card-glass-holder {
  position: relative;
  z-index: 2;
  margin: 1.5rem 1.5rem 1.5rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: calc(var(--radius) - 4px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  transition: var(--transition);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card-stacked .card-glass-holder {
  margin: 0.75rem 1.25rem 1.25rem;
}

.card-glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tag-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.card-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-rose);
  text-transform: lowercase;
}

.tag-diamond {
  width: 10px;
  height: 10px;
  opacity: 0.8;
  display: inline-block;
}

.card-year {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
}

.card-desc {
  color: #F8FAFC;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Card Hover Animations */
.card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.card:hover .card-bg-img {
  transform: scale(1.03);
}

.card:hover .card-mockup-img {
  transform: scale(1.04) translateY(-4px);
}

.card-stacked:hover .card-visual-top .card-mockup-img {
  transform: scale(1.2) translateY(-4px);
}

.card:hover .card-corner-icon {
  transform: translateY(-2px) scale(1.1);
}

.card:hover .card-glass-holder {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
}

/* Earlier Work Grid */
.cards-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* Contacts Section */
.contact-section-clean {
  padding: 5rem 1.5rem;
}

.contact-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition);
}

.contact-item:hover {
  color: var(--accent-rose);
  transform: translateX(4px);
}

.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: var(--transition);
}

/* CV Stacked Card in Contacts Section */
.card-cv {
  min-height: 520px;
}

.card-glass-holder-cv {
  align-items: center;
  justify-content: center;
  margin: 0.75rem 1.25rem 1.25rem;
  padding: 1.5rem;
  flex-grow: 0;
}

.cv-title-centered {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 0;
}

/* Modal Popup Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: rgba(26, 28, 33, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 2.25rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.modal-box p {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-modal-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
}

.btn-modal-cancel:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-modal-confirm {
  background: var(--text-primary);
  color: #000;
  padding: 0.75rem 1.5rem;
}

.btn-modal-confirm:hover {
  background: #ffffff;
  color: #000;
}

/* Case Study Pages & Back Button Fixes */
.case-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-outline-back {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-outline-back span {
  white-space: nowrap;
}

.btn-outline-back:hover {
  border-color: var(--border-hover);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent-rose);
  transform: translateX(-2px);
}

.back-arrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

.case-gallery-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-item {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gallery-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Case Studies Common Layouts (Sierra & FleetPro)
   ========================================================================== */

.case-detail-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.case-hero-img-wrapper {
  width: 100%;
}

.case-hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-title {
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.case-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-rose);
  margin-bottom: 2rem;
}

.role-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* Tools I used Icon Row */
.case-tools-block {
  margin-top: 1.75rem;
}

.tools-icon-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tool-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tool-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

.case-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.case-lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-primary);
  width: 100%;
}

/* Elevated Dark Section Wrappers */
.section-elevated-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--bg-elevated);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(65, 68, 77, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(50, 53, 61, 0.35) 0%, transparent 45%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 0,
      transparent 20px
    );
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Two Independent Glass Cards */
.comparison-split-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
}

.comparison-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 100%;
}

.comparison-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--accent-rose);
}

/* Vertical Screenshots Stack for Sierra Page */
.screenshots-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  margin-top: 1rem;
}

.screenshot-item-full {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
}

.screenshot-item-full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Center External Action Button below Section */
.case-action-center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-section-external {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   FleetPro Specific Layouts
   ========================================================================== */

/* UI-Kit Vertical Restructured Layout */
.uikit-vertical-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.uikit-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uikit-group h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.uikit-stacked-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.uikit-stacked-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* New Pages Overlapping Layout (4 Horizontal Cards) */
.new-pages-overlap-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
  position: relative;
}

.new-page-card {
  flex: 0 0 32%;
  margin-right: -8%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
}

.new-page-card:last-child {
  margin-right: 0;
}

.new-page-card img {
  width: 100%;
  height: auto;
  display: block;
}

.page-1 { z-index: 1; }
.page-2 { z-index: 2; }
.page-3 { z-index: 3; }
.page-4 { z-index: 4; }

.new-page-card:hover {
  z-index: 10;
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Outcome Section Two Separate Columns */
.outcome-columns-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
  margin-top: 1rem;
}

.outcome-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.outcome-card-clean {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.outcome-card-clean img {
  width: 100%;
  height: auto;
  display: block;
}

.outcome-card-clean:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Diagram Carousel Section
   -------------------------------------------------------------------------- */
.diagram-carousel-section {
  width: 100%;
  padding: 3rem 0 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.carousel-text-header {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carousel-stage {
  position: relative;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-viewport {
  width: 100%;
  overflow: visible;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Base Slide Styling */
.carousel-slide {
  flex: 0 0 1200px;
  max-width: calc(100vw - 3rem);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  opacity: 0.35;
  transform: scale(0.85);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Dark Shadow Overlay */
.slide-shadow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 10, 12, 0.7);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* ACTIVE CENTER SLIDE */
.carousel-slide.active-center {
  opacity: 1;
  transform: scale(1) !important;
  z-index: 10;
  cursor: default;
}

.carousel-slide.active-center .slide-shadow-overlay {
  opacity: 0 !important;
}

/* ADJACENT LEFT & RIGHT SLIDES */
.carousel-slide.active-side {
  opacity: 0.5;
  transform: scale(0.85);
  z-index: 5;
}

.carousel-slide.active-side .slide-shadow-overlay {
  opacity: 0.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--accent-rose);
}

.prev-btn { left: 2.5rem; }
.next-btn { right: 2.5rem; }

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.footer-text {
  color: var(--accent-rose);
  margin-bottom: 0;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 6rem;
  }
  .case-title {
    font-size: 3.5rem;
  }
  .carousel-slide {
    flex: 0 0 calc(100vw - 4rem);
  }
}

@media (max-width: 992px) {
  h2 {
    font-size: 2.5rem;
  }
  .section-hero {
    padding-bottom: 3rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 4.5rem;
  }
  .hero-photo {
    max-height: 600px;
  }
  .card-full {
    grid-template-columns: 1fr;
  }
  .cards-grid-two, .contact-grid-two, .case-hero-grid, .comparison-split-wrapper, .outcome-columns-wrapper {
    grid-template-columns: 1fr;
  }
  .new-pages-overlap-container {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .new-page-card {
    flex: 0 0 45%;
    margin-right: 0;
  }
  .card-glass-holder {
    margin: 1rem;
  }
  .logo-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* MOBILE-ONLY BREAKPOINT (768px and below) */
@media (max-width: 768px) {
  .section, .section-hero, .section-no-frame, .contact-section-clean {
    padding: 2.5rem 1.25rem;
  }

  /* Hide desktop buttons on mobile */
  .hide-on-mobile {
    display: none !important;
  }

  /* Mobile dual floating action buttons stack */
  .mobile-floating-stack {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 999;
  }

  .mobile-only-floating {
    display: inline-flex !important;
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 999;
  }

  .btn-floating-external {
    display: inline-flex !important;
    background: rgba(26, 28, 33, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.6rem 1.1rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  }

  .external-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .btn-back-nav .btn-text {
    display: none;
  }

  .btn-back-nav {
    padding: 0.5rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .cards-grid, .cards-grid-two, .contact-grid-two {
    gap: 1.5rem;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-header-mobile {
    display: block;
    order: 1;
  }

  .hero-img-wrapper {
    order: 2;
  }

  .hero-text {
    order: 3;
  }

  .hero-header-desktop {
    display: none;
  }

  .hero-title {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-header-mobile .hero-lead {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .custom-list li {
    text-align: left;
  }

  .card-stacked {
    min-height: auto;
  }

  .card-visual-top {
    height: 260px;
  }

  .case-nav-right {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .contact-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 1.25rem;
  }

  .contact-item {
    justify-content: flex-start;
    width: 100%;
    font-size: 1.1rem;
  }

  .contact-icon {
    width: 22px;
    height: 22px;
  }

  .case-gallery-container {
    padding: 1.5rem 1rem 3rem;
    gap: 1.25rem;
  }

  .prev-btn { left: 0.5rem; width: 44px; height: 44px; font-size: 1.6rem; }
  .next-btn { right: 0.5rem; width: 44px; height: 44px; font-size: 1.6rem; }

  .carousel-slide {
    flex: 0 0 calc(100vw - 2.5rem);
  }

  .nav-toggle { 
    display: flex; 
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 1.5rem;
    display: none;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active { 
    display: flex; 
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 2rem;
  }
  .case-title {
    font-size: 2.25rem;
  }
  .new-page-card {
    flex: 0 0 100%;
  }
}
