/* ============================
  Template Name: ZKTeco Premium
  Description: High-End Access Control Landing Page
  Version: 2.0
=============================== */

/* ============================
  1. VARIABLES & RESET
=============================== */
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #0FC4A5; /* Turcoaz original păstrat ca accent secundar */
  --neon-cyan: #4cc9f0;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --light-gray: #f8fafc;
  --gradient-main: linear-gradient(135deg, #4361ee 0%, #4cc9f0 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-neon: 0 0 20px rgba(76, 201, 240, 0.4);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
  background-color: #fff;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ============================
  2. UTILITIES & ANIMATIONS
=============================== */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.floating-animate {
  animation: float 6s ease-in-out infinite;
}

/* Glow Effect */
.glow-on-hover {
  transition: all 0.3s ease;
}
.glow-on-hover:hover {
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
}

/* ============================
  3. BUTTONS
=============================== */
.main-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.main-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3f37c9 0%, #4361ee 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
  color: #fff;
}

.main-btn:hover::before {
  opacity: 1;
}

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

.hero-section .btn-outline {
  border-color: #fff;
  color: #fff;
}

.hero-section .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

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

/* ============================
  4. NAVBAR
=============================== */
.navbar-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar-brand h3 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
}

.navbar-nav .nav-item a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 10px 20px;
  font-size: 1rem;
  position: relative;
}

.navbar-nav .nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

.navbar-nav .nav-item a:hover::after,
.navbar-nav .nav-item a.active::after {
  width: 30px;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item a.active {
  color: #fff;
}

/* Sticky Navbar */
.sticky {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.sticky .navbar-brand h3 {
  color: var(--primary) !important;
}

.sticky .navbar-nav .nav-item a {
  color: var(--text-main);
}

.sticky .navbar-nav .nav-item a:hover,
.sticky .navbar-nav .nav-item a.active {
  color: var(--primary);
}

/* Header Alt (for documentation pages) */
.header-alt .navbar-brand h3 {
  color: var(--primary);
}

.header-alt .navbar-nav .nav-item a {
  color: var(--text-main);
}

.header-alt .navbar-nav .nav-item a:hover,
.header-alt .navbar-nav .nav-item a.active {
  color: var(--primary);
}

.header-alt .toggler-icon {
  background-color: var(--text-main);
}

/* Mobile Menu Fixes */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.toggler-icon {
  background-color: #fff;
}
.sticky .toggler-icon {
  background-color: var(--text-main);
}

/* ============================
  5. HERO SECTION
=============================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 100px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Geometric Background Shapes */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 25px;
  color: #fff;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* ============================
  6. FEATURES & SERVICES
=============================== */
.single-feature {
  padding: 40px 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  height: 100%;
}

.single-feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  font-size: 30px;
  text-align: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.single-feature:hover .feature-icon {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.single-feature h4 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.single-feature p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Benefit Card, Software Card & Process Card Specifics - Desktop (Side-by-side Layout) */
@media (min-width: 992px) {
  .benefit-card,
  .software-card,
  #process .single-feature {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 30px 20px !important;
  }

  .benefit-card .feature-icon,
  .software-card .feature-icon,
  #process .single-feature .feature-icon {
    margin: 0 20px 0 0 !important;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
  }

  .benefit-card .feature-content,
  .software-card .feature-content,
  #process .single-feature .feature-content {
    flex-grow: 1;
    text-align: left !important;
  }

  .benefit-card h4,
  .software-card h4,
  #process .single-feature h4 {
    margin-top: 0 !important;
    margin-bottom: 10px;
    font-size: 1.25rem;
  }

  .benefit-card p,
  .software-card p,
  #process .single-feature p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Lightbox */
#lightbox {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  backdrop-filter: blur(5px);
}

#lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  cursor: zoom-out;
  transition: transform 0.3s ease;
  object-fit: contain;
}

/* Benefit Card Specifics - Mobile (Stacked & Optimized) */
@media (max-width: 991px) {
  .benefit-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 25px 20px !important;
    margin-bottom: 20px; /* Add spacing between cards */
  }

  .benefit-card .feature-icon {
    margin: 0 auto 15px auto !important; /* Center icon */
  }

  .benefit-card .feature-content {
    text-align: center !important;
    width: 100%;
  }

  .benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .benefit-card p {
    font-size: 0.9rem;
  }
}

/* Software Card */
.software-card {
  text-align: center;
}

.software-card .feature-icon {
  margin: 0 auto 25px;
}

.btn-link-custom {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.btn-link-custom i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.btn-link-custom:hover i {
  transform: translateX(5px);
}

/* ============================
  7. PRICING SECTION
=============================== */
.pricing-section {
  background: #fff;
  position: relative;
}

.pricing-highlight {
  border: 2px solid var(--primary);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-main);
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================
  8. ABOUT/HARDWARE SECTION
=============================== */
.about-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}

.hardware-card {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  height: 100%;
  transition: all 0.3s ease;
}

.hardware-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.hardware-card h5 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.hardware-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================
  9. FOOTER
=============================== */
.footer {
  background: var(--dark-bg);
  padding: 80px 0 30px;
  color: #cbd5e1;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo h3 {
  color: #fff;
  font-size: 2rem;
}

.footer-desc {
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-social li {
  display: inline-block;
  margin-right: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

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

.footer-links ul li a {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
}

/* ============================
  10. RESPONSIVE
=============================== */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .navbar-collapse {
    background: #ffffff !important;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin-top: 15px;
  }
  
  .navbar-nav .nav-item a {
    color: #1e293b !important;
  }

  .navbar-nav .nav-item a:hover,
  .navbar-nav .nav-item a.active {
    color: var(--primary) !important;
  }
  
  /* Ensure toggler icon is visible on light backgrounds if not already handled */
  .header-alt .toggler-icon {
    background-color: #1e293b !important;
  }

  .hero-image {
    text-align: center;
    margin-top: 50px;
  }

  /* Header Overlap Fix for Documentation Pages - Mobile */
  .page-banner-section {
    padding-top: 120px; 
  }
}

/* Header Overlap Fix for Desktop (Documentation Pages) */
@media (min-width: 992px) {
  .page-banner-section {
    padding-top: 220px !important;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .pricing-highlight h1 {
    font-size: 2.5rem !important;
  }
}

/* ====================================
   MOBILE FIXES v2.8
   1. Menu Visibility
   2. Card Horizontal Layout
   3. Spacing Adjustments
   ==================================== */

/* 1. Mobile Menu Visibility */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
  }
  
  /* Force dark text for menu items on mobile */
  .navbar-nav .nav-item a {
    color: #1e293b !important;
    padding: 8px 0;
  }
  
  .navbar-nav .nav-item a:hover,
  .navbar-nav .nav-item a.active {
    color: #4361ee !important;
  }

  /* ROBUST HAMBURGER MENU VISIBILITY FIX */
  .navbar-toggler {
      background-color: #1e293b !important; /* Always dark background */
      border-radius: 4px;
      padding: 5px 8px;
      border: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-toggler .toggler-icon {
    background-color: #ffffff !important; /* Always white icon */
    display: block;
    width: 30px;
    height: 2px;
    margin: 6px 0;
  }

  /* Hide default toggler focus styles */
  .navbar-toggler:focus {
      box-shadow: none;
      outline: none;
  }
}

/* 2. Mobile Card Layout & Spacing */
@media (max-width: 991px) {
  /* Enforce 2 columns side-by-side structure constraints */
  .col-6 {
      width: 50% !important;
      padding-left: 4px !important;
      padding-right: 4px !important;
  }
  
  /* Restore container padding */
  .container {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }

  /* Generic horizontal layout for cards (Icon Left + Text Right) */
  .single-feature:not(.pricing-highlight):not(.client-feature-card), 
  .benefit-card,
  .software-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 8px 4px !important;
    height: 100% !important;
    min-height: 60px !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  /* Hardware Card Specific Layout: Image+Title Line 1, Text Line 2 */
  .hardware-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important; /* Allow wrapping */
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 8px 5px !important;
    height: 100% !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  /* Icon styling for horizontal cards */
  .single-feature .feature-icon,
  .benefit-card .feature-icon,
  .software-card .feature-icon {
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    margin-right: 6px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Special handling for Hardware card images */
  .hardware-card img {
      width: 30px !important;
      height: auto !important;
      display: inline-block !important;
      margin-right: 8px !important;
      margin-bottom: 0 !important;
      flex-shrink: 0;
  }

  /* Content styling */
  .single-feature .feature-content,
  .benefit-card .feature-content,
  .software-card .feature-content {
    flex-grow: 1;
    width: auto !important;
    min-width: 0;
  }

  /* Text styling for Horizontal Cards */
  .single-feature h4, 
  .benefit-card h4,
  .software-card h4 {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    line-height: 1.1 !important;
    text-align: left !important;
    margin-top: 0 !important;
  }

  /* Hardware Title styling */
  .hardware-card h5 {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    line-height: 1.1 !important;
    text-align: left !important;
    margin-top: 0 !important;
    flex: 1; /* Takes remaining space on line 1 */
    min-width: 0;
  }

  /* Paragraph styling */
  .single-feature p, 
  .benefit-card p,
  .software-card p {
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  /* Hardware Paragraph styling */
  .hardware-card p {
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    width: 100% !important; /* Force new line */
    margin-top: 4px !important;
    flex-basis: 100% !important;
  }
  
  /* Mobile Menu Visibility Fix - Absolute Force */
  .navbar-collapse {
      background-color: #ffffff !important;
  }
  .navbar-nav .nav-item a {
      color: #1e293b !important;
  }
  
  /* Reduce Section Title sizes on Mobile */
  .section-title h2 {
      font-size: 1.5rem !important; /* Reduced from default */
      margin-bottom: 10px !important;
  }
  .section-title p {
      font-size: 0.8rem !important;
  }

  /* Hero Section Mobile Fixes */
  .hero-content {
      text-align: center !important;
      padding-left: 10px;
      padding-right: 10px;
  }
  .hero-content h1 {
      font-size: 1.8rem !important; /* Slightly smaller for better fit */
  }
  .hero-content p {
      font-size: 0.9rem !important;
      margin-bottom: 20px !important;
  }
  
  .hero-content .main-btn {
      font-size: 0.8rem !important;
      padding: 10px 12px !important;
      height: 40px !important;
      line-height: 20px !important;
      margin-right: 5px !important; /* Override me-3 if possible or supplement it */
  }
  
  /* Override bootstrap me-3 on mobile for hero buttons if needed */
  .hero-content .d-flex .me-3 {
      margin-right: 5px !important;
  }
  
  .hero-content .d-flex {
      justify-content: center !important;
      gap: 5px !important;
  }
  
  .btn-link-custom {
      font-size: 0.6rem !important;
      margin-top: 2px;
      display: inline-block;
  }

  /* Reduce gap between columns ONLY for Homepage Grids */
  #process .row > [class*='col-'],
  #software .row > [class*='col-'],
  #hardware .row > [class*='col-'],
  #benefits .row > [class*='col-'] {
    padding-left: 4px;
    padding-right: 4px;
  }
  
  .container {
      padding-left: 15px;
      padding-right: 15px;
  }

  /* 3. Spacing Adjustments */
  #software {
      padding-bottom: 20px !important;
  }
  #benefits {
      padding-top: 20px !important;
  }
  #pricing {
      padding-top: 30px !important;
  }
  
  /* General padding reduction for mobile */
  .section-padding {
      padding-top: 60px;
      padding-bottom: 60px;
  }
  
  .pt-120 {
      padding-top: 60px !important;
  }
  .pb-120 {
      padding-bottom: 60px !important;
  }
}

/* 4. Pricing Cards Mobile Optimization */
@media (max-width: 767px) {
  .pricing-section .single-feature.pricing-highlight {
    padding: 20px !important; /* Drastically reduce padding */
  }

  .pricing-section .single-feature.pricing-highlight h3 {
    font-size: 1.3rem !important; /* Smaller title */
    margin-bottom: 5px !important;
  }

  .pricing-section .single-feature.pricing-highlight h1.gradient-text {
    font-size: 2.2rem !important; /* Smaller price */
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  .pricing-section .single-feature.pricing-highlight p.text-muted {
    font-size: 0.8rem !important;
    margin-bottom: 15px !important;
  }

  .pricing-section .single-feature.pricing-highlight ul li {
    font-size: 0.85rem !important; /* Compact list items */
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
  }

  .pricing-section .single-feature.pricing-highlight .badge {
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
    margin-bottom: 10px !important;
  }
  
  .pricing-section .single-feature.pricing-highlight .main-btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    height: auto !important;
    line-height: normal !important;
  }
}
