:root {
  /* Digi Hisaab Colors */
  --primary: #9c27b0;
  --primary-dark: #673ab7;
  --primary-light: #bb86fc;

  --bg-color: #f8f4ff;
  --surface-color: #ffffff;

  --text-primary: #212121;
  --text-secondary: #757575;

  --success: #00c853;
  --error: #ff5252;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-color: rgba(156, 39, 176, 0.15);

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 5% 50px;
  position: relative;
  overflow: hidden;
}

/* Background gradient blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(156, 39, 176, 0.2);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(103, 58, 183, 0.15);
  bottom: 100px;
  left: -100px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

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

.app-mockup {
  width: 330px;
  border-radius: 42px;
  box-shadow: 0 30px 60px rgba(156, 39, 176, 0.3);
  border: 12px solid #111;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

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

/* Features Section */
.features {
  padding: 100px 5%;
  text-align: center;
  background: linear-gradient(180deg, #faf8fc 0%, #ffffff 100%);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  border-radius: 24px;
  text-align: left;
  background: white;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(156, 39, 176, 0.15);
  border-color: #f4ebfb;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Material Icons";
  font-size: 2.2rem;
  color: white;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(156, 39, 176, 0.3);
  transform: rotate(-5deg);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(0deg) scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #222;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Timeline / How It Works */
.timeline-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-right: 30px;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(156, 39, 176, 0.4);
  z-index: 2;
  border: 4px solid white;
}

.timeline-card {
  background: white;
  padding: 35px 40px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(156, 39, 176, 0.1);
  width: 100%;
  transition: all 0.4s ease;
}

.timeline-step:hover .timeline-card {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(156, 39, 176, 0.15);
  border-color: #f4ebfb;
}

.timeline-card h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-card p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
  padding: 100px 5%;
  background: radial-gradient(circle at 50% 0%, #faf8fc 0%, #ffffff 70%);
  position: relative;
}

.screens-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.screen-item {
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 8px solid #222;
}

.screen-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(156, 39, 176, 0.25);
}

.screen-item img {
  width: 100%;
  display: block;
}

/* CTA Section */
.cta {
  padding: 120px 5%;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -100px;
  left: -100px;
}

.cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -50px;
  right: -50px;
}

.cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* New Hero Banner Styles */
.hero-feature-icons .h-feat-item {
  text-align: center;
  width: 90px;
}
.hero-feature-icons .h-feat-icon {
  width: 55px;
  height: 55px;
  background: #f4ebfb;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  color: var(--primary);
  font-family: "Material Icons";
  font-size: 28px;
}
.hero-feature-icons p {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #333;
  font-weight: 600;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  background: white;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  gap: 20px;
}
.hero-trust-badge .badge-part1 {
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 2px solid #eee;
  padding-right: 20px;
}
.hero-trust-badge .badge-part2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trust-badge .rupee-icon {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.hero-trust-badge .laurel-icon {
  color: var(--primary);
  font-family: "Material Icons";
  font-size: 32px;
}
.hero-trust-badge .badge-text-top {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}
.hero-trust-badge .badge-text-bottom {
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
}

.hero-circle-bg {
  position: absolute;
  width: 450px;
  height: 450px;
  background: #f4ebfb;
  border-radius: 50%;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tilted-phone {
  transform: rotate(15deg) translateY(-20px);
  box-shadow: -25px 35px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.hero-bg-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(#ddd 3px, transparent 3px);
  background-size: 25px 25px;
  z-index: 0;
}
.pattern-top {
  top: 100px;
  left: 45%;
}
.pattern-bottom {
  bottom: 50px;
  right: 5%;
}

/* Tabs */
.tab-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 50px;
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  max-width: fit-content;
  border: 1px solid rgba(156, 39, 176, 0.1);
}

.tab-btn {
  padding: 12px 40px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 20px rgba(156, 39, 176, 0.3);
}

.app-preview-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.app-preview-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  padding: 80px 5% 30px;
  background: linear-gradient(135deg, #1c1c23 0%, #2a173b 100%);
  color: white;
  border-top: 6px solid var(--primary);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(156, 39, 176, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-brand .logo {
  margin-bottom: 25px;
}
.footer-brand .logo img {
  height: 75px;
  background: white;
  padding: 10px 15px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.footer-brand .logo img:hover {
  transform: translateY(-5px);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: white;
}

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

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  font-size: 1.05rem;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 150px;
  }

  .hero-content {
    margin-bottom: 60px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none; /* simple hidden for mobile for now */
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screens-grid {
    flex-direction: column;
    align-items: center;
  }

  #header a.btn.btn-primary {
    display: none;
  }
}

/* Custom Language Dropdown Selector Styles */
.custom-lang-selector {
  position: relative;
  display: inline-block;
  font-family: "Inter", sans-serif;
  z-index: 1000;
}

.lang-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2.5px solid rgba(156, 39, 176, 0.2);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.lang-trigger-btn:hover {
  border-color: var(--primary);
  background: #fdf9ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.12);
}

.lang-trigger-btn .material-icons {
  font-size: 1.2rem;
  color: var(--primary);
}

.lang-trigger-btn .arrow-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  color: #888;
}

.custom-lang-selector.open .arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown-options {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(156, 39, 176, 0.15);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(156, 39, 176, 0.15);
  width: 210px;
  opacity: 0;
  transform: translateY(-15px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 8px;
}

.custom-lang-selector.open .lang-dropdown-options {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  color: #444;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.lang-option:hover {
  background: rgba(156, 39, 176, 0.08);
  color: var(--primary);
  transform: translateX(4px);
}

.lang-option.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

.lang-flag {
  font-size: 1.15rem;
}

/* Secondary CTA hover styling */
.cta a[href*="digihisaabvendor"]:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}
