/* ===================================================
   MYPTET - Global Design System
   Royal Blue + Emerald Professional Theme
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary: #1E3A8A;
  /* Royal Blue */
  --primary-light: #2563EB;
  /* Lighter Royal Blue */
  --secondary: #10B981;
  /* Emerald Green */
  --secondary-light: #34D399;
  /* Light Emerald */
  --navy: #0F172A;
  /* Deep Navy */
  --gradient: linear-gradient(135deg, #1E3A8A 0%, #10B981 100%);
  --gradient-soft: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  --glass-bg: #FFFFFF;
  --glass-border: rgba(30, 58, 138, 0.12);
  --glass-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --dark-bg: #F8FAFC;
  /* Soft Light Background */
  --dark-surface: #F1F5F9;
  --dark-card: #FFFFFF;
  --text-primary: #0F172A;
  /* Deep Navy */
  --text-secondary: #334155;
  /* Slate */
  --text-muted: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', system-ui, sans-serif;
}

/* ============ CANVAS PARTICLES ============ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-content {
  position: relative;
  z-index: 1;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: var(--transition);
  box-shadow: 0 1px 0 rgba(30, 58, 138, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 70%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 70%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a::before {
  content: '▾';
  margin-left: 4px;
  font-size: 0.75rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  animation: fadeInDown 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.dropdown-menu a:hover {
  background: var(--glass-bg);
}

.dropdown-menu a::after {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

/* Above-fold hero CTA pill */
.hero-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(16, 185, 129, 0.08));
  border: 1.5px solid rgba(30, 58, 138, 0.25);
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.25rem;
  animation: pill-float 2.5s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.12);
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.hero-cta-pill:hover {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(16, 185, 129, 0.15));
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.2);
  transform: translateY(-2px);
  color: var(--navy);
}

.hero-cta-pill strong {
  color: var(--secondary);
  font-weight: 700;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-soft);
  border: 1px solid rgba(30, 58, 138, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  animation: pulse-glow 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.45);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid rgba(30, 58, 138, 0.25);
}

.btn-outline:hover {
  background: var(--gradient-soft);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============ SECTIONS ============ */
.section {
  padding: 6rem 2rem;
}

.section-sm {
  padding: 3rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: var(--gradient-soft);
  color: var(--primary);
  border: 1px solid rgba(30, 58, 138, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============ GLASS CARDS ============ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.12);
  border-color: rgba(30, 58, 138, 0.25);
}

/* ============ TOOL GRID ============ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.tool-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.15);
  border-color: rgba(30, 58, 138, 0.25);
}

.tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(30, 58, 138, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  background: var(--gradient);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25);
}

.tool-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.tool-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ FORM ELEMENTS ============ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: #F8FAFC;
  border: 1.5px solid rgba(30, 58, 138, 0.15);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control option {
  background: #fff;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ============ RESULT CARD ============ */
.result-container {
  margin-top: 2rem;
  display: none;
}

.result-container.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-badge {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-safe {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-moderate {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-risk {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.local-result {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--gradient-soft);
  border: 1px solid rgba(30, 58, 138, 0.15);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.local-metric {
  text-align: center;
}

.local-metric .value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.local-metric .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.ai-analysis {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
}

.ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.ai-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ai-analysis-header span {
  font-weight: 700;
  font-size: 0.95rem;
}

.ai-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.ai-content h2,
.ai-content h3 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.ai-content p {
  margin-bottom: 0.75rem;
}

/* ============ LOADING SPINNER ============ */
.loading-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
}

.loading-overlay.show {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(30, 58, 138, 0.15);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============ TOOL PAGE LAYOUT ============ */
.tool-page {
  padding: 3rem 2rem;
  min-height: calc(100vh - 72px);
}

.tool-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tool-page-header .tool-icon-lg {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.25);
}

.tool-page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.tool-page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tool-content {
  max-width: 900px;
  margin: 3rem auto 0;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid rgba(30, 58, 138, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem;
}

/* ============ STATS / FEATURES ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 58, 138, 0.25);
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ============ STEPS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ============ CTA SECTION ============ */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ============ FOOTER ============ */
.footer {
  background: #0F172A;
  border-top: none;
  padding: 4rem 2rem 2rem;
  position: relative;
  color: #94a3b8;
}

/* Gradient top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 25%, var(--secondary) 75%, transparent 100%);
  opacity: 0.75;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-secondary);
}

.social-link:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

/* ---- Share Buttons (Footer 4th column) ---- */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.share-btn .share-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
}

/* Platform brand colours */
.share-btn.wb:hover {
  background: #25D366;
}

.share-btn.wb .share-icon {
  background: rgba(37, 211, 102, 0.2);
}

.share-btn.fb:hover {
  background: #1877F2;
}

.share-btn.fb .share-icon {
  background: rgba(24, 119, 242, 0.2);
}

.share-btn.tw:hover {
  background: #000;
}

.share-btn.tw .share-icon {
  background: rgba(255, 255, 255, 0.12);
}

.share-btn.tg:hover {
  background: #0088cc;
}

.share-btn.tg .share-icon {
  background: rgba(0, 136, 204, 0.2);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #F1F5F9;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s, padding-left 0.25s;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-col ul a::before {
  content: '›';
  position: absolute;
  left: -14px;
  opacity: 0;
  color: var(--secondary);
  transition: opacity 0.25s, left 0.25s;
  font-weight: 700;
}

.footer-col ul a:hover {
  color: var(--secondary);
  padding-left: 14px;
}

.footer-col ul a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  color: #64748B;
  font-size: 0.8rem;
}

/* ============ ALERT ============ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
  }

  50% {
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pill-float {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }

  50% {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.55);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ ABOUT / STATIC PAGES ============ */
.page-hero {
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.static-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.static-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--primary-light);
}

.static-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.static-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.static-content ul,
.static-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.static-content li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ============ MEDIA QUERIES ============ */
@media (max-width: 900px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.97);
    flex-direction: column;
    padding: 1rem;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
  }

  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .local-result {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ===================================================
   FIXES FOR HEADER, FOOTER, MOBILE MENU & DARK MODE
=================================================== */

/* 1. Android/Chrome ko zabardasti colors kharab karne se rokna */
:root {
    color-scheme: light only;
}

/* 2. Mobile Menu Text Fix (Dark background par White text) */
@media (max-width: 768px) {
    .nav-links {
        background: #0F172A !important; /* Deep Navy Background */
    }
    .nav-links a {
        color: #FFFFFF !important; /* White Text */
        font-size: 1.05rem !important; /* Thoda bada aur clear text */
        font-weight: 600 !important;
    }
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.08) !important;
    }
    .dropdown-menu a {
        color: #E2E8F0 !important; /* Dropdown ke andar light gray text */
    }
    .nav-toggle span {
        background: var(--primary) !important; /* Hamburger menu icon ko blue karna */
    }
}

/* 3. Footer Readability Improvements (Clear & Bright Text) */
.footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%) !important;
}
.footer-brand p, .footer-col ul a, .footer-bottom p {
    color: #E2E8F0 !important; /* Footer text ko jyada bright karna */
}
.footer-col h4 {
    color: #FFFFFF !important; /* Headings ko pure white karna */
}
.footer-col ul a:hover {
    color: #34D399 !important; /* Hover karne par light green */
}
.social-link {
    color: #E2E8F0 !important;
    background: rgba(255,255,255,0.05) !important;
}
.social-link:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}
