/* ============================================================================
   MGR Ventures — ❄ FROZEN KINGDOM THEME ❄
   Inspired by eternal winter, ice palaces, and northern lights
   Fonts: Cinzel Decorative (display), Cinzel (headings), Nunito (body)
   Palette: Deep fjord navy, glacial blue, frost white, aurora teal/violet
   ============================================================================ */

/* CSS Custom Properties */
:root {
  /* Core Palette — Frozen */
  --ice-deep: #0b1628;
  --ice-navy: #122040;
  --ice-mid: #1a3058;
  --ice-blue: #5bc0eb;
  --ice-glow: #88d8f7;
  --ice-frost: #c8e1ff;
  --ice-white: #eaf4ff;
  --aurora-teal: #48cfad;
  --aurora-violet: #a78bfa;
  --snow-white: #f0f6ff;
  --crystal-pink: #d4a0d9;

  /* Semantic Colors */
  --primary-dark: var(--ice-deep);
  --primary-navy: var(--ice-navy);
  --secondary-dark: var(--ice-mid);
  --accent-cyan: var(--ice-blue);
  --accent-blue: var(--aurora-teal);
  --accent-purple: var(--aurora-violet);

  /* Grays — tinted icy */
  --gray-50: #f0f5fc;
  --gray-100: #e4ecf7;
  --gray-200: #cdd8ea;
  --gray-300: #b0bed6;
  --gray-400: #8a9bba;
  --gray-500: #6b7fa3;
  --gray-600: #506488;
  --gray-700: #3a4d6e;
  --gray-800: #243450;
  --gray-900: #111d33;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #c2d6ef;
  --text-muted: #8a9bba;
  --bg-primary: #f0f5fc;
  --bg-secondary: #e4ecf7;

  /* Typography */
  --font-display: "Cinzel Decorative", "Cinzel", serif;
  --font-heading: "Cinzel", serif;
  --font-primary: "Nunito", sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Spacing */
  --section-padding: 120px;
  --container-padding: 24px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows — icy glow */
  --shadow-sm: 0 1px 3px rgba(11, 22, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 22, 40, 0.12);
  --shadow-lg: 0 10px 30px rgba(11, 22, 40, 0.15);
  --shadow-xl: 0 20px 40px rgba(11, 22, 40, 0.18);
  --shadow-glow: 0 0 30px rgba(91, 192, 235, 0.35);
  --shadow-frost: 0 0 20px rgba(136, 216, 247, 0.2), inset 0 0 30px rgba(255,255,255,0.05);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   Base Styles
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Prevent horizontal overflow without creating weird scroll containers */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background: var(--ice-blue);
  color: var(--ice-deep);
}

/* CSS Snowfall Overlay — GPU-composited, no JS */
.snowfall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  background:
    url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AgMAAAC2uDcZAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURQAAAP///////////zjAO6gAAAAEdFJOUwAuxHKQ3Q8qAAADW0lEQVR42u3dP26jQByGYUbaEe0Wi+jgKj5CirjFp9gGKXAfkOUmW+YOW2QvgdtN45XlHMAgB2aYz955nzrJp2AYM39/SYJrmTLcbDfK9MtvYbod3oXp6fCqTO8iTpdeeaNNP/1VprfKJy7ZPinTLV91AAAAAAAAAAD4kkkH/XfKCQ/TSCd7Tm/K9GHv9+89KdOzrTK9PM/68dpverXfzPnxxu9d1/Sz0ncfXtPreenZszLd+G1pq17Zchfz/nfPyoMyPT0r0802AQDMYZWt9uS7R5jWfOK9y7wEuSYT75z2EuQNph5/QU67IItrJ14S0+5dmv4aQfpBmT7RLUuHIGMO+XiXNNCCcjve1pk2TI9lIkW6lB8AAACITcxTza12qvmXMt3zdCvpX//clelJ/SZ93j+U6bl0J6+VtrQAAAAAAADwxz4r03PpGNtOOr7YLN2D8MNHer1w/4WfA00Xp3tZ8bk03R59DMo2C9PTzscUUHFYmu5j1WN+VqbbhWul/aSbhS2t5UBTFfGBppsEAAAA+Mp7qzJcW/Ik0J7QqZ7ioCy4EmhP6Kq9ZNKX3HXaEQLtwmjlEyfeE/qNrzoAc1+SmPQTaaQHj9U96RqVNF172F4uPe7OSlsbI21pAQAAAPyPjHSlWibt5WgPami0R2QwnhRleqMtn7BXpudn5ROnHTtPOJgFAIA7c58VQgL1wpT7xHxXpZvZ+a73MadH3Adc83+/OaRTrXnP39wrW6456nJzycCqvbCb1QFXHW0rxEtF3NbTun0whWNNJbfKiq7pblUlXa+8232TH9zuabdrZx2XCLmlu1bEdLxvvkvTXVvqXrrj5aJsK81P6fs+S8sAAAAAAAAAAAAAPJKYS3430pP3B0p+R5lOyW8VSn4DAAAAANbt80t3EljpLoqAO0hGLnPA3TMjGzoD7hwa2dAZMH1kY17A9KK/GlrJA6ZfR6XSdHtRpps22DhXOfJwh6sXkx6VA3pWeua7kRZAw0OSlnIK2CyNpf9TTj1oC5xri6dZ8TRrxOknadG8Vnpc0k7a48uULS0AAHhQDFiL5L2yn6o96irm9LzTFraXph/d0t1Oi3QdGcr+OP2646hYKa3VUEmrozRRV0eRfk/EXG1Xes8z7wMAAHAHPgHhchfsTyUPMgAAAABJRU5ErkJggg==) center center repeat,
    url(data:image/png;base64,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) center center repeat;
  background-size: 450px auto;
  -webkit-animation: snowing 20s linear infinite;
          animation: snowing 20s linear infinite;
  will-change: background-position;
}

@-webkit-keyframes snowing {
  from { background-position-y: 0px, 0px; }
    to { background-position-y: 900px, 450px; }
}

@keyframes snowing {
  from { background-position-y: 0px, 0px; }
    to { background-position-y: 900px, 450px; }
}

a {
  text-decoration: none !important;
}

/* ============================================================================
   Navigation
   ============================================================================ */

.navbar {
  padding: 1.5rem 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(11, 22, 40, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(91, 192, 235, 0.15);
  box-shadow: 0 4px 30px rgba(11, 22, 40, 0.3);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-logo {
  background: linear-gradient(135deg, #ffffff 0%, var(--ice-glow) 50%, var(--aurora-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  position: relative;
  transition: color var(--transition-fast);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--ice-blue), var(--aurora-teal));
  transition: transform var(--transition-base);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover {
  color: var(--ice-glow);
}

.navbar-nav .nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
  color: var(--ice-glow);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(11, 22, 40, 0.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(91, 192, 235, 0.15);
  }
}

/* Navbar always visible fix */
.navbar {
  background: rgba(11, 22, 40, 0.92) !important;
  backdrop-filter: blur(20px) saturate(1.4);
}

.navbar.scrolled {
  background: rgba(11, 22, 40, 0.97) !important;
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(72, 207, 173, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
    linear-gradient(
      170deg,
      var(--ice-deep) 0%,
      var(--ice-navy) 35%,
      var(--ice-mid) 70%,
      #1a3a6a 100%
    );
  overflow: hidden;
}

/* ------------------------------------------------------------
   FIX: Mobile fixed-navbar overlap
   The navbar is fixed-top, so the first visible element
   must be offset by the navbar height on small screens.
   ------------------------------------------------------------ */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 110px;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-logo {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(91, 192, 235, 0.25));
}

/* Frost crystal grid overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(91, 192, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 192, 235, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

/* Aurora gradient orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: linear-gradient(135deg, var(--ice-blue), var(--ice-glow));
  top: -15%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, var(--aurora-teal), var(--ice-blue));
  bottom: -15%;
  left: -10%;
  animation-delay: 7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--aurora-violet), var(--crystal-pink));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

/* Frosted badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(91, 192, 235, 0.1);
  border: 1px solid rgba(91, 192, 235, 0.3);
  border-radius: 50px;
  color: var(--ice-glow);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--ice-glow) 0%, var(--ice-blue) 40%, var(--aurora-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: var(--font-weight-regular);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Frozen glow button */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--ice-blue), var(--aurora-teal));
  color: var(--ice-deep);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 0 30px rgba(91, 192, 235, 0.35), 0 0 60px rgba(72, 207, 173, 0.15);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(91, 192, 235, 0.5), 0 0 80px rgba(72, 207, 173, 0.2);
  color: var(--ice-deep);
}

.btn-primary-glow:hover::before {
  left: 100%;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  border: 2px solid rgba(200, 225, 255, 0.35);
  border-radius: var(--radius-md);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline-white:hover {
  background: rgba(91, 192, 235, 0.1);
  border-color: var(--ice-blue);
  color: var(--ice-glow);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(91, 192, 235, 0.2);
}

.hero-trust-line {
  margin-top: 3rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
}

.trust-item i {
  color: var(--ice-blue);
  font-size: 1.25rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-placeholder {
  position: relative;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(91, 192, 235, 0.3);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: all var(--transition-base);
}

.hero-logo-placeholder:hover {
  border-color: var(--ice-blue);
  background: rgba(255, 255, 255, 0.05);
}

.hero-logo-placeholder .logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: var(--ice-blue);
  filter: blur(80px);
  opacity: 0.15;
  transition: opacity var(--transition-base);
}

.hero-logo-placeholder:hover .logo-glow {
  opacity: 0.25;
}

.hero-logo-placeholder i {
  font-size: 5rem;
  color: var(--ice-blue);
  opacity: 0.5;
}

.hero-logo-placeholder span {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  opacity: 0.7;
}

.hero-logo-placeholder img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.hero-logo-placeholder.has-image {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-logo-placeholder.has-image i,
.hero-logo-placeholder.has-image span {
  display: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(200, 225, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--ice-blue);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================================================================
   Section Common Styles
   ============================================================================ */

section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  margin-bottom: 5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 192, 235, 0.08),
    rgba(72, 207, 173, 0.08)
  );
  border: 1px solid rgba(91, 192, 235, 0.2);
  border-radius: 50px;
  color: var(--ice-mid);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-label i {
  color: var(--ice-blue);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================================
   Services Section — Frosted glass cards
   ============================================================================ */

.services-section {
  background:
    radial-gradient(ellipse at 30% 100%, rgba(91, 192, 235, 0.04) 0%, transparent 50%),
    var(--bg-secondary);
}

.service-card {
  height: 100%;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 192, 235, 0.12);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Ice crystal top border on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ice-blue), var(--aurora-teal), var(--aurora-violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(91, 192, 235, 0.1);
  border-color: rgba(91, 192, 235, 0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ice-blue), var(--aurora-teal));
  border-radius: var(--radius-md);
  opacity: 0.1;
  transition: opacity var(--transition-base);
}

.service-card:hover .icon-bg {
  opacity: 0.2;
}

.service-icon-wrapper i {
  position: relative;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--ice-mid), var(--ice-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  padding: 0.35rem 0.8rem;
  background: rgba(91, 192, 235, 0.08);
  color: var(--ice-mid);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 50px;
  border: 1px solid rgba(91, 192, 235, 0.12);
}

/* ============================================================================
   Process Section
   ============================================================================ */

.process-section {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(167, 139, 250, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:not(:last-child) .timeline-connector {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 2rem);
  background: linear-gradient(180deg, var(--ice-blue), transparent);
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(91, 192, 235, 0.12);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
}

/* Frozen crystal number circles */
.timeline-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ice-blue), var(--aurora-teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ice-deep);
  box-shadow: var(--shadow-glow);
}

.timeline-item:nth-child(odd) .timeline-number {
  right: -40px;
}

.timeline-item:nth-child(even) .timeline-number {
  left: -40px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================================
   Case Studies Section
   ============================================================================ */

.case-studies-section {
  background:
    radial-gradient(ellipse at 80% 100%, rgba(91, 192, 235, 0.05) 0%, transparent 50%),
    var(--bg-secondary);
}

.case-study-card {
  height: 100%;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(91, 192, 235, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.case-study-card:not(.coming-soon):hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(91, 192, 235, 0.1);
}

.case-study-header {
  margin-bottom: 1.5rem;
}

.case-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(91, 192, 235, 0.1), rgba(72, 207, 173, 0.1));
  border: 1px solid rgba(91, 192, 235, 0.25);
  color: var(--ice-mid);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.case-study-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
}

.case-study-card p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(91, 192, 235, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(91, 192, 235, 0.08);
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ice-mid), var(--ice-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: var(--font-weight-semibold);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.tech-badge {
  padding: 0.35rem 0.75rem;
  background: rgba(91, 192, 235, 0.06);
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 50px;
  border: 1px solid rgba(91, 192, 235, 0.1);
}

/* Coming Soon Card */
.case-study-card.coming-soon {
  background: linear-gradient(
    135deg,
    rgba(91, 192, 235, 0.05),
    rgba(72, 207, 173, 0.05)
  );
  border: 2px dashed rgba(91, 192, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-content {
  text-align: center;
}

.coming-soon-content i {
  font-size: 4rem;
  color: var(--ice-blue);
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.coming-soon-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--ice-blue), var(--aurora-teal));
  color: var(--ice-deep);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-base);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--ice-deep);
}

/* ============================================================================
   About Section
   ============================================================================ */

.about-section {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.about-image {
  position: relative;
  height: 600px;
}

.image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ice-deep), var(--ice-navy), var(--ice-mid));
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(91, 192, 235, 0.15);
}

.image-placeholder i {
  font-size: 8rem;
  color: rgba(91, 192, 235, 0.2);
}

.image-decoration {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(91, 192, 235, 0.1);
}

.deco-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.deco-card i {
  font-size: 2rem;
  color: var(--ice-blue);
}

.deco-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-900);
}

.deco-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.about-content {
  padding-left: 3rem;
}

.about-content .section-label {
  margin-bottom: 1.5rem;
}

.about-content .section-title {
  margin-bottom: 2rem;
}

.about-content p {
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  background: rgba(91, 192, 235, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(91, 192, 235, 0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ice-mid), var(--ice-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: var(--font-weight-semibold);
}

/* Real photo styling */
.image-placeholder img.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: contrast(1.05) saturate(0.95) brightness(1.02);
  transition:
    transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 300ms;
}

.about-image:hover img.about-photo {
  transform: scale(1.04);
  filter: contrast(1.08) saturate(1.02) brightness(1.04);
}

/* ============================================================================
   Contact Section
   ============================================================================ */

.contact-section {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(72, 207, 173, 0.05) 0%, transparent 50%),
    var(--bg-secondary);
}

.contact-form-wrapper {
  padding: 3rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 192, 235, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary);
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
}

.form-control:focus {
  outline: none;
  border-color: var(--ice-blue);
  box-shadow: 0 0 0 4px rgba(91, 192, 235, 0.15);
  background: #fff;
}

.form-control.is-invalid {
  border-color: #e74c6f;
}

.invalid-feedback {
  display: none;
  color: #e74c6f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(91, 192, 235, 0.1);
  border-radius: var(--radius-md);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(91, 192, 235, 0.1), rgba(72, 207, 173, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  font-size: 1.5rem;
  color: var(--ice-blue);
}

.info-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.info-content a,
.info-content p {
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin: 0;
}

.info-content a:hover {
  color: var(--ice-blue);
}

/* Form Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.alert-success {
  background: rgba(72, 207, 173, 0.15);
  color: #0e5c45;
  border: 1px solid rgba(72, 207, 173, 0.3);
}

.alert-danger {
  background: rgba(231, 76, 111, 0.1);
  color: #8b1a3a;
  border: 1px solid rgba(231, 76, 111, 0.25);
}

/* ============================================================================
   Footer — Frozen fjord
   ============================================================================ */

.footer {
  padding: 3rem 0;
  background: var(--ice-deep);
  color: var(--text-primary);
  border-top: 1px solid rgba(91, 192, 235, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--ice-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-left p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: var(--font-weight-medium);
}

.footer-link:hover {
  color: var(--ice-glow);
}

/* ============================================================================
   Tech Stack Logos Section — Icy Badges
   ============================================================================ */

.tech-logos-section {
  padding: 80px 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(91, 192, 235, 0.06) 0%, transparent 60%),
    var(--ice-deep);
  overflow: hidden;
}

.tech-logos-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.tech-logos-wrapper .section-label {
  margin-bottom: 1rem;
  color: var(--ice-glow);
  border-color: rgba(91, 192, 235, 0.25);
  background: rgba(91, 192, 235, 0.08);
}

.tech-logos-wrapper h3 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.tech-category-row {
  margin-bottom: 2rem;
  text-align: center;
}

.tech-category-label {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--ice-glow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(91, 192, 235, 0.4);
}

.tech-stack-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Icy crystal badges */
.badge-large {
  background-color: rgba(91, 192, 235, 0.08);
  color: var(--ice-frost);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-primary);
  border: 1px solid rgba(91, 192, 235, 0.2);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  min-width: 80px;
  text-align: center;
}

.badge-large:hover {
  background-color: var(--ice-blue);
  color: var(--ice-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(91, 192, 235, 0.4);
}

/* Tech Icon Morph Effect */
.badge-large.tech-badge-morphable {
  min-width: 100px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-large .badge-text {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.badge-large .badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-large .badge-icon i {
  font-size: 1.5rem;
  color: var(--ice-deep);
}

.badge-large .badge-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.badge-large.tech-badge-morphable:hover .badge-text {
  opacity: 0;
  transform: scale(0.8);
}

.badge-large.tech-badge-morphable:hover .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.badge-large.tech-badge-morphable:focus {
  outline: 2px solid var(--ice-glow);
  outline-offset: 2px;
}

.badge-large.tech-badge-morphable:focus .badge-text {
  opacity: 0;
  transform: scale(0.8);
}

.badge-large.tech-badge-morphable:focus .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================================================
   Theme Switcher — Floating Snowflake Button
   ============================================================================ */

.theme-switcher-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  border: none;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ice-deep);
  background: linear-gradient(135deg, var(--ice-blue), var(--aurora-teal));
  box-shadow: 0 0 25px rgba(91, 192, 235, 0.35);
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.theme-switcher-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(91, 192, 235, 0.55);
}

/* ============================================================================
   Theme Panel
   ============================================================================ */

.theme-panel {
  background: rgba(11, 22, 40, 0.96);
  backdrop-filter: blur(25px);
}

.theme-panel .offcanvas-title {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.theme-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.theme-list a {
  color: white;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
}

.theme-list a:hover,
.theme-list a.active-theme {
  background: rgba(91, 192, 235, 0.15);
  border-color: var(--ice-blue);
  transform: translateX(6px);
}

.theme-list a.active-theme {
  color: var(--ice-glow);
}

/* ============================================================================
   Page Transition
   ============================================================================ */

.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 5000;
  background:
    radial-gradient(circle at 30% 20%, rgba(91, 192, 235, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(11, 22, 40, 0), rgba(11, 22, 40, 0.7));
  backdrop-filter: blur(0px);
  transition:
    opacity 0.35s ease,
    backdrop-filter 0.45s ease;
}

body.is-transitioning .page-transition {
  opacity: 1;
  backdrop-filter: blur(6px);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 1199px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .section-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 80px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-visual {
    height: 400px;
    margin-top: 3rem;
  }

  .hero-logo-placeholder {
    width: 300px;
    height: 300px;
  }

  .hero-logo-placeholder i {
    font-size: 4rem;
  }

  .hero-logo-placeholder span {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .timeline-item .timeline-number,
  .timeline-item:nth-child(even) .timeline-number {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    margin-bottom: 1.5rem;
  }

  .timeline-item:not(:last-child) .timeline-connector {
    display: none;
  }

  .about-content {
    padding-left: 0;
    margin-top: 3rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary-glow,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }

  .trust-logos {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-logo-placeholder {
    width: 250px;
    height: 250px;
  }

  .hero-logo-placeholder i {
    font-size: 3rem;
  }

  .hero-logo-placeholder span {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .case-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .tech-logos-section {
    padding: 60px 0;
  }

  .tech-category-row {
    margin-bottom: 1.5rem;
  }

  .badge-large {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 70px;
  }

  .badge-large.tech-badge-morphable {
    min-width: 85px;
    min-height: 38px;
  }

  .badge-large .badge-icon i {
    font-size: 1.25rem;
  }

  .badge-large .badge-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Reduce snowfall on mobile */
  .snowfall-overlay {
    opacity: 0.4;
  }
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.w-100 { width: 100%; }
.text-center { text-align: center; }
.d-none { display: none; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

/* ============================================================================
   Animation Fixes
   ============================================================================ */

.float-card {
  opacity: 1;
}

/* ============================================================================
   Accessibility + UI hooks parity
   ============================================================================ */

.visually-hidden-focusable {
  position: fixed;
  top: 12px;
  left: -9999px;
  background: var(--ice-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 3000;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: left 0.2s ease;
  box-shadow: 0 10px 30px rgba(11, 22, 40, 0.35);
}

.visually-hidden-focusable:focus,
.visually-hidden-focusable:focus-visible {
  left: 12px;
  outline: 2px solid var(--ice-blue);
  outline-offset: 2px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ice-blue), var(--aurora-teal));
  box-shadow: 0 0 18px rgba(91, 192, 235, 0.45);
  transform-origin: left;
  transition: width 0.08s linear;
}

.navbar-nav .nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================================================
   Hero CTA swap parity
   ============================================================================ */

.brand-cta {
  position: relative;
  overflow: hidden;
}

.btn-primary-glow .cta-texts {
  position: relative;
  display: inline-block;
}

.btn-primary-glow .cta-text {
  display: block;
  white-space: nowrap;
  transition:
    opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-glow .cta-default {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.btn-primary-glow .cta-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
}

.btn-primary-glow:hover .cta-default,
.btn-primary-glow:focus-visible .cta-default {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(3px);
}

.btn-primary-glow:hover .cta-hover,
.btn-primary-glow:focus-visible .cta-hover {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* ============================================================================
   Service links parity
   ============================================================================ */

.service-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

.service-card h3 a:hover {
  color: var(--ice-blue);
}

.service-learn-more {
  color: var(--ice-mid);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
  transition: color var(--transition-base);
}

.service-learn-more:hover {
  color: var(--ice-blue);
}

/* ============================================================================
   Partner routing block
   ============================================================================ */

.partner-section {
  padding: 72px 0;
  background: var(--bg-primary);
}

.partner-callout {
  position: relative;
  padding: 2.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(91, 192, 235, 0.18);
  background: linear-gradient(
    135deg,
    rgba(91, 192, 235, 0.08),
    rgba(72, 207, 173, 0.05)
  );
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.partner-callout > * {
  position: relative;
  z-index: 2;
}

.partner-callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--ice-blue), var(--aurora-teal));
}

.partner-callout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../../assets/images/SavorySuiteLogoNoBG.png");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: min(420px, 46%);
  opacity: 0.08;
  pointer-events: none;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 192, 235, 0.22);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ice-deep);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.partner-badge i {
  color: var(--ice-blue);
  font-size: 1.1rem;
}

.partner-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.partner-desc,
.partner-note {
  color: var(--gray-600);
}

.partner-desc a {
  color: var(--ice-mid);
}

.partner-desc a:hover {
  color: var(--ice-blue);
}

.partner-btn {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .partner-callout::after {
    background-position: center 1.25rem;
    background-size: min(340px, 70%);
    opacity: 0.06;
  }
}