@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #fafafc;
  --bg-card-dark: #121214;
  
  --text-primary: #0f0f11;
  --text-secondary: #565660;
  --text-muted: #8e8e9c;
  --text-light: #ffffff;

  --accent-primary: #000000;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  
  --border-light: #e2e2e6;
  --border-card: rgba(0, 0, 0, 0.06);
  --border-dark: #27272a;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.06);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.text-gradient {
  background: linear-gradient(135deg, #000000 30%, #565660 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

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

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

/* Comparison Table */
.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.comparison-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

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

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

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #27272a;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.btn-text {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
}

.btn-text:hover svg {
  transform: translateX(3px);
}

.btn-text svg {
  transition: var(--transition-fast);
}

.header {
  position: fixed;
  top: 1.8rem;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: 70px;
}

.header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.logo span {
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

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

.nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* --- Dropdown Menus --- */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-caret {
  transition: var(--transition-fast);
}

.nav-item-dropdown:hover .dropdown-caret {
  transform: translateY(1px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0.8rem;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 100;
}

.dropdown-menu.double-column {
  min-width: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.dropdown-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.dropdown-menu a::after {
  display: none !important; /* Disable nav-link underline effect in dropdowns */
}

.dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}

/* Hover active states */
.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

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

/* Video Backdrop */
.hero-video-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 24px;
  overflow: hidden;
  z-index: 1;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 245, 247, 0.7); /* Custom opacity overlay */
  backdrop-filter: blur(4px);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
}

.hero-content .badge {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Rotating Circular Text Badge */
.rotating-badge-container {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.rotating-badge {
  width: 130px;
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.rotating-badge svg {
  width: 100%;
  height: 100%;
  animation: rotateText 25s linear infinite;
}

.rotating-badge text {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: var(--text-primary);
  text-transform: uppercase;
}

.rotating-badge-center {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.rotating-badge-center svg {
  width: 20px;
  height: 20px;
  animation: none;
}

@keyframes rotateText {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Statistics Bar --- */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1.5rem;
}

.stats-grid h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.stats-grid p {
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stats-item {
  position: relative;
}

.stats-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--border-light);
}

.stats-num {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* --- About CLOUD VAULT --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-left h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 450px;
}

.about-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.about-right p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* --- Services Grid Section (Visual Showcase) --- */
.services-showcase {
  background: var(--bg-tertiary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

/* Large Left Card */
.service-card-large {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  min-height: 480px;
}

.service-card-large:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,0.15);
}

.service-card-large .card-content {
  max-width: 480px;
  z-index: 2;
}

.service-card-large h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.service-card-large p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.service-graphic-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 60%;
  opacity: 0.15;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.service-card-large:hover .service-graphic-wrapper {
  opacity: 0.25;
  transform: scale(1.05) translateY(-5px);
}

/* Right Column Stacked Cards */
.services-stacked {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-card-stacked {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  min-height: 228px;
}

.service-card-stacked:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card-stacked.dark-card {
  background: var(--bg-card-dark);
  color: var(--text-light);
  border: none;
}

.service-card-stacked.dark-card h3,
.service-card-stacked.dark-card p {
  color: var(--text-light);
}

.service-card-stacked.dark-card p {
  opacity: 0.7;
}

.stacked-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stacked-card-top h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--text-primary);
  flex-shrink: 0;
}

.dark-card .card-arrow-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light);
}

.service-card-stacked:hover .card-arrow-btn {
  background: var(--accent-primary);
  color: var(--text-light);
  transform: rotate(45deg);
}

.dark-card:hover .card-arrow-btn {
  background: white;
  color: var(--text-primary);
}

/* --- Advantages Structured Table --- */
.table-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.table-section-header .text-left {
  max-width: 500px;
}

.table-section-header p {
  margin-top: 1rem;
}

.adv-table {
  width: 100%;
  border-collapse: collapse;
}

.adv-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr 0.3fr;
  align-items: center;
  padding: 2.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.adv-row.header-row {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.adv-row:not(.header-row):hover {
  background-color: var(--bg-secondary);
  transform: scale(1.005);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
}

.adv-col-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.adv-col-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-right: 1.5rem;
}

.adv-col-meta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.adv-row .card-arrow-btn {
  opacity: 0;
  transform: translateX(-10px);
}

.adv-row:hover .card-arrow-btn {
  opacity: 1;
  transform: translateX(0);
}

/* --- YouTube Video Modal --- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-content {
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-modal-close:hover {
  opacity: 0.8;
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Risk Free Guarantee Banner --- */
.risk-free-banner {
  background: var(--bg-card-dark);
  color: var(--text-light);
  border-radius: 32px;
  padding: 5rem;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.risk-free-content {
  max-width: 600px;
  z-index: 2;
}

.risk-free-content h2 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.risk-free-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.risk-free-actions {
  z-index: 2;
}

.risk-free-actions .btn-primary {
  background: white;
  color: var(--text-primary);
}

.risk-free-actions .btn-primary:hover {
  background: #f4f4f5;
  box-shadow: 0 10px 25px rgba(255,255,255,0.15);
}

.risk-free-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(99,102,241,0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 6rem 0 3rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-column h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.footer-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-subscribe p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 0.3rem;
  border-radius: 100px;
}

.subscribe-form input {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  outline: none;
  font-size: 0.9rem;
  flex-grow: 1;
}

.subscribe-form .btn-primary {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* --- Services Page Rate Calculator --- */
.calc-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 4rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-group-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.calc-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
}

.calc-pill {
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-tertiary);
  transition: var(--transition-fast);
}

.calc-pill:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

.calc-pill.active {
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-color: var(--text-primary);
}

.range-slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-value {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: var(--border-light);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-summary-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-row span:last-child {
  font-weight: 700;
}

.summary-row.total-row {
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.summary-row.total-row span:last-child {
  font-size: 1.5rem;
}

/* --- Vetting Timeline Flow --- */
.timeline-flow {
  position: relative;
  margin-top: 4rem;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 20px;
  bottom: 50px;
  width: 2px;
  background-color: var(--border-light);
  z-index: 1;
}

.timeline-step {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.timeline-step.active .timeline-number {
  background: var(--text-primary);
  color: white;
}

.timeline-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* --- Contact & Calendar Scheduler --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-card-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-group {
  margin-bottom: 1.5rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  background: var(--bg-tertiary);
  transition: var(--transition-fast);
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Interactive Calendar Scheduler */
.scheduler-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.scheduler-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.scheduler-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.month-nav-btn {
  background: none;
  border: 1px solid var(--border-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.month-nav-btn:hover {
  background: var(--bg-primary);
  border-color: var(--text-primary);
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day:not(.empty):hover {
  background: var(--bg-primary);
}

.calendar-day.active {
  background: var(--text-primary);
  color: white;
}

.calendar-day.disabled {
  color: var(--text-muted);
  opacity: 0.3;
  pointer-events: none;
}

.time-slots {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.time-slot {
  border: 1px solid var(--border-light);
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.time-slot:hover {
  border-color: var(--text-primary);
}

.time-slot.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

/* FAQ Accordion */
.faq-container {
  margin-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-trigger svg {
  transition: var(--transition-smooth);
}

.faq-item.active .faq-trigger svg {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active .faq-content {
  max-height: 200px;
  margin-top: 1rem;
}

.faq-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Services 2x2 Grid --- */
.services-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

/* --- Case Studies Grid --- */
.cases-section {
  background: var(--bg-secondary);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.case-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  min-height: 320px;
  box-shadow: var(--shadow-sm);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.15);
}

.case-card-header {
  margin-bottom: 1.5rem;
}

.case-card .badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.case-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.case-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.case-card-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
}

.case-client-name {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* --- Global Locations Grid --- */
.locations-section {
  background: var(--bg-tertiary);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.location-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.12);
}

.location-flag {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.location-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.location-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .hero-details {
    grid-template-columns: 1fr 1fr;
  }
  
  .rotating-badge-container {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card-large {
    min-height: 380px;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .grid-2, .about-split, .calc-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stats-item::after {
    display: none;
  }
  
  .adv-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
  }
  
  .adv-row.header-row {
    display: none;
  }
  
  .adv-col-desc {
    padding-right: 0;
  }
  
  .adv-row .card-arrow-btn {
    display: none;
  }
  
  .risk-free-banner {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    text-align: center;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 3rem 2rem;
    overflow-y: auto;
    z-index: 9999;
    text-align: center;
    gap: 1.5rem;
  }
  
  .nav-links.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 700;
  }

  .nav-actions {
    position: relative;
    z-index: 10000;
  }
  
  .menu-btn {
    display: block;
    position: relative;
    z-index: 10001;
  }

  /* Mobile Dropdowns */
  .nav-item-dropdown {
    width: 100%;
    text-align: center;
  }
  
  .dropdown-trigger {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    gap: 0.5rem;
  }
  
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: unset;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .dropdown-menu.double-column {
    grid-template-columns: 1fr;
    min-width: unset;
    display: flex;
    flex-direction: column;
  }
  
  .dropdown-menu a {
    padding: 0.4rem 0;
    font-size: 1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* --- About Us Page Components --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.value-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.12);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Offices Grid */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.office-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.office-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.15);
}

.office-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.office-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.office-title h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.office-title span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.office-address {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.office-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-primary);
}

/* Jobs / Careers Cards */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.job-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.15);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .values-grid, .offices-grid, .jobs-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Insights & Blog Page Components --- */
.filter-pills-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 3.5rem 0;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

/* Featured Blog Hero Spotlight */
.featured-blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  transition: var(--transition-smooth);
}

.featured-blog-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.12);
}

.blog-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.blog-tag.video {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.blog-tag.ai {
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-purple);
}

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

.blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.15);
}

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

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.8rem 0;
  line-height: 1.35;
  color: var(--text-primary);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Video Card Embed Player */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.video-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-embed-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-embed-container iframe,
.video-embed-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .featured-blog-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem;
  }
  .blog-grid, .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid, .video-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Success Stories Custom Styles --- */
.case-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.case-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.case-modal-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-modal.active .case-modal-content {
  transform: scale(1) translateY(0);
}

.case-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-tertiary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.case-modal-close:hover {
  background: var(--border-light);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.case-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.case-tag {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--bg-tertiary);
  border-radius: 16px;
}

.case-detail-stat h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.1rem;
}

.case-detail-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.case-body-section {
  margin-bottom: 1.5rem;
}

.case-body-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.case-body-section p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.case-card-extended {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.case-card-extended:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 35px -10px rgba(14, 165, 233, 0.12);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.case-card-flag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

/* Case Detail Modal Responsive */
@media (max-width: 640px) {
  .case-modal {
    padding: 1rem;
  }

  .case-modal-content {
    padding: 1.5rem;
    border-radius: 20px;
    max-height: 88vh;
  }

  .case-detail-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.75rem;
  }

  .case-modal-close {
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
  }
}



