/* SimBasin 2026 Modern Hydro-Ecological Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --sb-navy: #07192f;
  --sb-teal: #0d9488;
  --sb-cyan: #0284c7;
  --sb-emerald: #10b981;
  --sb-bg: #f1f5f9;
  --sb-surface: #ffffff;
  --sb-text: #0f172a;
  --sb-muted: #475569;
  --sb-border: #e2e8f0;
  --sb-radius: 16px;
  --sb-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%) !important;
  color: var(--sb-text) !important;
  padding-top: 78px !important;
  line-height: 1.65 !important;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
}

h1 {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
}

h2 {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--sb-cyan) !important;
}

h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-top: 14px !important;
  margin-bottom: 10px !important;
}

p, li {
  font-size: 0.98rem;
  color: #334155;
}

p.lead {
  font-size: 1.14rem !important;
  line-height: 1.7 !important;
  color: #1e293b !important;
  font-weight: 400 !important;
}

/* Modern Glass Navbar */
.navbar-inverse .navbar-inner {
  background: rgba(7, 25, 47, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  padding: 10px 0 !important;
}

.navbar .logo img {
  height: 42px !important;
  width: auto !important;
  transition: transform 0.2s ease;
}
.navbar .logo img:hover {
  transform: scale(1.04);
}

.navbar .nav > li > a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: #cbd5e1 !important;
  text-shadow: none !important;
  padding: 10px 15px !important;
  border-radius: 999px;
  margin: 0 3px;
  transition: all 0.2s ease;
}

.navbar .nav > li > a:hover {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.16) !important;
}

.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
  background: linear-gradient(135deg, #0284c7, #0d9488) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.4) !important;
}

/* Container & Card Sections */
.container {
  max-width: 1180px !important;
  width: 92% !important;
  margin: 0 auto !important;
}

#heading, .heading #heading {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 22px;
  padding: 36px 32px !important;
  margin-top: 16px;
  margin-bottom: 28px;
  box-shadow: var(--sb-shadow);
  text-align: center;
}

#heading video {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  margin-bottom: 20px;
  background: #000;
}

#heading img {
  max-height: 110px;
  width: auto;
  margin: 12px auto 16px;
  display: block;
}

/* Upgrade Legacy Bootstrap 2 Rows/Spans to Clean Cards */
#features.row, #download.row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-left: 0 !important;
  margin-bottom: 32px;
}

#features .span4, #download .span4, #download .span3 {
  width: 100% !important;
  margin-left: 0 !important;
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  padding: 24px 22px;
  box-shadow: var(--sb-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#features .span4:hover, #download .span4:hover, #download .span3:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -8px rgba(15, 23, 42, 0.14);
}

#features img, #download img {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  margin: 0 auto 14px;
  display: block;
  object-fit: cover;
}

#successcase {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: 22px;
  padding: 36px 32px;
  margin-bottom: 32px;
  box-shadow: var(--sb-shadow);
}

#successcase .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-left: 0 !important;
  margin-bottom: 24px;
}

#successcase .span4 {
  flex: 1 1 280px;
  width: auto !important;
  margin-left: 0 !important;
}

#successcase .span8 {
  flex: 2 1 460px;
  width: auto !important;
  margin-left: 0 !important;
}

.img-polaroid {
  border-radius: 12px !important;
  border: 1px solid var(--sb-border) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  padding: 6px !important;
  background: #fff !important;
  max-width: 100%;
}

.divider {
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent) !important;
  margin: 28px 0 !important;
  border: none !important;
}

/* Modern Buttons */
.btn-success, .btn-info, .btn-primary {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  border: none !important;
  text-shadow: none !important;
  transition: all 0.2s ease !important;
  display: inline-block;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #0d9488) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.32) !important;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45) !important;
}

.btn-info, .btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3) !important;
}

.btn-info:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.42) !important;
}

/* Modern Forms */
input[type="text"], input[type="email"], textarea, select {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 0.94rem !important;
  margin-bottom: 10px !important;
  height: auto !important;
  background: #f8fafc !important;
  box-sizing: border-box !important;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none !important;
  border-color: var(--sb-cyan) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

input[type="submit"] {
  background: linear-gradient(135deg, #0284c7, #0d9488) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* Serious Gaming Hub Banner (3-Card Starting Section) */
.sg-hub {
  background: linear-gradient(135deg, #07192f 0%, #0c2d48 55%, #0f4c5c 100%);
  color: #f8fafc;
  border-radius: 24px;
  padding: 36px 32px;
  margin: 16px 0 32px;
  box-shadow: 0 20px 44px -10px rgba(7, 25, 47, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.sg-hub-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px;
}

.sg-hub-badge {
  display: inline-block;
  background: rgba(45, 212, 191, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: #5eead4;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sg-hub-header h1 {
  color: #ffffff !important;
  font-size: 2.3rem !important;
  margin-bottom: 10px !important;
}

.sg-hub-header p {
  color: #cbd5e1 !important;
  font-size: 1.06rem;
  margin: 0;
}

.sg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.sg-card {
  background: rgba(15, 35, 62, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.24s ease;
  text-decoration: none !important;
}

.sg-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  background: rgba(18, 45, 78, 0.94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.sg-card-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 8px;
  display: block;
}

.sg-card h3 {
  color: #ffffff !important;
  font-size: 1.28rem !important;
  margin: 0 0 10px 0 !important;
}

.sg-card p {
  color: #cbd5e1 !important;
  font-size: 0.93rem !important;
  line-height: 1.55 !important;
  margin-bottom: 18px !important;
}

.sg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #5eead4;
}

/* Footer Modernization */
footer {
  background: #07192f !important;
  color: #cbd5e1 !important;
  padding: 44px 0 32px !important;
  margin-top: 48px !important;
  border-top: 3px solid var(--sb-teal);
}

footer h3 {
  color: #ffffff !important;
  font-size: 1.15rem !important;
}

footer p, footer small, footer span {
  color: #cbd5e1 !important;
}

footer a {
  color: #38bdf8 !important;
}

footer .row.logos {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 16px;
  margin: 24px 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}

footer .row.logos .span2 {
  width: auto !important;
  margin: 0 !important;
}

footer .row.logos img {
  max-height: 48px;
  width: auto;
}
