/* ============================================================
   CODESECURE.IN - VISUAL UPGRADE CSS
   Phase 3: Color System + Hero + Cards + Modern UI
   ============================================================ */

/* ---- 1. ENHANCED COLOR SYSTEM ---- */
:root {
  /* Vibrant Gradient Palette */
  --gradient-primary: linear-gradient(135deg, #052cff 0%, #00d4ff 50%, #66f4bf 100%);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #052cff 100%);
  --gradient-accent: linear-gradient(135deg, #7b61ff 0%, #00d4ff 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #ffb627 100%);
  --gradient-card-border: linear-gradient(135deg, #052cff, #66f4bf);
  --gradient-cta: linear-gradient(135deg, #052cff 0%, #7b61ff 100%);

  /* Glow Effects */
  --glow-blue: 0 0 20px rgba(5, 44, 255, 0.3);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-green: 0 0 20px rgba(102, 244, 191, 0.3);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* ---- 2. SMOOTH SCROLL PROGRESS BAR ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ---- 3. ENHANCED NAVIGATION ---- */
.home-header-section .navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}

.home-header-section .navbar.scrolled {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ---- 4. GLASSMORPHISM CARDS ---- */
.about-us-section-start .about-us-content {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border) !important;
  border-bottom: 3px solid transparent !important;
  border-image: var(--gradient-card-border) 1;
  border-image-slice: 0 0 1 0;
  border-radius: 12px !important;
  padding: 40px 30px 30px 35px !important;
  box-shadow: var(--glass-shadow) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
}

.about-us-section-start .about-us-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-us-section-start .about-us-content:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 60px rgba(5, 44, 255, 0.15), var(--glass-shadow) !important;
  border-bottom-color: transparent !important;
}

.about-us-section-start .about-us-content:hover::before {
  opacity: 1;
}

/* Fix: keep text visible on hover (override white-on-white from style.css) */
.about-us-section-start .about-us-content:hover h4 {
  background: linear-gradient(135deg, #052cff 0%, #1a3a8f 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #052cff !important;
}

.about-us-section-start .about-us-content:hover h3 {
  background: linear-gradient(135deg, #052cff 0%, #00a3cc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ---- 5. ENHANCED ICON BOXES ---- */
.about-us-section-start .about-us-content .icons-rounded-box {
  background: var(--gradient-primary) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  box-shadow: 0 4px 15px rgba(5, 44, 255, 0.3);
  transition: all 0.3s ease;
}

.about-us-section-start .about-us-content:hover .icons-rounded-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(5, 44, 255, 0.4);
}

/* ---- 6. ENHANCED STATISTICS BOXES ---- */
.cyber-boxes-section .about-us-content {
  background: var(--glass-bg) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(5, 44, 255, 0.1);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease !important;
  text-align: center;
}

.cyber-boxes-section .about-us-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(5, 44, 255, 0.12);
  border-color: rgba(5, 44, 255, 0.3);
}

.cyber-boxes-section .counetr-heading {
  font-size: 48px !important;
  font-weight: 800 !important;
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.cyber-boxes-section .cyber-counter {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ---- 7. VIBRANT BUTTONS ---- */
.cyber-contact-btn a,
.order-now-btn a {
  background: var(--gradient-cta) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 36px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(5, 44, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.cyber-contact-btn a:hover,
.order-now-btn a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 44, 255, 0.4) !important;
  filter: brightness(1.1);
}

.cyber-contact-btn a::after,
.order-now-btn a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cyber-contact-btn a:hover::after,
.order-now-btn a:hover::after {
  left: 100%;
}

/* Learn More links */
.about-us-section-start .about-us-content a {
  color: #052cff !important;
  font-weight: 600 !important;
  position: relative;
  transition: all 0.3s ease;
}

.about-us-section-start .about-us-content a:hover {
  color: #7b61ff !important;
}

/* Override: pricing/CTA button links must stay white on gradient bg */
.about-us-section-start .about-us-content .order-now-btn a,
.about-us-section-start .about-us-content .cyber-contact-btn a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.about-us-section-start .about-us-content .order-now-btn a:hover,
.about-us-section-start .about-us-content .cyber-contact-btn a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.about-us-section-start .about-us-content a .forword-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.about-us-section-start .about-us-content a:hover .forword-arrow {
  transform: translateX(5px);
}

/* ---- 8. COLORFUL SECTION DIVIDERS ---- */
.about-us-section-start,
.cyber-security-section,
.pricing-plan-section {
  position: relative;
}

.about-us-section-2::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ---- 9. ENHANCED PRICING CARDS ---- */
.pricing-plan-section .about-us-content {
  background: var(--glass-bg) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(5, 44, 255, 0.08) !important;
  border-bottom: none !important;
  box-shadow: var(--glass-shadow) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
}

.pricing-plan-section .about-us-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.pricing-plan-section .about-us-content:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 25px 60px rgba(5, 44, 255, 0.15) !important;
  border-color: rgba(5, 44, 255, 0.2) !important;
}

/* Pricing card text — ensure visibility on white/glass background */
.pricing-plan-section .pricing-plan-h4 {
  background: linear-gradient(135deg, #052cff 0%, #1a3a8f 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
}

.pricing-plan-color {
  background: linear-gradient(135deg, #052cff 0%, #0066cc 50%, #004d99 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 800 !important;
}

.pricing-plan-section .pricing-free-text {
  color: #4a4a4a !important;
  -webkit-text-fill-color: #4a4a4a !important;
  font-weight: 600 !important;
}

.pricing-plan-section .pricing-content {
  color: #3a3a3a !important;
  -webkit-text-fill-color: #3a3a3a !important;
  font-weight: 400 !important;
  line-height: 35px !important;
}

/* Pricing card hover — keep text dark on white glass cards */
.pricing-plan-section .about-us-content:hover h3,
.pricing-plan-section .about-us-content:hover h4,
.pricing-plan-section .about-us-content:hover .pricing-plan-h4 {
  background: linear-gradient(135deg, #052cff 0%, #1a3a8f 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.pricing-plan-section .about-us-content:hover .pricing-plan-color {
  background: linear-gradient(135deg, #052cff 0%, #0066cc 50%, #004d99 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Pricing button — keep gradient on hover, prevent white bg override */
.pricing-plan-section .order-now-btn a {
  background: var(--gradient-cta) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
}

.pricing-plan-section .about-us-content:hover .order-now-btn a {
  background: var(--gradient-cta) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ---- 10. COMPANY LOGOS (always visible, no fade) ---- */
.logo-box {
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 12px;
}

.logo-box:hover {
  background: rgba(5, 44, 255, 0.05);
  transform: scale(1.05);
}

.logo-box img {
  filter: none !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

/* ---- 11. FAQ ACCORDION ENHANCEMENT ---- */
.accordian-section .accordion-card {
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(5, 44, 255, 0.1) !important;
  transition: all 0.3s ease;
}

.accordian-section .accordion-card:hover {
  border-color: rgba(5, 44, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(5, 44, 255, 0.08);
}

.accordian-section .faq-btn-text {
  transition: color 0.3s ease;
}

/* ---- 12. FOOTER ENHANCEMENT ---- */
.footer-section {
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

/* ---- 13. BACK TO TOP BUTTON ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(5, 44, 255, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(5, 44, 255, 0.4);
}

/* ---- 14. SMOOTH ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(5, 44, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(5, 44, 255, 0.4); }
}

/* ---- 15. HERO BANNER GRADIENT MESH ---- */
.banner-section {
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 44, 255, 0.15) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.banner-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 244, 191, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* ---- 16. CONTACT SECTION ENHANCEMENT ---- */
.contact-section .about-us-content,
.contact-section .contact-form {
  border-radius: 16px;
}

.contact-section input:focus,
.contact-section textarea:focus,
.contact-section select:focus {
  border-color: #052cff !important;
  box-shadow: 0 0 0 3px rgba(5, 44, 255, 0.1) !important;
  outline: none;
}

/* ---- 17. SELECTION COLOR ---- */
::selection {
  background: rgba(5, 44, 255, 0.15);
  color: #052cff;
}

/* ---- 18. LINK HOVER UNDERLINE ANIMATION ---- */
.footer-section a,
.navbar a {
  position: relative;
}

/* ---- 19. PAGE HERO SECTIONS (inner pages) ---- */
/* Hero gradient — match main pages (.home-header-section) dark theme for consistency */
.hero {
  position: relative;
  overflow: visible;
  min-height: auto;
  background: linear-gradient(115deg, #000000, #669af4) !important;
  animation: gradientShift 9s infinite;
}

/* Reset header/navbar inside hero — prevent hero styles from cascading into nav */
.hero > div:first-child,
.hero header,
.hero .main-header,
.hero .navbar {
  text-align: left;
}

.hero .navbar .nav-link {
  font-size: 16px !important;
}

/* Hero content — match main page h1 size (.about-h1 = 50px in style.css) */
.hero h1 {
  font-size: 50px !important;
  line-height: 55px !important;
  font-weight: 600 !important;
  letter-spacing: -1px;
  word-spacing: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  margin-bottom: 24px;
}

/* Hero p — match main page banner paragraph style */
.hero p {
  color: #fff !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.hero .about-text-color {
  color: rgba(255,255,255,0.8) !important;
}

/* Blog/service detail h3 headings — smaller, readable size (skip .trustedBy) */
.hero ~ section h3:not(.trustedBy),
.hero ~ .cyber-security-section h3:not(.trustedBy) {
  font-size: 26px;
  line-height: 34px;
}

/* Fix: inner page content sections — proper text alignment and restore original padding */
.hero ~ section.cyber-security-section,
.hero ~ section.cyber-security-section2 {
  text-align: left;
  padding: 8vh 0 0px !important;
}

/* Images — override fixed pixel widths from mobile.css, fill container */
.cyber-security-section .cyber-security-provider-img,
.cyber-security-section .cyber-content-img figure img,
.cyber-security-section .cyber-content-img-right figure img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 8px;
}

/* Image containers — ensure they match the main page layout */
.hero ~ .cyber-security-section .cyber-content-img,
.hero ~ .cyber-security-section2 .cyber-content-img {
  margin-top: -63px;
}

.hero ~ .cyber-security-section .cyber-content-img-right,
.hero ~ .cyber-security-section2 .cyber-content-img-right {
  margin-top: -63px;
  padding-left: 30px;
}

/* Note: harmful footer <style> block (a { color: #f1f6fd; font-size: small; })
   was removed from all 91 pages — no longer needs CSS override */


/* ---- 20. ENHANCED SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f6fd;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #052cff, #66f4bf);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0420cc, #52d4a0);
}

/* ---- 21. COOKIE CONSENT BAR ENHANCEMENT ---- */
#cookieConsentBox {
  border-radius: 16px !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- 22. ACCESSIBILITY: FOCUS-VISIBLE STATES ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #052cff !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(5, 44, 255, 0.15) !important;
}

.navbar a:focus-visible {
  outline-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
}

.footer-section a:focus-visible {
  outline-color: #66f4bf !important;
  box-shadow: 0 0 0 4px rgba(102, 244, 191, 0.2) !important;
}

/* Screen-reader only helper class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- 23. FORM VALIDATION VISUAL FEEDBACK ---- */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.03) !important;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: #66f4bf !important;
  background: rgba(102, 244, 191, 0.03) !important;
}

/* ---- 24. ENHANCED SERVICE/SOLUTION CARDS ---- */
.Services-About-us-Section .about-us-content,
.about-us-section-2 .about-us-content {
  position: relative;
  overflow: hidden;
}

.Services-About-us-Section .about-us-content::after,
.about-us-section-2 .about-us-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.Services-About-us-Section .about-us-content:hover::after,
.about-us-section-2 .about-us-content:hover::after {
  transform: scaleX(1);
}

/* ---- 25. TESTIMONIAL CARDS ENHANCEMENT ---- */
.clients-section .clients-outer-box {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
}

.clients-section .clients-outer-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(5, 44, 255, 0.12);
  border-color: rgba(5, 44, 255, 0.2) !important;
}

/* ---- 26. BLOG CARDS ENHANCEMENT ---- */
.blogs-section-starts .blogs-section {
  background: #fff !important;
  border: 1px solid rgba(5, 44, 255, 0.08) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.blogs-section-starts .blogs-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(5, 44, 255, 0.12);
  border-color: rgba(5, 44, 255, 0.15) !important;
}

/* ---- 27. SKIP TO CONTENT LINK ---- */
.skip-to-content {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  z-index: 99999;
  transition: top 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 44, 255, 0.3);
  opacity: 0;
  pointer-events: none;
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 0;
  opacity: 1;
  pointer-events: auto;
  outline: none;
}

/* Section 28 removed — visual breadcrumbs removed per user request */
