/* InsurMantra - Premium SaaS Official Website Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1E3A8A;
  --primary-hover: #172554;
  --secondary: #4F46E5;
  --secondary-hover: #4338CA;
  --accent: #06B6D4;
  --accent-light: #E0F2FE;
  --success: #16A34A;
  --bg-main: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(30, 58, 138, 0.08), 0 8px 10px -6px rgba(30, 58, 138, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(30, 58, 138, 0.12), 0 10px 15px -5px rgba(30, 58, 138, 0.06);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --secondary: #6366F1;
  --secondary-hover: #818CF8;
  --accent: #22D3EE;
  --accent-light: #164E63;
  --success: #22C55E;
  --bg-main: #0B0F19;
  --card-bg: #111827;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

/* Glassmorphism Header */
.navbar-custom {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  margin: 0 6px;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary) !important;
  background-color: rgba(79, 70, 229, 0.08);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #1E3A8A 0%, #4F46E5 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #818CF8 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF !important;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
  color: #FFFFFF !important;
}

.btn-outline-custom {
  border: 2px solid var(--border-color);
  color: var(--text-primary) !important;
  background: var(--card-bg);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  border-color: var(--secondary);
  color: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Glass & Feature Cards */
.custom-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.3);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(79, 70, 229, 0.15) 100%);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.custom-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  transform: scale(1.05) rotate(-3deg);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 140px 0 90px;
  background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
}

.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, #1E3A8A 0%, #06B6D4 100%);
  filter: blur(80px);
  opacity: 0.25;
  border-radius: 50%;
  z-index: 0;
  animation: pulseBlob 8s infinite alternate ease-in-out;
}

@keyframes pulseBlob {
  0% { transform: scale(0.9) translate(0, 0); }
  100% { transform: scale(1.1) translate(20px, -20px); }
}

/* Hero Image Card Showcase */
.hero-image-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 82, 204, 0.12);
  background: #FFFFFF;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 82, 204, 0.25);
}

.hero-app-poster {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Mobile Phone Frame Mockup */
.phone-mockup {
  position: relative;
  z-index: 1;
  width: 280px;
  max-width: 100%;
  height: 570px;
  background: #000000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border: 4px solid #1E293B;
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: top !important;
  border-radius: 26px;
}

.phone-notch {
  width: 120px;
  height: 20px;
  background: #1E293B;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

/* Stats Counter Badge */
.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

/* Screenshots Gallery & Lightbox */
.screenshot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.screenshot-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 138, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #FFFFFF;
  font-size: 2rem;
}

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

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

.accordion-button {
  background-color: var(--card-bg) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 1.25rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--secondary) !important;
  background-color: rgba(79, 70, 229, 0.05) !important;
}

/* Blog Cards */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.3);
}

.blog-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.blog-card:hover .blog-img {
  transform: scale(1.06);
}

.blog-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

/* Footer */
.footer-custom {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
  margin-top: 80px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--secondary);
  transform: translateX(3px);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--secondary);
  color: #FFFFFF;
  border-color: var(--secondary);
  transform: translateY(-3px);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

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

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

/* Responsive Tweaks */
@media (max-width: 991px) {
  .hero-section {
    padding: 110px 0 60px;
    text-align: center;
  }
  .hero-mockup-wrapper {
    margin-top: 40px;
  }
}
