/* ==========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================== */
:root {
  --bg-dark: #040d0e;
  --bg-card: rgba(8, 22, 24, 0.65);
  --border-card: rgba(0, 230, 184, 0.2);
  --border-hover: #00e6b8;
  --accent-cyan: #00e6b8;
  --text-main: #ffffff;
  --text-muted: #839d9a;
  --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Common Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-header h2 span {
  color: var(--accent-cyan);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 18px;
}

/* Badges */
.faq-badge, .contact-badge {
  display: table;
  margin: 0 auto 12px auto;
  padding: 4px 14px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

/* ==========================================
   2. COMPACT NAVBAR & FIXED HEIGHT
   ========================================== */
header {
  position: sticky;
  top: 10px;
  z-index: 1000;
  background: rgba(11, 33, 36, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-card);
  height: 60px; /* Lock total navbar height */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%; /* Fill fixed header height */
  padding: 0 20px; /* Zero vertical padding prevents height growth */
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  overflow: visible; /* Prevents oversized logo from clipping */
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.2rem;
}

.logo img {
  height: 108px; /* Boosted visual height */
  width: auto;
  object-fit: contain;
  transform: scale(1.35); /* Zooms into the logo graphic without stretching the navbar */
  transform-origin: left center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.0 rem;
  transition: color ease 0.35s;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

#login-btn {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 6px;
  transition: all ease-in-out .35s;
}

#login-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 230, 184, 0.4);
  transform: translateY(-2px);
}

#demo-btn {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

#demo-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 230, 184, 0.4);
  transform: translateY(-2px);
}

/* ==========================================
   3. HERO SECTION (Specific BG Image Applied)
   ========================================== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10px 80px 90px;
  max-width: 100%;
  margin: 0 auto;
  gap: 40px;

  /* Hero-only background image with dark overlay */
  background-image: linear-gradient(
      rgba(4, 13, 14, 0.55), 
      rgba(4, 13, 14, 0.65)
    ), 
    url('../assets/bg.png'); /* Adjust path if needed e.g., '../assets/bg.jpg' */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  margin-left: auto;
}

/* .subtitle {
  color: var(--accent-cyan);
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 3.0rem;
  line-height: 1.25;
  margin-bottom: 20px;
}

.description {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.17rem;
  max-width: 550px;
}

#get-started-btn {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#get-started-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 230, 184, 0.4);
} */

/* "RETINAGUARD :" Subtitle */
.subtitle {
  color: #00e6b8;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* Title with Alternating Colors */
.hero-content h1 {
  font-size: 3.1rem;
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #ffffff;
  letter-spacing: 1px;
}

.hero-content h1 .highlight {
  color: #00e6b8; /* Cyan color for highlighted lines */
}

/* Cyan Divider Line */
.divider-line {
  width: 120px;
  height: 3px;
  background: #00e6b8;
  border-radius: 2px;
  margin-bottom: 30px;
}

/* Description Text */
.description {
  color: var(--text-muted);
  margin-bottom: 35px;
  font-size: 1.21rem;
  line-height: 1.6;
  max-width: 570px;
}

/* Gradient Button with Arrow Pill */
#get-started-btn {
  background: linear-gradient(135deg, #00b38f 0%, #00e6b8 100%);
  color: #ffffff;
  border: none;
  padding: 10px 30px 10px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 230, 184, 0.25);
}

#get-started-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 184, 0.4);
}

.btn-arrow {
  background: rgba(0, 0, 0, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.hero-diagram {
  flex: 1;
  text-align: center;
  margin-right: auto;
}

.hero-diagram img {
  max-width: 100%;
  height: 480px;
  animation: floatingImage 3.5s ease-in-out infinite;
}

@keyframes floatingImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ==========================================
   4. SECTION-SPECIFIC BACKGROUNDS
   ========================================== */

/* Features Section */
.features-section {
  padding: 80px 0;
  background: linear-gradient(rgba(4, 13, 14, 0.75), rgba(4, 13, 14, 0.85)),
              url('features-bg.jpg') no-repeat center center / cover;
  padding: 130px 0 60px 0 !important; /* 🟢 ওপরের প্যাডিং বাড়িয়ে নিচে কমানো হলো যাতে পারফেক্ট ব্যালেন্স থাকে */
}

/* How It Works Section */
.workflow-section {
  padding: 80px 0;
  background: linear-gradient(rgba(4, 13, 14, 0.75), rgba(4, 13, 14, 0.85)),
              url('workflow-bg.jpg') no-repeat center center / cover;
  padding: 100px 0 30px 0 !important; /* 🟢 ওপরের প্যাডিং বাড়িয়ে নিচে কমানো হলো যাতে পারফেক্ট ব্যালেন্স থাকে */
}

/* Performance Metrics Section */
.metrics-section {
  padding: 80px 0;
  background: linear-gradient(rgba(4, 13, 14, 0.75), rgba(4, 13, 14, 0.85)),
              url('metrics-bg.jpg') no-repeat center center / cover;
}

/* AI Research Highlights Section */
.research-section {
  padding: 80px 0;
  background: linear-gradient(rgba(4, 13, 14, 0.75), rgba(4, 13, 14, 0.85)),
              url('research-bg.jpg') no-repeat center center / cover;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(rgba(4, 13, 14, 0.75), rgba(4, 13, 14, 0.85)),
              url('faq-bg.jpg') no-repeat center center / cover;
}

/* Contact & Demo Section */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(rgba(4, 13, 14, 0.75), rgba(4, 13, 14, 0.85)),
              url('contact-bg.jpg') no-repeat center center / cover;
}

/* ==========================================
   5. GLASSMORPHIC CARDS
   ========================================== */
.feature-card,
.step-card,
.metric-card,
.research-card,
.faq-item,
.contact-info-card,
.contact-form-card,
.demo-banner,
.pipeline-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-card {
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: all 0.3s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 230, 184, 0.15);
}

.feature-card .icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 1.5px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(0, 230, 184, 0.08);
}

.feature-card .card-content {
  flex: 1;
}

.feature-card .card-content h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 600;
}

.feature-card .card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.learn-more-btn {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.learn-more-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 230, 184, 0.4);
}

/* Workflow Steps */
.workflow-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.step-card {
  border-radius: 10px;
  padding: 20px;
  width: 220px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

.step-card:hover, .step-card.active-step {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 230, 184, 0.2);
}

.step-number {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.step-card .icon-box {
  margin: 10px auto 15px auto;
}

.step-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.arrow {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  font-weight: bold;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.metric-card {
  border-radius: 12px;
  padding: 25px;
  text-align: left;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.metric-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Research Highlights */
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.research-card {
  border-radius: 10px;
  padding: 20px;
}

.research-card h3 {
  font-size: 0.95rem;
  margin: 10px 0;
}

.card-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-list li {
  margin-bottom: 5px;
}

.highlight-val {
  color: var(--accent-cyan);
  font-weight: bold;
  font-size: 1.2rem;
}

.wide-card {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-tag {
  background: rgba(0, 230, 184, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 20px;
  text-align: center;
}

.tag-title {
  display: block;
  font-weight: bold;
  font-size: 0.85rem;
}

.tag-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.pipeline-wrapper {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.pipeline-title {
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.pipeline-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pipeline-card {
  border: 1px solid var(--border-card);
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(4, 13, 14, 0.5);
}

.pipeline-card:hover, .pipeline-card.active-pipeline {
  border-color: var(--accent-cyan);
  background: rgba(0, 230, 184, 0.08);
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: var(--accent-cyan);
}

.faq-question {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 0.92rem;
  flex: 1;
  margin-left: 12px;
  font-weight: 600;
}

.q-icon {
  background: rgba(0, 230, 184, 0.1);
  color: var(--accent-cyan);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: bold;
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px 20px;
}

/* Contact & Banner */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 25px;
  margin-bottom: 30px;
}

.contact-info-card, .contact-form-card {
  border-radius: 12px;
  padding: 30px;
}

.contact-info-card h3, .contact-form-card h3 {
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.info-text strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.info-text a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.88rem;
}

.info-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-icons a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--accent-cyan);
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
}

#send-msg-btn {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

#send-msg-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 230, 184, 0.3);
}

.demo-banner {
  border-radius: 12px;
  padding: 25px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-badge-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-box {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 6px 16px;
  font-weight: bold;
  border-radius: 4px;
}

.pointer-hand {
  font-size: 1.5rem;
}

.demo-text h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.demo-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

#request-demo-action-btn {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

#request-demo-action-btn:hover {
  transform: scale(1.03);
}

/* ==========================================
   6. FOOTER
   ========================================== */
.site-footer {
  padding: 60px 0 40px 0;
  border-top: 1px solid var(--border-card);
  background: rgba(2, 7, 8, 0.95);
}

.footer-box {
  border-radius: 16px;
  padding: 40px;
}

.footer-brand {
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 145px !important; /* 🟢 ফুটারের লোগোর সাইজ স্পষ্ট দেখার জন্য বাড়িয়ে দেওয়া হলো */
  width: auto !important;
  object-fit: contain !important;
}

.brand-name {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.footer-links, .footer-contact-list {
  list-style: none;
}

.footer-links li, .footer-contact-list li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.footer-contact-list a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.footer-divider {
  height: 1px;
  background: var(--border-card);
  margin: 30px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-card {
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s;
}

.social-card:hover {
  border-color: var(--accent-cyan);
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-text strong {
  color: var(--text-main);
}

.retina-scanner-box {
  width: 55px;
  height: 55px;
  border: 1px dashed var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 8px;
  background: rgba(0, 230, 184, 0.05);
}

/* ==========================================
   7. RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 992px) {
  .features-grid, .faq-grid, .metrics-grid { 
    grid-template-columns: 1fr; 
  }
  .research-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .contact-grid { 
    grid-template-columns: 1fr; 
  }
  .footer-columns { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .hero-section { 
    flex-direction: column; 
    text-align: center; 
  }
  .demo-banner, .footer-bottom { 
    flex-direction: column; 
    gap: 20px; 
    text-align: center; 
  }
}