/* ==========================================================================
   RIVI CONNEXIS GLOBAL PTE. LTD. - Official Corporate Stylesheet
   Off-White Theme, High-End Corporate Aesthetics, Fully Responsive
   ========================================================================== */

:root {
  /* Brand Palette - Off-White & Sophisticated Navy */
  --bg-primary: #f8fafc;        /* Warm light off-white porcelain */
  --bg-secondary: #ffffff;      /* Pure white for cards and modules */
  --bg-subtle: #f1f5f9;         /* Soft grey-tinted off-white for section contrast */
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --text-main: #0f172a;         /* Deep slate/navy for maximum clarity */
  --text-heading: #090e17;
  --text-body: #334155;         /* Rich charcoal slate */
  --text-muted: #64748b;        /* Cool grey secondary */
  --text-dim: #94a3b8;
  
  --accent-cyan: #0284c7;        /* Royal azure / sky blue */
  --accent-cyan-hover: #0369a1;
  --accent-cyan-light: #e0f2fe;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);
  
  --accent-gold: #d97706;        /* Refined warm amber gold */
  --accent-gold-light: #fef3c7;
  --accent-gold-hover: #b45309;

  --border-light: #e2e8f0;       /* Crisp light border */
  --border-medium: #cbd5e1;
  --border-cyan: rgba(2, 132, 199, 0.35);
  --border-gold: rgba(217, 119, 6, 0.35);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background accent glow */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-cyan-light);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-tag.gold {
  background: var(--accent-gold-light);
  border-color: rgba(217, 119, 6, 0.3);
  color: var(--accent-gold);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin: 0.85rem 0 1.15rem 0;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ==========================================================================
   Navigation Bar - 100% Transparent Over Hero Picture
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.3rem 0;
  background: transparent; /* Fully transparent pasted onto hero picture */
  border-bottom: none;
  box-shadow: none;
}

/* Scrolled state: Clean off-white blurred backdrop */
.site-nav.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 62px;
  width: auto;
  transition: all var(--transition-fast);
}

.site-nav.scrolled .brand-logo-img {
  height: 52px;
}

.brand-logo-img.logo-dark {
  display: none;
}

.site-nav.scrolled .brand-logo-img.logo-white {
  display: none;
}

.site-nav.scrolled .brand-logo-img.logo-dark {
  display: block;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.footer-logo-img {
  height: 64px;
  width: auto;
  margin-bottom: 1.2rem;
  display: block;
  transition: transform var(--transition-fast);
}

.footer-logo-img:hover {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

/* Transparent Navbar Link Styles (Pasted over Hero) */
.nav-link {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: #38bdf8;
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

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

/* Scrolled Navbar Link Styles */
.site-nav.scrolled .nav-link {
  color: var(--text-body);
  text-shadow: none;
  font-weight: 600;
}

.site-nav.scrolled .nav-link:hover, 
.site-nav.scrolled .nav-link.active {
  color: var(--accent-cyan);
}

.site-nav.scrolled .nav-link::after {
  background: var(--accent-cyan);
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
}

.site-nav.scrolled .mobile-toggle {
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section with Singapore Skyline
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem 0;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: heroKenBurns 28s alternate infinite ease-in-out;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -1.5%); }
}

/* Hero Overlay - Smoothly transitions from cinematic night skyline into off-white body */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.42) 0%,
    rgba(15, 23, 42, 0.58) 45%,
    rgba(248, 250, 252, 0.85) 90%,
    var(--bg-primary) 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 720px;
}

.hero-headline {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 1.5rem 0;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-headline .text-gradient-cyan {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.2rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

/* Hero Metrics Card - Rounded Corner Background with Dividers */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.hero-metrics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #d97706);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 1.2rem;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-medium);
}

.metric-item h4 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
  line-height: 1;
  text-shadow: none;
}

.metric-item p {
  color: var(--text-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: none;
}

/* Hero Right Floating Card - Sleek White & Off-White Card */
.hero-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #d97706);
}

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

.status-dot-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #16a34a;
  font-weight: 700;
}

.status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px #16a34a;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.hub-info h3 {
  font-size: 1.3rem;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.hub-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.hub-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hub-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.hub-spec-item i {
  color: var(--accent-cyan);
  font-size: 1rem;
  margin-top: 0.2rem;
}

.quick-hub-badge {
  margin-top: 1.8rem;
  background: var(--accent-gold-light);
  border: 1px dashed rgba(217, 119, 6, 0.4);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   About Us Section - Off-White Background
   ========================================================================== */
.about-section {
  padding: 7rem 0;
  position: relative;
  background-color: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.about-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover img {
  transform: scale(1.04);
}

.about-badge-float {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-badge-float .count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

.about-badge-float .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
  font-weight: 600;
}

.about-text h3 {
  font-size: clamp(1.8rem, 2.7vw, 2.4rem);
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

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

.pillar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-cyan);
  margin-bottom: 1.3rem;
}

.pillar-card:nth-child(2) .pillar-icon-box {
  background: var(--accent-gold-light);
  border-color: rgba(217, 119, 6, 0.2);
  color: var(--accent-gold);
}

.pillar-card h4 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Product Portfolio Section - Soft Off-White Contrast Background
   ========================================================================== */
.products-section {
  padding: 7rem 0;
  background-color: var(--bg-subtle);
  position: relative;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.products-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: #f8fafc;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.filter-btn.active {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

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

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-lg);
}

.product-image-box {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: #0f172a;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image-box img {
  transform: scale(1.08);
}

.product-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-badge-secondary {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: #b45309;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.product-body h3 {
  font-size: 1.45rem;
  color: var(--text-heading);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.product-body p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.product-specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

.spec-item {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-item i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

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

.product-moq {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.product-moq strong {
  color: var(--text-heading);
}

/* ==========================================================================
   Interactive Sourcing Calculator
   ========================================================================== */
.sourcing-builder-section {
  padding: 5.5rem 0;
  background-color: var(--bg-primary);
  position: relative;
}

.builder-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.builder-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

.builder-header h3 {
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.builder-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.builder-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 2.2rem;
}

.builder-step-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.builder-select, .builder-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.builder-select:focus, .builder-input:focus {
  border-color: var(--accent-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

/* Bootstrap Custom Dropdown Selects for Interactive Trade Desk */
.custom-bs-dropdown {
  position: relative;
  width: 100%;
}

.form-select-bootstrap {
  background-color: #f8fafc !important;
  border: 1px solid var(--border-medium) !important;
  color: var(--text-main) !important;
  padding: 0.85rem 1.1rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: all var(--transition-fast) !important;
}

.form-select-bootstrap:hover {
  background-color: #ffffff !important;
  border-color: var(--accent-cyan) !important;
}

.form-select-bootstrap:focus,
.custom-bs-dropdown.show .form-select-bootstrap {
  border-color: var(--accent-cyan) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px var(--accent-cyan-glow) !important;
}

.form-select-bootstrap::after {
  margin-left: 0.8rem;
  vertical-align: 0.15em;
  border-top: 0.35em solid var(--text-muted);
  border-right: 0.35em solid transparent;
  border-bottom: 0;
  border-left: 0.35em solid transparent;
  transition: transform var(--transition-fast);
}

.custom-bs-dropdown.show .form-select-bootstrap::after {
  transform: rotate(180deg);
  border-top-color: var(--accent-cyan);
}

.custom-bs-dropdown .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  margin-top: 0.4rem !important;
  padding: 0.5rem !important;
  z-index: 1050;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-bs-dropdown .dropdown-item {
  color: var(--text-main) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.2rem;
  transition: all var(--transition-fast) !important;
}

.custom-bs-dropdown .dropdown-item:hover {
  background-color: var(--accent-cyan-light) !important;
  color: var(--accent-cyan) !important;
}

.custom-bs-dropdown .dropdown-item.active {
  background-color: var(--accent-cyan-light) !important;
  color: var(--accent-cyan) !important;
  font-weight: 700 !important;
}

.custom-bs-dropdown .checkmark-icon {
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

/* Native Bootstrap form-select in contact form */
.form-select.form-control {
  background-color: #f8fafc;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.form-select.form-control:focus {
  border-color: var(--accent-cyan);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.builder-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.builder-summary-preview {
  font-size: 0.95rem;
  color: var(--text-body);
}

.builder-summary-preview strong {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Strategic Singapore Hub Section
   ========================================================================== */
.singapore-advantage-section {
  padding: 6.5rem 0;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.advantage-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.advantage-item {
  display: flex;
  gap: 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.advantage-item:hover {
  transform: translateX(6px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-md);
}

.advantage-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.advantage-content h4 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.advantage-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ==========================================================================
   Contact Us Section (Clean Light Map & Inputs)
   ========================================================================== */
.contact-section {
  padding: 7rem 0 5rem 0;
  position: relative;
  background-color: var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.contact-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-detail-item.gold .contact-detail-icon {
  background: var(--accent-gold-light);
  border-color: rgba(217, 119, 6, 0.2);
  color: var(--accent-gold);
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.contact-detail-text p, .contact-detail-text a {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.55;
  transition: color var(--transition-fast);
}

.contact-detail-text a:hover {
  color: var(--accent-cyan);
}

.copy-btn-inline {
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  transition: all var(--transition-fast);
}

.copy-btn-inline:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* Map Container - Light Natural Crisp Google Maps */
.map-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 300px;
  box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* Natural light Google map without inversion */
}

.map-overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-cyan);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Contact Form Container */
.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.form-title-group {
  margin-bottom: 2rem;
}

.form-title-group h3 {
  font-size: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group label span.required {
  color: #dc2626;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

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

/* ==========================================================================
   Send Email Button & Interactive Flight Animation
   ========================================================================== */
.submit-btn-wrapper {
  margin-top: 0.5rem;
  position: relative;
}

.btn-send-email {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-send-email:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.btn-send-email:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.btn-icon-plane {
  font-size: 1.15rem;
  transition: transform var(--transition-normal);
}

/* Sending State Animation */
.btn-send-email.is-sending .btn-icon-plane {
  animation: planeFlyAway 1.4s ease-in forwards;
}

@keyframes planeFlyAway {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  30% { transform: translate(15px, -15px) scale(1.1) rotate(25deg); }
  70% { transform: translate(120px, -60px) scale(0.6) rotate(35deg); opacity: 0.7; }
  100% { transform: translate(300px, -120px) scale(0.2) rotate(45deg); opacity: 0; }
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-send-email.is-sending .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sent Success Modal */
.sent-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.sent-success-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.success-modal-content {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 3rem 2.2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.sent-success-modal.show .success-modal-content {
  transform: scale(1);
}

.success-check-animation {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: var(--accent-cyan-light);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-cyan);
  animation: popCheck 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popCheck {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-modal-content h3 {
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 0.8rem;
}

.success-modal-content p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.success-email-badge {
  display: inline-block;
  background: var(--accent-cyan-light);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Corner Scroll To Top Floating Button - Crisp Off-White Styling
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.35);
}

.scroll-top-btn i {
  transition: transform var(--transition-fast);
}

.scroll-top-btn:hover i {
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer - Elegant Off-White & Crisp Slate
   ========================================================================== */
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1.2rem;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-contact-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-items li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
}

.footer-contact-items i {
  color: var(--accent-cyan);
  margin-top: 0.2rem;
}

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

.diasoft-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.diasoft-link:hover {
  color: var(--accent-cyan-hover);
  text-decoration: underline;
}

.footer-compliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  border: 1px solid var(--accent-cyan);
  color: var(--text-main);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  z-index: 3000;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-glass-card {
    max-width: 580px;
  }
  
  .about-grid, .advantage-grid, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0.9rem 0;
  }

  .brand-logo-img {
    height: 52px;
  }

  .site-nav.scrolled .brand-logo-img {
    height: 46px;
  }

  .footer-logo-img {
    height: 56px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-medium);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu .nav-link {
    color: var(--text-main);
    text-shadow: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem 0.5rem;
  }

  .metric-item {
    padding: 1rem;
  }

  .metric-item:not(:last-child)::after {
    right: 15%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 70%;
  }

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

  .builder-steps-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .scroll-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
  }
}
