/* =============================================
   RealBroks Modern SaaS Design System
   Inspired by BuildFormula layout & spacing
   ============================================= */

/* === CSS Variables === */
:root {
  /* Brand Colors */
  --brand-primary: #19a66c;
  --brand-primary-hover: #158a5a;
  --brand-gradient: linear-gradient(135deg, #0d4a35 0%, #127a52 50%, #19a66c 100%);
  --brand-gradient-dark: linear-gradient(135deg, #0b3b2a 0%, #0f5c42 50%, #158654 100%);
  --brand-on-gradient: #e8f5f0;
  
  /* Neutral Palette */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Semantic Colors */
  --text-primary: #104459;
  --text-secondary: var(--color-gray-600);
  --text-muted: var(--color-gray-500);
  --bg-main: var(--color-white);
  --bg-secondary: var(--color-gray-50);
  --border-color: var(--color-gray-200);
  
  /* Typography */
  --font-family: 'Poppins', 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Borders & Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Container */
  --container-max-width: 1200px;
  --section-spacing: 5rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 72px; /* Space for fixed navbar */
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  font-size: var(--font-size-base);
  overflow-x: hidden;
  width: 100%;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #104459;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

p {
  line-height: 1.7;
  color: var(--text-secondary);
}

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

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

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

.section {
  padding: var(--section-spacing) 0;
  scroll-margin-top: 90px;
}

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

.about-gradient {
  background: linear-gradient(135deg, #f0fdf8 0%, #e8f5f0 50%, #f0f9f7 100%);
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--brand-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--spacing-md);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

.navbar-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* Mobile Navbar Styles */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .navbar .container {
    padding: 0 var(--spacing-sm);
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
  }
  
  .navbar-brand {
    flex: 0 0 auto;
  }
  
  .navbar-brand img {
    height: 28px;
  }
  
  .navbar-nav {
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 auto;
  }
  
  .navbar-nav li {
    margin: 0;
  }
  
  .navbar-nav li a {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
  
  .navbar-nav li .lang-toggle-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .navbar-nav li .btn-primary {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 80px; /* Extra space for stacked navbar on very small screens */
  }

  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-sm);
    min-height: auto;
  }
  
  .navbar-brand {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }
  
  .navbar-nav {
    width: 100%;
    justify-content: space-between;
    gap: var(--spacing-xs);
  }
  
  .navbar-nav li {
    flex: 0 0 auto;
  }
  
  .navbar-nav li a {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
  }
  
  .navbar-nav li .lang-toggle-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav li .btn-primary {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
}

.navbar-nav a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.navbar-nav a:hover {
  color: var(--brand-on-gradient);
}

.navbar.scrolled .navbar-nav a {
  color: var(--text-primary);
}

.navbar.scrolled .navbar-nav a:hover {
  color: var(--brand-primary);
}

.navbar-nav .nav-dropdown {
  position: relative;
}

.navbar-nav .dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 240px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  padding: var(--spacing-xs);
}

.navbar-nav .nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--brand-primary);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--color-white);
}

.admin-login__icon {
  font-size: 0.8em;
  line-height: 1;
  margin-right: 0.4rem;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-base);
}

/* === Hero Section === */
.hero {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
}

.hero-brand {
  background: var(--brand-gradient);
  color: var(--brand-on-gradient);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 70px 0 85px;
}

.hero-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.16)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 76 L54 56 L78 76'/%3E%3Cpath d='M38 76 V104 H70 V76'/%3E%3Cpath d='M48 104 V92 H60 V104'/%3E%3Cpath d='M176 84 L196 66 L216 84'/%3E%3Cpath d='M182 84 V108 H210 V84'/%3E%3Cpath d='M190 108 V98 H202 V108'/%3E%3Cpath d='M150 140 L170 120 L190 140'/%3E%3Cpath d='M156 140 V168 H184 V140'/%3E%3Cpath d='M164 168 V156 H176 V168'/%3E%3Cpath d='M86 196 L104 182 L122 196'/%3E%3Cpath d='M90 196 V220 H118 V196'/%3E%3Cpath d='M96 220 V208 H112 V220'/%3E%3Cpath d='M118 216 C140 202 170 202 192 216'/%3E%3Ccircle cx='214' cy='148' r='5'/%3E%3Ccircle cx='136' cy='120' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  background-repeat: repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: heroPatternFloat 5s ease-in-out infinite;
}

.hero-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 90 L62 72 L84 90'/%3E%3Cpath d='M46 90 V114 H78 V90'/%3E%3Cpath d='M54 114 V102 H70 V114'/%3E%3Cpath d='M210 190 L232 172 L254 190'/%3E%3Cpath d='M216 190 V214 H248 V190'/%3E%3Cpath d='M224 214 V202 H240 V214'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 320px;
  background-repeat: repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  animation: heroPatternFloat 6s ease-in-out infinite reverse;
}

@keyframes heroPatternFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-asset-right {
  position: absolute;
  top: -28px;
  right: max(2rem, 1in);
  width: min(480px, 46vw);
  max-width: calc(50vw - 2rem);
  height: auto;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.25));
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease, filter 0.25s ease;
  will-change: transform, filter;
}

@media (max-width: 1024px) {
  .hero-asset-right {
    right: 1rem;
    width: min(400px, 45vw);
    max-width: calc(50vw - 1rem);
  }
}

@media (max-width: 768px) {
  .hero-asset-right {
    position: relative;
    top: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    display: block;
    transform: translate(0, 0) !important;
  }
  
  .hero-brand > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto !important;
    margin-bottom: 1rem !important;
    padding: 0 var(--spacing-md);
  }
  
  .hero-brand__content {
    margin-left: 0 !important;
    margin-top: 1rem !important;
    text-align: center;
    max-width: 100%;
    padding: 0;
    width: 100%;
  }
  
  .hero-brand__text {
    min-height: auto !important;
  }
  
  .hero-store-placeholders {
    justify-content: center !important;
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 1.5rem;
    gap: 12px !important;
  }
  
  .store-placeholder {
    width: 140px !important;
    height: 44px !important;
  }
  
  .hero-brand__content h1 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: var(--spacing-sm) !important;
  }
  
  .hero-brand__content p {
    font-size: clamp(0.85rem, 3vw, 0.95rem) !important;
    margin-top: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero-brand > div {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-asset-right {
    margin: 1rem auto;
  }
  
  .hero-brand__content {
    margin-top: 0.5rem !important;
  }
  
  .hero-store-placeholders {
    flex-direction: column;
    align-items: center;
    gap: 10px !important;
  }
  
  .store-placeholder {
    width: 160px !important;
    height: 48px !important;
  }
}

.hero-brand .container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: none;
  z-index: 1;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  width: 320px;
  height: 320px;
  opacity: 1;
  pointer-events: none;
}

.hero-wave--tl {
  top: -60px;
  left: -80px;
}

.hero-wave--br {
  bottom: -80px;
  right: -110px;
  transform: rotate(6deg);
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.hero-circle--lg {
  width: 220px;
  height: 220px;
  left: 8%;
  top: 12%;
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-circle--md {
  width: 150px;
  height: 150px;
  right: 14%;
  bottom: 18%;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-circle--sm {
  width: 90px;
  height: 90px;
  right: 18%;
  bottom: 24%;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-circle--white {
  width: 1500px;
  height: 1500px;
  right: -350px;
  top: 360px;
  background: #ffffff;
  border: none;
  opacity: 1;
}

/* Tilted diamond card over the circle */
.hero-card {
  position: absolute;
  width: 300px;
  height: 300px;
  right: 260px;
  top: 200px;
  background: transparent;
  padding: 0;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25), 
              0 8px 16px rgba(0, 0, 0, 0.15),
              inset 0 -3px 6px rgba(0, 0, 0, 0.05);
  display: none;
  place-items: center;
  z-index: 3;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  transform: rotate(-45deg);
}

.hero-card__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #104459;
  font-weight: 700;
  clip-path: polygon(
    50% 0%,
    100% 50%,
    50% 100%,
    0% 50%
  );
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  transform: rotate(45deg);
}

.hero-brand__content {
  position: relative;
  z-index: 2;
}

.hero-brand__content {
  text-align: left;
  max-width: 560px;
  margin: 0;
  margin-top: 2rem;
}

.hero-brand__text {
  min-height: clamp(170px, 22vw, 230px);
}

.hero-brand__content h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  margin: 0 0 var(--spacing-md);
  line-height: 1.15;
}

.hero-brand__content p {
  color: #d2ede1;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  margin: 1rem 0 0;
  line-height: 1.7;
}

.hero-brand__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-store-links {
  align-items: center;
   gap: -0.05rem;
}

.hero-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-store-link img {
  height: 100px;
  width: 300px;
  display: block;
  object-fit: contain;
}

.hero-store-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.hero-brand__actions .btn {
  padding: 0.65rem 1.45rem;
  font-size: 0.9rem;
}

.hero-brand__ghost {
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
}

.hero-brand__ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero-brand__solid {
  background: linear-gradient(90deg, #19a66c 0%, #158a5a 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(21, 138, 90, 0.35);
}

.hero-brand__solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(21, 138, 90, 0.4);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content h1 {
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
}

.hero-content p {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-xl);
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

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

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* === Feature Sections === */
.feature-section {
  padding: var(--section-spacing) 0;
}

.feature-section:nth-child(even) {
  background: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .feature-grid.reverse {
    direction: rtl;
  }
  
  .feature-grid.reverse > * {
    direction: ltr;
  }
}

.feature-content h2 {
  margin-bottom: var(--spacing-lg);
}

.feature-content h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.feature-content p {
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0 0 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feature-list li {
  padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-xl);
  position: relative;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.card:hover .feature-list li {
  color: var(--text-primary);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: bold;
  font-size: var(--font-size-base);
}

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

.feature-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--brand-primary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), transparent);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover::before {
  width: 100%;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(25, 166, 108, 0.12);
  transform: translateY(-6px);
  border-color: var(--brand-primary);
}

.card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(25, 166, 108, 0.15), rgba(25, 166, 108, 0.05));
  border: 2px solid rgba(25, 166, 108, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-2xl);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, rgba(25, 166, 108, 0.25), rgba(25, 166, 108, 0.1));
  border-color: var(--brand-primary);
  transform: scale(1.1) rotate(5deg);
}

/* === Stats Section === */
.stats-section {
  background: var(--brand-primary);
  color: var(--color-white);
  padding: var(--spacing-3xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  text-align: center;
}

.stat-item h3 {
  font-size: var(--font-size-4xl);
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, rgba(12, 74, 47, 0.6) 0%, rgba(20, 83, 45, 0.6) 100%),
    url('/static/images/front-view-man-working-as-real-estate-agent.jpg') center/cover no-repeat;
  color: var(--color-white);
  padding: var(--spacing-4xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.cta-section p {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: var(--brand-primary);
}

/* CTA Corner Support Actions */
.cta-corner-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.cta-action {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f1fff7 100%);
  border: 1px solid rgba(25, 166, 108, 0.25);
  box-shadow: 0 18px 35px rgba(15, 118, 85, 0.22), 0 6px 14px rgba(15, 23, 42, 0.08);
  color: #19a66c;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(10px);
}

.cta-action svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cta-action::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 118, 85, 0.2);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(15, 118, 85, 0.28), 0 8px 18px rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #eafff4 100%);
}

.cta-action:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.cta-action:focus-visible {
  outline: 3px solid rgba(25, 166, 108, 0.35);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .cta-corner-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .cta-action {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .cta-action svg {
    width: 20px;
    height: 20px;
  }

  .cta-action::after {
    display: none;
  }
  
  /* CTA Section Mobile Styles */
  #menu {
    padding: 30px 0 !important;
  }
  
  #menu .container > div {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
  }
  
  #menu .cta-reveal {
    padding: 24px !important;
    border-radius: 16px !important;
  }
  
  #menu .cta-reveal h2.cta-item {
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  #menu .cta-reveal h2.cta-item:last-of-type {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #menu .cta-reveal p.cta-item {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
  }
  
  #menu .cta-reveal .cta-item img[alt="App Store"],
  #menu .cta-reveal .cta-item img[alt="Play Store"] {
    height: 60px !important;
  }
  
  #menu .cta-reveal .cta-item span[data-lang="download-app"] {
    font-size: 0.85rem !important;
    width: 100%;
    display: block;
    margin-bottom: 0.75rem;
  }
  
  #menu .cta-reveal .cta-item > div[style*="display: flex"] {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  
  #menu #phoneImage.cta-phone {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) !important;
    max-width: 280px !important;
    margin: 0 auto;
  }
  
  /* Hide or reduce decorative elements on mobile */
  #menu svg[style*="position: absolute"] {
    opacity: 0.1 !important;
    width: 150px !important;
    height: 150px !important;
  }
  
  #menu div[style*="position: absolute"][style*="border:"] {
    width: 40px !important;
    height: 40px !important;
  }
  
  #menu div[style*="position: absolute"][style*="background: radial-gradient"] {
    width: 150px !important;
    height: 150px !important;
  }
}

@media (max-width: 480px) {
  #menu {
    padding: 24px 0 !important;
  }
  
  #menu .cta-reveal {
    padding: 20px !important;
    border-radius: 12px !important;
  }
  
  #menu .cta-reveal h2.cta-item {
    font-size: 1.25rem !important;
  }
  
  #menu .cta-reveal h2.cta-item:last-of-type {
    font-size: 1.15rem !important;
  }
  
  #menu .cta-reveal p.cta-item {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }
  
  #menu .cta-reveal .cta-item img[alt="App Store"],
  #menu .cta-reveal .cta-item img[alt="Play Store"] {
    height: 50px !important;
  }
  
  #menu .cta-reveal .cta-item span[data-lang="download-app"] {
    font-size: 0.8rem !important;
  }
  
  #menu #phoneImage.cta-phone {
    max-width: 240px !important;
  }
  
  /* Hide most decorative elements on very small screens */
  #menu svg[style*="position: absolute"],
  #menu div[style*="position: absolute"][style*="border:"],
  #menu div[style*="position: absolute"][style*="background: radial-gradient"] {
    display: none !important;
  }
}

/* AI Assistant Chat Widget */
.rb-chat {
  position: fixed;
  right: 22px;
  bottom: 210px;
  z-index: 1000;
  font-family: var(--font-family);
}

.rb-chat__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(25, 166, 108, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f1fff7 100%);
  color: #19a66c;
  font-weight: 700;
  box-shadow: 0 18px 35px rgba(15, 118, 85, 0.22), 0 6px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rb-chat__toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(15, 118, 85, 0.28), 0 8px 18px rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #eafff4 100%);
}

.rb-chat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.18s ease;
}

.rb-chat__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

@keyframes rbChatShrink {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}

.rb-chat--shrink .rb-chat__icon {
  animation: rbChatShrink 220ms ease;
}

.rb-chat__toggle:active .rb-chat__icon,
.rb-chat__toggle:focus-visible .rb-chat__icon {
  animation: rbChatShrink 180ms ease;
}

.rb-chat__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rb-chat--peek .rb-chat__toggle {
  width: 52px;
  border-radius: 16px;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.rb-chat--peek .rb-chat__text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rb-chat__status {
  display: none;
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px #ffffff;
}

.rb-chat__panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 300px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(15, 118, 85, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rb-chat__panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rb-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f766e 0%, #22c55e 100%);
  color: #ffffff;
}

.rb-chat__header span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
}

.rb-chat__close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

.rb-chat__body {
  padding: 16px;
  background: #f9fafb;
  max-height: 220px;
  overflow-y: auto;
}

.rb-chat__bubble {
  background: #ffffff;
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 8px 20px rgba(15, 118, 85, 0.12);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.rb-chat__bubble--user {
  margin-left: auto;
  background: #eafff4;
  color: #0f766e;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 22px rgba(15, 118, 85, 0.16);
}

.rb-chat__footer {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.rb-chat__footer input {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.rb-chat__footer button {
  border: none;
  background: #19a66c;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .rb-chat {
    right: 12px;
    bottom: 180px;
  }

  .rb-chat__panel {
    width: 260px;
  }
}

/* === Partners Section === */
.partners-section {
  padding: var(--spacing-xl) 0;
  background: url('/static/images/hand.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.partners-section > * {
  position: relative;
  z-index: 2;
}

.partners-section .section-header {
  text-align: left;
  margin-bottom: 0;
}

.partners-section .section-label {
  color: var(--brand-primary);
}

.partners-section .section-title {
  color: #ffffff;
}

.partners-section .section-description {
  color: #cccccc;
}

/* Marquee Carousel */
.marquee-section {
  position: relative;
  margin-bottom: var(--spacing-3xl);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) 0;
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  gap: var(--spacing-3xl);
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
  padding: 0 var(--spacing-2xl);
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  min-width: 140px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 500;
  flex-shrink: 0;
}

.marquee-logo:hover {
  color: var(--brand-primary);
  transform: scale(1.05);
  background: rgba(25, 166, 108, 0.05);
}

.marquee-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(25, 166, 108, 0.1), rgba(25, 166, 108, 0.05));
  border: 2px solid rgba(25, 166, 108, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.marquee-logo:hover .marquee-logo-img {
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, rgba(25, 166, 108, 0.2), rgba(25, 166, 108, 0.1));
  transform: scale(1.1);
}

.marquee-logo-inner {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(25, 166, 108, 0.1), rgba(25, 166, 108, 0.05));
  border: 2px solid rgba(25, 166, 108, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-3xl);
  transition: all 0.3s ease;
}

.marquee-logo:hover .marquee-logo-inner {
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, rgba(25, 166, 108, 0.2), rgba(25, 166, 108, 0.1));
}

.marquee-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--bg-main));
  pointer-events: none;
}

/* === 3D Flip Cards Section === */
.flip-cards-section {
  margin-bottom: var(--spacing-3xl);
}

.flip-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

.flip-card {
  height: 280px;
  cursor: pointer;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  box-shadow: 0 8px 24px rgba(25, 166, 108, 0.08);
  border: 1px solid var(--border-color);
}

.flip-card-front {
  background: var(--bg-main);
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: center;
}

.flip-card-back {
  background: linear-gradient(135deg, rgba(25, 166, 108, 0.05), rgba(25, 166, 108, 0.02));
  transform: rotateY(180deg);
}

.flip-card-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.flip-card-front h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.flip-card-back p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* Hover effect */
.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
  box-shadow: 0 16px 40px rgba(25, 166, 108, 0.12);
}

.flip-card:hover .flip-card-front {
  transform: scale(1.02);
}

/* Animation keyframes for sequential flip entrance */
@keyframes flipEnter {
  from {
    opacity: 0;
    transform: rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

.flip-card {
  animation: flipEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.flip-card.animate {
  animation: flipEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Stagger delays */
.flip-card:nth-child(1) { animation-delay: 0s; }
.flip-card:nth-child(2) { animation-delay: 0.15s; }
.flip-card:nth-child(3) { animation-delay: 0.3s; }
.flip-card:nth-child(4) { animation-delay: 0.45s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none;
  }
  
  .flip-card {
    animation: none !important;
    opacity: 1;
  }
  
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(0deg);
  }
  
  .flip-card-back {
    display: none;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .flip-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
  }
  
  .flip-card {
    height: 240px;
  }
  
  .flip-card-front,
  .flip-card-back {
    padding: var(--spacing-lg);
  }
  
  .flip-card-logo {
    width: 64px;
    height: 64px;
  }
  
  .flip-card-front h4 {
    font-size: var(--font-size-base);
  }
  
  .flip-card-back p {
    font-size: var(--font-size-xs);
  }
}

/* === Orbiting Logos Section === */
.orbiting-logos-wrapper {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

/* Partners Content Wrapper - Side by Side Layout */
.partners-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.partners-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partners-content .section-header {
  text-align: left;
  margin-bottom: 0;
}

.partners-content .section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-lg);
}

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

.orbit-container {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center Content */
.orbit-center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

.center-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  animation: centerPulse 3s ease-in-out infinite;
}

@keyframes centerPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.center-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Orbit Rings */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.outer-ring {
  animation: orbitOuter 30s linear infinite;
}

.outer-ring:hover,
.outer-ring:focus-within {
  animation-play-state: paused;
}

@keyframes orbitOuter {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Orbit Logo Positioning */
.orbit-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
}

/* Position logos on outer circle (radius ~180px) */
.outer-ring .orbit-logo {
  --radius: 130px;
  --angle: calc(var(--position) * 90deg);
  transform: 
    translate(-50%, -50%)
    rotateZ(var(--angle))
    translateX(var(--radius))
    rotateZ(calc(-1 * var(--angle)));
}

/* Logo Link Styling */
.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  width: 100%;
  height: 100%;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(25, 166, 108, 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(25, 166, 108, 0.04);
}

.outer-ring .logo-link {
  background: rgba(255, 255, 255, 0.9);
}

.logo-link:hover,
.logo-link:focus {
  transform: scale(1.15);
  box-shadow: 0 16px 40px rgba(25, 166, 108, 0.15);
  background: rgba(255, 255, 255, 1);
  border-color: var(--brand-primary);
}

.logo-link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
}

/* Category Badge */
.category-badge {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Technology Partner Styling */
.tech-partner .category-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-partner .logo-link:hover,
.tech-partner .logo-link:focus {
  border-color: #0066cc;
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.15);
}

/* Cloud Partner Styling */
.cloud-partner .category-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cloud-partner .logo-link:hover,
.cloud-partner .logo-link:focus {
  border-color: #2563eb;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
}

/* Payment Partner Styling */
.payment-partner .category-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-partner .logo-link:hover,
.payment-partner .logo-link:focus {
  border-color: #d97706;
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.15);
}

/* Logo Image */
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.outer-ring .logo-link:hover .logo-img {
  filter: drop-shadow(0 4px 12px rgba(25, 166, 108, 0.2));
}

/* Logo Label */
.logo-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
}

/* Inner ring logos (no label) */
.inner-ring .orbit-logo .logo-label {
  display: none;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .orbit-ring {
    animation: none !important;
  }
  
  .center-icon {
    animation: none;
  }
  
  .orbit-ring {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .partners-content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
  }

  .partners-content .section-header {
    text-align: center;
  }

  .partners-content .section-title {
    font-size: var(--font-size-3xl);
  }

  .orbiting-logos-wrapper {
    min-height: 350px;
  }
  
  .orbit-container {
    width: 320px;
    height: 320px;
  }
  
  .outer-ring .orbit-logo {
    --radius: 110px;
  }
  
  .orbit-logo {
    width: 80px;
    height: 80px;
  }
  
  .logo-img {
    width: 40px;
    height: 40px;
  }
  
  .center-text {
    font-size: var(--font-size-base);
  }
  
  .center-icon {
    font-size: 2.5rem;
  }
  
  .outer-ring .logo-link {
    padding: var(--spacing-sm);
  }
}

/* Trust Strip */
.trust-strip {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: rgba(25, 166, 108, 0.04);
  border: 1px solid rgba(25, 166, 108, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.trust-strip strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .partners-section {
    padding: var(--spacing-3xl) 0;
  }

  .marquee-logo {
    min-width: 120px;
  }

  .marquee-logo-inner {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-2xl);
  }

  .trust-strip {
    font-size: var(--font-size-xs);
    padding: var(--spacing-md);
  }
}

/* === Section Headers === */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-3xl);
}

.section-label {
  display: inline-block;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

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

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.text-brand {
  color: var(--brand-primary);
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* === Responsive Typography === */
@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  .hero-content p {
    font-size: var(--font-size-lg);
  }
  
  .section {
    padding: var(--spacing-3xl) 0;
  }
}

/* === Auth Pages === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: var(--spacing-xl);
}

.auth-card {
  background: var(--bg-main);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-3xl);
  width: 100%;
  max-width: 440px;
}

.auth-card h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-sm);
}

.auth-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(25, 166, 108, 0.1);
}

.auth-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* === Languages Section === */
.languages-section {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
}

.languages-grid {
  display: flex;
  gap: 3.5rem;
  margin: 3rem auto 0;
  animation: scrollLeftToRightLoop 20s linear infinite;
  width: fit-content;
}

@keyframes scrollLeftToRightLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.languages-section {
  overflow: hidden;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: default;
  position: relative;
  overflow: visible;
  min-height: auto;
  min-width: auto;
  flex-shrink: 0;
}

/* Tamil - Warm orange/red theme */
.language-pill[data-language="Tamil"] .language-label {
  color: #d84d0d;
  text-shadow: 0 2px 8px rgba(216, 77, 13, 0.3);
}

/* Hindi - Saffron/Tricolor theme */
.language-pill[data-language="Hindi"] .language-label {
  color: #ff9933;
  text-shadow: 0 2px 8px rgba(255, 153, 51, 0.3);
}

/* Telugu - Teal/Turquoise theme */
.language-pill[data-language="Telugu"] .language-label {
  color: #0d9c9c;
  text-shadow: 0 2px 8px rgba(13, 156, 156, 0.3);
}

/* Kannada - Golden theme */
.language-pill[data-language="Kannada"] .language-label {
  color: #d4a017;
  text-shadow: 0 2px 8px rgba(212, 160, 23, 0.3);
}

/* Malayalam - Emerald green theme */
.language-pill[data-language="Malayalam"] .language-label {
  color: #008a5a;
  text-shadow: 0 2px 8px rgba(0, 138, 90, 0.3);
}

/* English - Professional blue theme */
.language-pill[data-language="English"] .language-label {
  color: #0052cc;
  text-shadow: 0 2px 8px rgba(0, 82, 204, 0.3);
}

.language-spacer {
  min-width: 0;
  flex-shrink: 0;
}

.language-pill::before {
  display: none;
}

.language-badge {
  display: none;
}

.language-pill:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.language-pill:hover::before {
  opacity: 0;
}

.language-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.language-label {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--brand-primary);
  position: relative;
  z-index: 1;
}

.language-use {
  display: none;
}

.language-trust-note {
  display: none;
}

/* Responsive - Tablets */
@media (max-width: 768px) {
  .languages-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
  }

  .language-pill {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .language-name {
    font-size: 0.8rem;
  }

  .language-label {
    font-size: var(--font-size-base);
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 100%;
  }

  .language-pill {
    padding: var(--spacing-md);
  }
}

/* === Hidden Utility === */
.hidden {
  display: none !important;
}

/* Remove red outline from hero image */
#hero-img-parallax-wrapper {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

#hero-img-parallax {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}
/* === Premium Footer === */
.realbroks-footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  padding: var(--spacing-3xl) 0;
  margin-top: var(--spacing-xl);
  border-top: 2px solid #ffffff;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-2xl);
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.8fr 1.3fr;
  gap: var(--spacing-2xl);
  align-items: flex-start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Brand Column */
.brand-column {
  gap: var(--spacing-lg);
  align-items: flex-start;
  padding-right: var(--spacing-lg);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 1.5px;
}

/* Section Labels */
.footer-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 var(--spacing-sm) 0;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* Contact Column */
.contact-column {
  gap: var(--spacing-md);
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 200ms ease;
}

.contact-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Office Column */
.office-column {
  gap: var(--spacing-xs);
  padding-left: var(--spacing-sm);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.office-address {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  font-style: normal;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* Social Column */
.social-column {
  gap: var(--spacing-md);
  justify-content: flex-start;
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.social-icon:hover img {
  filter: brightness(0) invert(1) opacity(0.8);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-lg) var(--spacing-2xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.copyright {
  font-size: 0.75rem;
  color: #888888;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.4px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-link {
  color: #888888;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.footer-link-separator {
  color: #888888;
  opacity: 0.5;
  font-size: 0.75rem;
}

.tecstellar-link {
  color: #888888;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.tecstellar-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-2xl);
  }

  .brand-column,
  .office-column {
    border: none;
    padding: 0;
  }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .realbroks-footer {
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-3xl);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
  }

  .footer-column {
    align-items: center;
    border: none !important;
    padding: 0 !important;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .contact-detail {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  /* Reduce motion for mobile */
  @media (prefers-reduced-motion: reduce) {
    .contact-link,
    .social-icon {
      transition: none;
    }
  }
}

/* === Team (Founder) Section Background === */
#team {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none'%3E%3Cdefs%3E%3Cpattern id='dot' width='18' height='18' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='rgba(25%2C166%2C108%2C0.16)'/%3E%3Ccircle cx='11' cy='11' r='1' fill='rgba(25%2C166%2C108%2C0.12)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23dot)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e8eef7 100%) !important;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 180px 180px, auto, auto, auto;
}

/* Team Section Mobile Responsive */
@media (max-width: 768px) {
  #team {
    padding: 24px 16px !important;
  }
  
  #team .container > div[style*="display: grid"][style*="grid-template-columns: 1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
  }
  
  #team .team-card {
    padding: 18px !important;
    border-radius: 12px !important;
  }
  
  #team .team-card h3[data-lang="team-name"] {
    font-size: 1.15rem !important;
    margin-bottom: 0.15rem !important;
  }
  
  #team .team-card p[data-lang="team-title-text"] {
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  #team .team-card p[data-lang="team-value"] {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #team .team-card p[data-lang="team-bio"] {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.6rem !important;
  }
  
  #team .team-card div[style*="border-left: 4px"] {
    padding-left: 12px !important;
    margin-top: 0.5rem;
  }
  
  #team .team-card div[style*="border-left: 4px"] h4 {
    font-size: 0.75rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  #team .team-card div[style*="border-left: 4px"] p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }
  
  #team .team-card h3[data-lang="mission-title"],
  #team .team-card h3[data-lang="vision-title"] {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #team .team-card p[data-lang="mission-text"],
  #team .team-card p:not([data-lang]):not([style*="color: #6b7280"]):not([style*="color: #16a34a"]) {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  #team div[style*="display: grid"][style*="grid-template-columns: 1fr"][style*="gap: 15px"] {
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  #team {
    padding: 20px 12px !important;
  }
  
  #team .container > div[style*="display: grid"][style*="grid-template-columns: 1.2fr 1fr"] {
    gap: 16px !important;
  }
  
  #team .team-card {
    padding: 16px !important;
    border-radius: 10px !important;
  }
  
  #team .team-card h3[data-lang="team-name"] {
    font-size: 1.05rem !important;
  }
  
  #team .team-card p[data-lang="team-title-text"] {
    font-size: 0.8rem !important;
  }
  
  #team .team-card p[data-lang="team-value"] {
    font-size: 0.7rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  #team .team-card p[data-lang="team-bio"] {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #team .team-card div[style*="border-left: 4px"] {
    padding-left: 10px !important;
    border-left-width: 3px !important;
  }
  
  #team .team-card div[style*="border-left: 4px"] h4 {
    font-size: 0.7rem !important;
  }
  
  #team .team-card div[style*="border-left: 4px"] p {
    font-size: 0.8rem !important;
  }
  
  #team .team-card h3[data-lang="mission-title"],
  #team .team-card h3[data-lang="vision-title"] {
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
  }
  
  #team .team-card p[data-lang="mission-text"],
  #team .team-card p:not([data-lang]):not([style*="color: #6b7280"]):not([style*="color: #16a34a"]) {
    font-size: 0.8rem !important;
  }
  
  #team div[style*="display: grid"][style*="grid-template-columns: 1fr"][style*="gap: 15px"] {
    gap: 10px !important;
  }
}