/* ==========================================================================
   شركة الحلول البرمجية الحديثة - Alhulul Modern Software
   Custom Stylesheet (RTL Support, Glassmorphism, Modern UI Theme)
   ========================================================================== */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* --- Root Variables (Default Dark Theme - Modern High-Tech Vibe) --- */
:root {
  --font-arabic: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;

  /* Color Palette matching Logo & Futuristic Tech aesthetic */
  --bg-main: #0B132B;
  --bg-secondary: #1C2541;
  --bg-subtle: #131C38;
  --bg-card: rgba(28, 37, 65, 0.75);
  --bg-card-hover: rgba(42, 53, 85, 0.9);
  --bg-input: #0B132B;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.12);

  --primary-blue: #1E40AF;
  --primary-blue-hover: #1D4ED8;
  --cyan-accent: #00B4D8;
  --cyan-glow: rgba(0, 180, 216, 0.35);
  --cyan-soft-bg: rgba(0, 180, 216, 0.10);
  --teal-light: #5BC0BE;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;
  /* Text placed ON the solid accent color. The neon cyan is too bright for
     white text (2.46:1), so the dark theme uses deep ink on the accent. */
  --text-on-accent: #052E3B;
  /* #64748B only reached 3.9:1 on the dark input background */
  --placeholder-color: #7B8AA3;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 180, 216, 0.15);
  --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.4);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);

  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Bootstrap 5.3 bridge ----
     Bootstrap components read their colors from these variables. Mapping them
     onto our tokens is what keeps Bootstrap utilities (.text-muted,
     .bg-secondary-subtle, accordion, modal, toast, forms) in sync with the
     active theme instead of staying permanently light. */
  --bs-body-color: var(--text-main);
  --bs-body-color-rgb: 248, 250, 252;
  --bs-body-bg: var(--bg-main);
  --bs-emphasis-color: #FFFFFF;
  --bs-secondary-color: var(--text-muted);
  --bs-tertiary-color: var(--text-muted);
  --bs-border-color: var(--glass-border);
  --bs-border-color-translucent: var(--glass-border);
  --bs-secondary-bg: var(--bg-secondary);
  --bs-secondary-bg-subtle: var(--bg-subtle);
  --bs-secondary-border-subtle: var(--glass-border);
  --bs-tertiary-bg: var(--bg-secondary);
  --bs-link-color: var(--cyan-accent);
  --bs-link-color-rgb: 0, 180, 216;
  --bs-link-hover-color: var(--teal-light);
  --bs-link-hover-color-rgb: 91, 192, 190;
  --bs-info-rgb: 13, 202, 240;
  --bs-secondary-rgb: 148, 163, 184;

  --bs-accordion-color: var(--text-main);
  --bs-accordion-bg: transparent;
  --bs-accordion-btn-color: var(--text-main);
  --bs-accordion-active-color: var(--cyan-accent);
  --bs-accordion-active-bg: var(--cyan-soft-bg);
  --bs-accordion-border-color: var(--glass-border);

  --bs-modal-color: var(--text-main);
  --bs-modal-bg: var(--bg-secondary);
  --bs-modal-border-color: var(--glass-border);

  --bs-toast-color: var(--text-main);
  --bs-toast-bg: var(--bg-card);
  --bs-toast-header-color: var(--text-main);
  --bs-toast-header-bg: transparent;
}

/* --- Light Mode Variables --- */
[data-theme="light"] {
  --bg-main: #F1F5F9;
  --bg-secondary: #FFFFFF;
  --bg-subtle: #E2E8F0;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: rgba(241, 245, 249, 1);
  --bg-input: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(15, 23, 42, 0.12);

  --primary-blue: #1D4ED8;
  --primary-blue-hover: #1E40AF;
  /* Deeper than the dark-theme cyan: #0284C7 only reached 3.3:1 on the light
     section background, which is what made accent text hard to read. */
  --cyan-accent: #0369A1;
  --cyan-glow: rgba(3, 105, 161, 0.25);
  --cyan-soft-bg: rgba(3, 105, 161, 0.08);
  --teal-light: #0D9488;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-inverse: #F8FAFC;
  --text-on-accent: #FFFFFF;
  --placeholder-color: #64748B;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 15px rgba(2, 132, 199, 0.1);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.07);

  /* Bootstrap bridge values that are not derived from the tokens above */
  --bs-body-color-rgb: 15, 23, 42;
  --bs-emphasis-color: #000000;
  --bs-link-color-rgb: 3, 105, 161;
  --bs-link-hover-color-rgb: 13, 148, 136;
  --bs-info-rgb: 3, 105, 161;
  --bs-secondary-rgb: 71, 85, 105;
}

/* ==============================================
   CONTRAST LAYER
   Text color is driven by the --text-* tokens in both themes, so headings,
   paragraphs, spans and list items simply inherit from <body>. No blanket
   per-tag color rules: those were what painted the (always dark) footer with
   dark text in light mode.
   ============================================== */

/* Bootstrap's .text-muted / .text-secondary read --bs-secondary-color, which
   is bridged per theme above. Re-stated here so any subtree that overrides the
   token (see "always dark surfaces" below) gets the right muted color too. */
.text-muted,
.text-secondary {
  color: var(--text-muted) !important;
}

.hero-subtitle,
.service-desc,
.section-subtitle,
.stat-label,
.accordion-body {
  color: var(--text-muted);
}

/* ---- Always-dark surfaces ----
   These panels keep a dark background in BOTH themes, so they re-declare the
   text tokens locally. Everything inside them inherits readable light text
   without needing per-element overrides. */
.footer,
.portfolio-overlay,
.price-display-card {
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --bs-body-color: #F8FAFC;
  --bs-secondary-color: #94A3B8;
  --bs-emphasis-color: #FFFFFF;
  --bs-info-rgb: 13, 202, 240;
  --bs-secondary-rgb: 148, 163, 184;
}

/* ---- Theme-specific surface adjustments (light) ---- */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .hero-section {
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.08) 0%, transparent 50%),
              var(--bg-main);
}

[data-theme="light"] .contact-info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, #F1F5F9 100%);
}

[data-theme="light"] .floating-badge {
  background: rgba(255, 255, 255, 0.95);
}

/* .btn-outline-info hardcodes Bootstrap's cyan (#0dcaf0), which is far too pale
   on a light background - repoint it at the theme accent. */
[data-theme="light"] .btn-outline-info {
  --bs-btn-color: #0369A1;
  --bs-btn-border-color: #0369A1;
  --bs-btn-hover-bg: #0369A1;
  --bs-btn-hover-border-color: #0369A1;
  --bs-btn-active-bg: #075985;
  --bs-btn-active-border-color: #075985;
}

/* --- Global Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  direction: rtl;
  text-align: right;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-accent);
}

/* --- Selection Color --- */
::selection {
  background-color: var(--cyan-accent);
  color: var(--text-on-accent);
}

/* --- Glassmorphism Card Component --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 180, 216, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* --- Gradient Text Utility --- */
.text-gradient {
  background: linear-gradient(135deg, #00B4D8 0%, #38BDF8 50%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #5BC0BE 0%, #00B4D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The default gradient stops are tuned for a dark backdrop; on the light theme
   they wash out, so the light theme gets its own darker stops. */
[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #075985 0%, #0369A1 50%, #1D4ED8 100%);
}

[data-theme="light"] .text-gradient-cyan {
  background: linear-gradient(135deg, #0F766E 0%, #0369A1 100%);
}

/* --- Top Header Info Bar --- */
.topbar {
  background: rgba(11, 19, 43, 0.95);
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 0;
  transition: var(--transition-fast);
}

[data-theme="light"] .topbar {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.topbar-info span {
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info i {
  color: var(--cyan-accent);
}

/* --- Navbar --- */
.navbar-custom {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: var(--transition-normal);
}

.navbar-brand img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  transition: var(--transition-fast);
}

.navbar-brand:hover img {
  transform: scale(1.03);
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-accent) !important;
  background: var(--cyan-soft-bg);
}

/* Mobile hamburger: inherits the theme text color instead of a fixed white */
.navbar-toggler {
  color: var(--text-main);
  border-color: var(--glass-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--cyan-accent);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--cyan-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
  transform: rotate(15deg);
}

/* --- Buttons --- */
/* The gradient ends deep enough (#0E7490 rather than the neon #00B4D8) for the
   white label to stay readable across the whole button in both themes. */
.btn-primary-custom {
  background: linear-gradient(135deg, #1E40AF 0%, #0E7490 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #0E7490 0%, #1E40AF 100%);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-main) !important;
  border: 2px solid var(--cyan-accent);
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 12px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--cyan-accent);
  color: var(--text-on-accent) !important;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 120px 0 100px;
  background: radial-gradient(circle at 10% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.2) 0%, transparent 50%);
  overflow: hidden;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--cyan-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

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

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.floating-badge-1 {
  bottom: 20px;
  right: -15px;
}

.floating-badge-2 {
  top: 30px;
  left: -15px;
  animation-delay: 2s;
}

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

/* --- Stats Counter Bar --- */
.stats-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stat-item {
  text-align: center;
  padding: 15px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cyan-accent);
  font-family: 'Cairo', sans-serif;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--cyan-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Services Cards --- */
.service-card {
  padding: 36px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(30, 64, 175, 0.25) 100%);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--cyan-accent);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--cyan-accent);
  color: var(--text-on-accent);
  transform: scale(1.1) rotate(-5deg);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.service-features li {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li i {
  color: var(--teal-light);
}

/* --- Showcase / Portfolio Tabs --- */
.portfolio-filter-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition-fast);
  cursor: pointer;
  margin: 4px;
}

.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
  background: var(--cyan-accent);
  color: var(--text-on-accent);
  border-color: var(--cyan-accent);
  box-shadow: var(--shadow-glow);
}

.portfolio-item {
  margin-bottom: 30px;
  transition: var(--transition-normal);
}

.portfolio-card {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 43, 0.95) 0%, rgba(11, 19, 43, 0.4) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition-fast);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-badge {
  background: var(--cyan-accent);
  color: var(--text-on-accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  align-self: flex-start;
  margin-bottom: 8px;
}

/* --- Interactive Cost Estimator Tool --- */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-option-btn {
  background: var(--bg-input);
  border: 2px solid var(--glass-border);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: 14px;
  width: 100%;
  text-align: right;
  font-weight: 700;
  transition: var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-option-btn:hover, .calc-option-btn.active {
  border-color: var(--cyan-accent);
  background: var(--cyan-soft-bg);
  color: var(--cyan-accent);
}

.calc-option-btn i {
  font-size: 1.4rem;
}

.feature-checkbox-card {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.feature-checkbox-card:hover {
  border-color: var(--teal-light);
}

.feature-checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan-accent);
  cursor: pointer;
}

.price-display-card {
  background: linear-gradient(135deg, #1E40AF 0%, #0E7490 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
}

/* Bootstrap's .text-primary (#0d6efd) only reaches 4.3:1 on .btn-light */
.price-display-card .btn-light {
  color: #1E40AF !important;
}

.price-number {
  font-size: 3.2rem;
  font-weight: 900;
  font-family: 'Cairo', sans-serif;
  line-height: 1;
  margin: 16px 0;
}

/* --- Features & Why Choose Us --- */
.feature-box {
  padding: 30px;
  height: 100%;
}

.feature-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.15);
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* --- Accordion FAQ --- */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px !important;
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-button {
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 20px 24px;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--cyan-soft-bg);
  color: var(--cyan-accent);
}

/* Bootstrap swaps the chevron artwork itself via data-bs-theme, so the icon
   only needs its RTL placement fixed here - no filter hacks. */
.accordion-button::after {
  margin-right: auto;
  margin-left: 0;
}

.accordion-body {
  color: var(--text-muted);
  padding: 20px 24px;
  font-size: 1rem;
}

/* --- Contact Us Section --- */
.contact-info-card {
  padding: 36px;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 180, 216, 0.15);
  border-radius: 12px;
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.form-control-custom, .form-select-custom {
  background: var(--bg-input) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-main) !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--cyan-accent) !important;
  box-shadow: 0 0 15px var(--cyan-glow) !important;
}

.form-control-custom::placeholder {
  color: var(--placeholder-color);
  opacity: 1;
}

/* Native <option> menus are painted by the OS: without an explicit pair they
   render dark-on-dark once the select itself has a dark background. */
.form-select-custom option {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.form-label {
  color: var(--text-main);
}

/* --- Toast Notification --- */
.toast-custom {
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  border: 1px solid var(--cyan-accent);
  color: var(--text-main);
  border-radius: 14px;
}

.toast-custom .toast-header {
  color: var(--text-main);
  background: transparent;
  border-bottom-color: var(--glass-border) !important;
}

.toast-custom .toast-body {
  color: var(--text-main);
}

/* --- Footer --- */
.footer {
  background: #060B18;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px;
  color: var(--text-muted);
}

[data-theme="light"] .footer {
  background: #0F172A;
}

.footer-logo img {
  height: 56px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.footer-links h5 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition-fast);
  margin-left: 8px;
}

.social-btn:hover {
  background: var(--cyan-accent);
  color: var(--text-on-accent);
  transform: translateY(-3px);
}

/* --- Back To Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--cyan-accent);
  color: var(--text-on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--primary-blue);
  transform: translateY(-4px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .floating-badge {
    display: none;
  }
  .calculator-box {
    padding: 24px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .topbar {
    display: none;
  }
}
