/* ============================================
   AIpros - Dark Theme Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #111827;
  --bg-card: #1E293B;
  --bg-card-hover: #263549;
  --cyan: #00D4FF;
  --purple: #7C3AED;
  --gradient: linear-gradient(135deg, #00D4FF, #7C3AED);
  --gradient-reverse: linear-gradient(135deg, #7C3AED, #00D4FF);
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #33DDFF; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: #fff; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

img { max-width: 100%; height: auto; }

section { padding: 100px 0; }

.text-cyan { color: var(--cyan) !important; }
.text-purple { color: var(--purple) !important; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-dark-section { background: var(--bg-secondary); }

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
.preloader.loaded { opacity: 0; pointer-events: none; }
.spinner {
  width: 50px; height: 50px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Navbar --- */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent !important;
}
.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.brand-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.brand-accent { color: var(--cyan); }
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--cyan) !important;
}
.navbar .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.5rem 0;
  box-shadow: var(--shadow-card);
}
.navbar .dropdown-item {
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  transition: var(--transition);
}
.navbar .dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
}
.navbar .dropdown-divider { border-top-color: var(--border-color); }

/* --- Buttons --- */
.btn-glow {
  background: var(--gradient);
  color: #fff !important;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-glow.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-glow.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-outline-glow {
  background: transparent;
  color: var(--cyan) !important;
  border: 2px solid var(--cyan);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-glow:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* --- Section Titles --- */
.section-label {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}
.section-subtitle.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

/* --- Service Card --- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}
.service-card .icon-wrap {
  width: 70px; height: 70px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: #fff;
  transition: var(--transition);
}
.service-card:hover .icon-wrap { transform: scale(1.1); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; }
.service-card .card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
}
.service-card .card-link i { margin-left: 4px; transition: var(--transition); }
.service-card:hover .card-link i { transform: translateX(4px); }

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-section .typed-cursor { color: var(--cyan); font-weight: 300; }
.hero-section p { font-size: 1.2rem; max-width: 550px; }
.hero-buttons { margin-top: 2rem; }
.hero-buttons .btn { margin-right: 1rem; margin-bottom: 0.5rem; }
.hero-image { position: relative; }
.hero-image img { border-radius: 20px; }

/* Hero background image variant */
.hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.92), rgba(17, 24, 39, 0.85));
}

/* --- Page Title / Banner --- */
.page-banner {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 2.75rem; margin-bottom: 0.75rem; }
.breadcrumb-custom {
  display: flex;
  list-style: none;
  padding: 0; margin: 0;
}
.breadcrumb-custom li {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.breadcrumb-custom li + li::before {
  content: '/';
  margin: 0 0.75rem;
  color: var(--text-muted);
}
.breadcrumb-custom a { color: var(--cyan); }

/* --- Stats / Counters --- */
.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.5rem; }

/* --- How It Works / Steps --- */
.step-item {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
.step-number {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
}
.step-item h4 { margin-bottom: 0.5rem; }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 0 15px;
}
.testimonial-card .stars { color: #FBBF24; margin-bottom: 1rem; }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}
.testimonial-author { display: flex; align-items: center; }
.testimonial-author .avatar {
  width: 48px; height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  margin-right: 1rem;
  flex-shrink: 0;
}
.testimonial-author .name { font-weight: 600; color: #fff; font-size: 0.95rem; }
.testimonial-author .role { font-size: 0.85rem; color: var(--text-muted); }

/* Slick slider overrides for dark theme */
.slick-dots li button:before { color: var(--text-muted); font-size: 10px; }
.slick-dots li.slick-active button:before { color: var(--cyan); }
.slick-prev, .slick-next { z-index: 10; }
.slick-prev:before, .slick-next:before { color: var(--cyan); font-size: 24px; }

/* --- Blog Card --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.blog-card .card-img {
  height: 220px;
  overflow: hidden;
}
.blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .card-img img { transform: scale(1.05); }
.blog-card .card-body { padding: 1.5rem; }
.blog-card .card-category {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.blog-card .card-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.blog-card h3 a { color: #fff; }
.blog-card h3 a:hover { color: var(--cyan); }
.blog-card .read-more {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-card .read-more i { margin-left: 4px; transition: var(--transition); }
.blog-card:hover .read-more i { transform: translateX(4px); }

/* --- Blog Single --- */
.blog-content {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.05rem;
}
.blog-content h2 { font-size: 1.75rem; margin: 2rem 0 1rem; color: #fff; }
.blog-content h3 { font-size: 1.35rem; margin: 1.75rem 0 0.75rem; color: #fff; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content blockquote {
  border-left: 4px solid var(--cyan);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.blog-content strong { color: #fff; }
.blog-content a { color: var(--cyan); }
.blog-content a:hover { text-decoration: underline; }

/* --- CTA Banner --- */
.cta-section {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: pulse-slow 8s ease-in-out infinite;
}
@keyframes pulse-slow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; position: relative; }
.cta-section p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; position: relative; }
.cta-section .btn {
  background: #fff;
  color: var(--bg-primary) !important;
  font-weight: 700;
  position: relative;
}
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* --- Contact Form --- */
.contact-form .form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-form .form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  background: var(--bg-card);
  color: var(--text-primary);
}
.contact-form .form-control::placeholder { color: var(--text-muted); }
.contact-form select.form-control { appearance: auto; }
.contact-form textarea.form-control { min-height: 150px; resize: vertical; }

/* --- Service Single Page --- */
.service-sidebar {
  position: sticky;
  top: 100px;
}
.service-sidebar .sidebar-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.service-sidebar .sidebar-menu ul { list-style: none; padding: 0; margin: 0; }
.service-sidebar .sidebar-menu li { margin-bottom: 0.25rem; }
.service-sidebar .sidebar-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
}
.service-sidebar .sidebar-menu a:hover,
.service-sidebar .sidebar-menu a.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
}
.sidebar-contact {
  background: var(--gradient);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}
.sidebar-contact h4 { color: #fff; margin-bottom: 0.75rem; }
.sidebar-contact p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.sidebar-contact .btn { background: #fff; color: var(--bg-primary) !important; margin-top: 1rem; }

/* Feature list on service pages */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: '\e64c';
  font-family: 'themify';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.8rem;
}

/* Process steps on service pages */
.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.process-step .step-num {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  margin-right: 1rem;
  font-size: 0.9rem;
}
.process-step h5 { color: #fff; margin-bottom: 0.25rem; font-size: 1rem; }

/* Tech tags */
.tech-tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.25rem;
}

/* FAQ accordion */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
}
.faq-question:hover { color: var(--cyan); }
.faq-question i { transition: transform 0.3s; color: var(--cyan); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  display: none;
  line-height: 1.8;
}

/* --- Values / Feature Grid --- */
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}
.value-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
}
.value-card .icon {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
.footer-main { padding: 80px 0 40px; }
.footer-brand .brand-text { font-size: 1.5rem; }
.footer-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.footer-social a {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--text-secondary);
  margin-right: 0.5rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--gradient);
  color: #fff;
}
.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #fff;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-contact li i {
  color: var(--cyan);
  margin-right: 0.75rem;
  margin-top: 4px;
  min-width: 16px;
}
.footer-contact li a { color: var(--text-secondary); }
.footer-contact li a:hover { color: var(--cyan); }
.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.footer-bottom-links { list-style: none; padding: 0; margin: 0; }
.footer-bottom-links li { display: inline-block; margin-left: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 45px; height: 45px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }

/* --- 404 Page --- */
.error-section { min-height: 80vh; display: flex; align-items: center; }
.error-code {
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* --- Alerts (Contact Form) --- */
.alert { border-radius: 12px; border: none; padding: 1.25rem 1.5rem; }
.alert-success { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.alert-danger { background: rgba(239, 68, 68, 0.15); color: #F87171; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 2.5rem; }
  section { padding: 70px 0; }
  .page-banner { padding: 130px 0 60px; }
  .navbar-collapse {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
  }
  .navbar .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero-section { min-height: auto; padding: 120px 0 60px; }
  .hero-section h1 { font-size: 2rem; }
  .stat-number { font-size: 2.25rem; }
  .cta-section { padding: 60px 0; }
  .footer-main { padding: 60px 0 20px; }
}

@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.75rem; }
  .hero-buttons .btn { display: block; width: 100%; margin-right: 0; }
}
