/* ===== Ruby Petro Chem — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --ruby-red: #E31E24;
  --ruby-dark: #B8151A;
  --ruby-light: #FF4B50;
  --navy: #234a85;
  --navy-light: #2a579a;
  --gold: #234a85;
  --gold-light: #FF4B50;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray-50: #F1F3F5;
  --gray-100: #E9ECEF;
  --gray-200: #DEE2E6;
  --gray-300: #CED4DA;
  --gray-400: #ADB5BD;
  --gray-500: #6C757D;
  --gray-600: #495057;
  --gray-700: #343A40;
  --gray-800: #212529;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);
  --shadow-red: 0 8px 30px rgba(227, 30, 36, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

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

p {
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 1rem;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--ruby-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== NAVBAR - ISLAND STYLE ===== */
.navbar-wrapper {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1050;
  padding: 24px 0;
  transition: var(--transition);
}

.navbar-ruby {
  background: #ffffff;
  border: 1px solid var(--gray-100);
  padding: 6px 0;
  transition: var(--transition-slow);
  border-radius: 100px;
  /* Floating pill */
  box-shadow: 0 10px 40px rgba(15, 27, 45, 0.08);
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-ruby.scrolled {
  background: #ffffff;
  box-shadow: 0 15px 50px rgba(15, 27, 45, 0.12);
  padding: 8px 0;
  transform: translateY(-12px);
}

.navbar-ruby .navbar-brand {
  padding: 0;
  margin-left: 12px;
  display: flex;
  align-items: center;
}

.navbar-ruby .brand-logo-main {
  height: 60px;
  /* Big ruby logo */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.navbar-ruby.scrolled .brand-logo-main {
  height: 50px;
}

/* Partner Badge */
.partner-badge {
  line-height: 1;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  padding-right: 20px;
  align-items: center !important;
}

.partner-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.brand-logo-partner {
  height: 76px;
  /* Larger reliance logo */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.navbar-ruby.scrolled .brand-logo-partner {
  height: 60px;
}

.navbar-ruby .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333333 !important;
  padding: 8px 12px !important;
  position: relative;
  transition: var(--transition);
  border-radius: 50px;
}

.navbar-ruby .nav-link:hover,
.navbar-ruby .nav-link.active {
  background: rgba(227, 30, 36, 0.06);
  color: var(--ruby-red) !important;
}

.navbar-ruby .dropdown-menu {
  border-radius: var(--radius-md);
  padding: 12px;
  min-width: 300px;
  border: 1px solid var(--gray-100) !important;
  margin-top: 10px;
}

.navbar-ruby .dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-bottom: 2px;
}

.navbar-ruby .dropdown-item:hover,
.navbar-ruby .dropdown-item:focus {
  background: rgba(227, 30, 36, 0.06);
  color: var(--ruby-red);
}

@media (min-width: 992px) {
  .navbar-ruby .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeUp 0.3s ease forwards;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-whatsapp-island {
  background: #25D366;
  color: white !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  margin-right: 12px;
  transition: var(--transition);
}

.btn-whatsapp-island:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: white !important;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('../assets/images/slider-ruby-petrochem.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.75);
  /* Deep navy/black overlay for readability */
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-80px) scale(1.5);
    opacity: 0.8;
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 6px 18px;
  color: #234a85;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 28px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--ruby-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== MODERN FLOATING STATS ===== */
.floating-stats-section {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  margin-bottom: 30px;
}

.modern-stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 27, 45, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

.modern-stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(227, 30, 36, 0.12);
  background: var(--white);
}

.stat-watermark {
  position: absolute;
  top: -15px;
  right: -10px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(35, 74, 133, 0.06);
  line-height: 1;
  pointer-events: none;
  transition: all 0.5s ease;
  font-family: 'Poppins', sans-serif;
  z-index: 0;
}

.modern-stat-card:hover .stat-watermark {
  transform: scale(1.1) translate(-10px, 10px);
  color: rgba(227, 30, 36, 0.04);
}

.modern-stat-card .stat-content {
  position: relative;
  z-index: 2;
}

.modern-stat-card .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ruby-red);
  margin-bottom: 10px;
  letter-spacing: 1px;
  line-height: 1;
}

.modern-stat-card .stat-number .text-ruby {
  color: var(--ruby-red);
}

.modern-stat-card .stat-label {
  color: #333333;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.stat-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ruby-red), var(--gold));
  transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-stat-card:hover .stat-line {
  width: 100%;
}

/* ===== BUTTONS ===== */
.btn-ruby {
  background: linear-gradient(135deg, var(--ruby-red), var(--ruby-dark));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-red);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-ruby::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ruby-light), var(--ruby-red));
  opacity: 0;
  transition: var(--transition);
}

.btn-ruby:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(227, 30, 36, 0.35);
  color: white;
}

.btn-ruby:hover::before {
  opacity: 1;
}

.btn-ruby span {
  position: relative;
  z-index: 1;
}

.btn-navy-custom {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(35, 74, 133, 0.25);
  transition: var(--transition);
  display: inline-block;
}

.btn-navy-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(35, 74, 133, 0.4);
  color: var(--white);
  background: var(--navy-light);
}

.btn-outline-ruby {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 12px 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-outline-ruby:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-whatsapp-solid {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45);
  color: white;
  background: #20BA56;
}

/* ===== SECTIONS ===== */
.section-padding {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(227, 30, 36, 0.08);
  color: var(--ruby-red);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.bg-light-ruby {
  background: var(--gray-50);
}

/* ===== ABOUT CARD ===== */
.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(15, 27, 45, 0.05);
  border: 1px solid rgba(227, 30, 36, 0.1);
  border-bottom: 4px solid var(--ruby-red);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(15, 27, 45, 0.15);
}

.about-card:hover::before {
  transform: scaleY(1);
}

.about-card h3,
.about-card h4,
.about-card p {
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.about-card:hover h3,
.about-card:hover h4,
.about-card:hover p {
  color: var(--white) !important;
}

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(227, 30, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ruby-red);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.about-card:hover .about-icon {
  background: var(--ruby-red);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

/* ===== ABOUT STAT CARDS ===== */
.about-stat-card {
  background: var(--white);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  border-top: 4px solid var(--ruby-red);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(227, 30, 36, 0.15);
}

.about-stat-card:hover .position-absolute {
  transform: scale(1.1) rotate(10deg);
  opacity: 0.8;
  transition: all 0.4s ease;
}

/* ===== PREMIUM PRODUCT CARDS ===== */
.product-premium-card {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: 0 10px 30px rgba(15, 27, 45, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
}

.product-premium-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--ruby-red), var(--ruby-dark));
  transition: width 0.4s ease;
  z-index: -1;
}

.product-premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(227, 30, 36, 0.15);
  border-color: transparent;
}

.product-premium-card:hover::before {
  width: 100%;
}

.product-premium-card .card-icon {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(15, 27, 45, 0.2);
  margin-right: 20px;
  transition: color 0.4s ease;
}

.product-premium-card:hover .card-icon {
  color: rgba(255, 255, 255, 0.25);
}

.product-premium-card .card-content {
  flex-grow: 1;
}

.product-premium-card .card-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--navy);
  transition: color 0.4s ease;
}

.product-premium-card:hover .card-content h3 {
  color: var(--white);
}

.product-premium-card>i {
  font-size: 1.4rem;
  color: var(--ruby-red);
  transition: all 0.4s ease;
  opacity: 0.7;
}

.product-premium-card:hover>i {
  color: var(--white);
  transform: translateX(5px);
  opacity: 1;
}

/* ===== GRADE TABLE ===== */
.grade-table-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  margin-bottom: 24px;
}

.grade-table-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grade-table-header h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
}

.grade-badge {
  background: rgba(227, 30, 36, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.grade-table th {
  background: var(--gray-50);
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.grade-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  vertical-align: middle;
}

.grade-table tr:hover {
  background: rgba(227, 30, 36, 0.02);
}

.grade-table .btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(227, 30, 36, 0.08);
  color: var(--ruby-red);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
}

.grade-table .btn-pdf:hover {
  background: var(--ruby-red);
  color: white;
}

/* ===== WHY RUBY CARDS ===== */
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ruby-red), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(227, 30, 36, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--ruby-red);
  transition: var(--transition);
}

.why-card:hover .why-card-icon {
  background: linear-gradient(135deg, var(--ruby-red), var(--ruby-dark));
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.why-card h4 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

/* ===== CONTACT ===== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  height: 100%;
}

.contact-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--ruby-red), var(--ruby-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-red);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gray-50);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--navy);
}

.cta-section p {
  color: var(--gray-600);
}

/* ===== FOOTER ===== */
.footer {
  background: url('../assets/images/footer-ruby-petrochem.png') center center / cover no-repeat;
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.4px;
}

.footer-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.85);
  /* Navy overlay, similar to hero */
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.footer-heading {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-top-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-badge-footer {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.partner-badge-footer:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-social .social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social .social-btn:hover {
  background: var(--ruby-red);
  color: white;
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
}

.footer-social .social-btn.whatsapp-btn:hover {
  background: #25D366;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-links-modern li a {
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.footer-links-modern li a:hover {
  color: var(--white) !important;
  transform: translateX(5px);
}

.address-card {
  transition: var(--transition);
}

.address-card:hover .icon-box {
  transform: scale(1.1);
}

.address-card .icon-box {
  transition: var(--transition);
  margin-top: 2px;
}

.contact-card {
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
}

.hover-white:hover {
  color: var(--white) !important;
}

.transition-all {
  transition: all 0.3s ease;
}

.tracking-wide {
  letter-spacing: 0.5px;
}

.tracking-wider {
  letter-spacing: 1px;
}

.line-height-sm {
  line-height: 1.2;
}

.line-height-base {
  line-height: 1.6;
}

.border-light-subtle {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-wa {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ruby-red);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-red);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--ruby-dark);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition-slow);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: var(--transition-slow);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-slow);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== SIGNUP FORM ===== */
.signup-section {
  background: linear-gradient(135deg, #FFF5F5 0%, var(--gray-50) 100%);
}

.signup-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.signup-form-card .form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.signup-form-card .form-control:focus {
  border-color: var(--ruby-red);
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: url('../assets/images/banner-ruby-petrochem.png') center center / cover no-repeat;
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.75);
}

.page-header h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  margin-top: 30px;
}

.page-header .breadcrumb {
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb-item.active {
  color: var(--gold-light);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

/* ===== PRODUCT TABS ===== */
.product-tabs .nav-link {
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  padding: 10px 24px;
  margin: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: var(--transition);
}

.product-tabs .nav-link.active,
.product-tabs .nav-link:hover {
  background: var(--ruby-red);
  border-color: var(--ruby-red);
  color: white;
  box-shadow: var(--shadow-red);
}

/* ===== COUNTER ===== */
.counter-section {
  background: linear-gradient(135deg, var(--ruby-red), var(--ruby-dark));
  padding: 60px 0;
}

.counter-item {
  text-align: center;
  color: white;
}

.counter-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
}

.counter-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-3d-visual {
    margin-top: 40px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .navbar-ruby .navbar-brand {
    padding: 6px 10px;
    gap: 9px;
  }

  .navbar-ruby .brand-logo-main {
    height: 38px;
  }

  .navbar-ruby .brand-logo-partner {
    height: 20px;
  }

  .navbar-ruby .brand-divider {
    height: 24px;
  }

  .navbar-ruby .navbar-collapse {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 767.98px) {
  .navbar-ruby .navbar-brand {
    max-width: calc(100vw - 94px);
  }

  .navbar-ruby .brand-logo-main {
    height: 34px;
  }

  .navbar-ruby .brand-logo-partner {
    height: 18px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .why-card {
    margin-bottom: 16px;
  }

  .counter-number {
    font-size: 2rem;
  }

  .page-header {
    padding: 120px 0 60px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 48px 0;
  }

  .product-card-header {
    padding: 20px;
  }

  .signup-form-card {
    padding: 24px;
  }

  .contact-card {
    padding: 24px;
  }
}