:root {
  --primary: #fed136;
  --dark-gray: #343a40;
  --light-gray: #f7f7f7;
}

/* Scroll padding for anchor links */
html {
  scroll-padding-top: 100px; /* Increased padding to ensure clearing the navbar */
  scroll-behavior: smooth;
}

/* Add anchor targets before actual content */
section[id]::before {
  content: "";
  display: block;
  height: 100px; /* Same as scroll-padding-top */
  margin-top: -100px; /* Negative margin to pull content back up */
  visibility: hidden;
  pointer-events: none;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #212529;
}

.btn-primary:hover {
  background-color: #e9c025;
  border-color: #e9c025;
  color: #212529;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-light-gray {
  background-color: var(--light-gray);
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/finance-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
}

.feature-icon {
  background-color: var(--primary);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #212529;
  position: relative;
}

.feature-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.card-title {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.card-text {
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.app-screenshot {
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

.clickable-screenshot {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.clickable-screenshot:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--primary);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s;
  z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(254, 209, 54, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 16px;
  padding: 10px;
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    padding: 5px 15px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

.navbar-brand {
  color: var(--primary);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.section-heading {
  margin-bottom: 50px;
}

.section-padding {
  padding: 80px 0;
}

.quote-section {
  background-color: var(--dark-gray);
  color: white;
  padding: 60px 0;
}

footer {
  padding: 30px 0;
  background-color: var(--dark-gray);
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: var(--primary);
}

/* YouTube shorts aspect ratio */
.youtube-short-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.youtube-short {
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  aspect-ratio: 9/16;
}

/* Flag icons */
.flag-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.language-switcher {
  margin-left: 15px;
}

.language-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.language-btn:hover, .language-btn.active {
  opacity: 1;
}

.language-btn {
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* AI Assistant Specific Styles */
.ai-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23fed136" stop-opacity="0.1"/><stop offset="100%" stop-color="%23fed136" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>') center/cover;
  opacity: 0.5;
  z-index: 0;
}

.ai-section .container {
  position: relative;
  z-index: 1;
}

/* Cash Counter Styles */
.cashcounter-features-list .d-flex {
  align-items: flex-start;
}

.cashcounter-features-list i {
  margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }
}
