/* ======================================================================
   MODERN DESIGN ENHANCEMENT v5.0
   Premium visual upgrades — appended to main style.css
   ====================================================================== */

/* Enhanced root tokens */
:root {
  --clr-bg:     #01060f;
  --clr-bg-2:   #040c1c;
  --clr-bg-3:   #071328;
  --clr-card:   rgba(4, 12, 28, 0.8);
}

/* Ambient mesh on body */
body {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%,   rgba(59,130,246,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6,214,160,0.05) 0%, transparent 60%),
    var(--clr-bg);
}

/* Hero: richer depth */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(139,92,246,0.08) 0%, transparent 60%),
    var(--clr-bg);
}

/* Navbar: sharper glass */
.navbar.scrolled {
  background: rgba(1, 6, 15, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(59,130,246,0.15), 0 4px 24px rgba(0,0,0,0.4);
  border-bottom-color: rgba(59,130,246,0.12);
}

/* Section title depth */
.section-title {
  letter-spacing: -0.8px;
  text-shadow: 0 0 60px rgba(59,130,246,0.15);
}

/* Service cards: glass + gradient border on hover */
.service-card {
  background: rgba(4, 12, 28, 0.7);
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(6,214,160,0.15), rgba(139,92,246,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.1);
}

/* Stats: glowing numbers */
.stat-number {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.3));
}

/* Stats bar enhanced */
.stats-bar {
  background: linear-gradient(90deg, #020810 0%, #060e1c 40%, #020810 100%);
  box-shadow: inset 0 1px 0 rgba(59,130,246,0.1), inset 0 -1px 0 rgba(59,130,246,0.1);
}

/* Why ITD cards */
.why-card {
  background: linear-gradient(135deg, rgba(4,12,28,0.9), rgba(6,14,32,0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.35s;
}
.why-card:hover::after { opacity: 1; }
.why-card:hover {
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(6,214,160,0.06);
}

/* Icon wrappers */
.why-card-icon {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,214,160,0.08));
  border: 1px solid rgba(59,130,246,0.2);
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
  transition: box-shadow 0.35s;
}
.why-card:hover .why-card-icon {
  box-shadow: 0 4px 24px rgba(59,130,246,0.3);
}

/* Blog cards */
.blog-card {
  background: rgba(4, 12, 28, 0.8);
  border-color: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}
.blog-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
}

/* Testimonials */
.testimonial-card {
  background: linear-gradient(135deg, rgba(4,12,28,0.9), rgba(6,14,32,0.5));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.testimonial-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px rgba(59,130,246,0.08);
}

/* Partner logos */
.partner-logo-item {
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s ease;
}
.partner-logo-item:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 8px 24px rgba(59,130,246,0.12);
  transform: translateY(-3px);
}

/* Reference logo cards (white bg) */
.true-ref-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}
.true-ref-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #030d24 0%, #0a1f55 45%, #051228 100%);
}

/* Footer */
.footer {
  background: #000509;
}
.footer::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), var(--clr-accent), var(--clr-primary), transparent);
  opacity: 0.4;
}

/* Form inputs */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15), 0 0 20px rgba(59,130,246,0.1);
  background: rgba(59,130,246,0.04);
}

/* Submit button */
.submit-btn {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-d));
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
  transition: all 0.35s ease;
}
.submit-btn:hover {
  background: linear-gradient(135deg, var(--clr-primary-l), var(--clr-primary));
  box-shadow: 0 8px 30px rgba(59,130,246,0.5);
  transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #01060f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--clr-primary), var(--clr-accent));
  border-radius: 3px;
}

/* Check list */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-text);
  font-size: 0.93rem;
  font-weight: 500;
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), #059669);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(6,214,160,0.3);
}

/* Hero 3D card title */
.hero-card-title {
  text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.6);
  font-size: 1.75rem;
}

/* Service page hero overlay */
.service-hero-overlay {
  background: linear-gradient(to bottom, rgba(1,6,15,0.92) 0%, rgba(1,6,15,0.97) 100%);
}

/* Contact form glass */
.contact-form {
  background: rgba(4,12,28,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.office-card {
  background: rgba(4,12,28,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modal */
.modal-content {
  background: rgba(4,12,28,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,130,246,0.1);
}

/* Glass panel */
.glass-panel {
  background: rgba(4,12,28,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.glass-panel h3 {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Back to top */
.back-to-top {
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.3);
  box-shadow: 0 4px 16px rgba(6,214,160,0.15);
}
.back-to-top:hover {
  background: var(--clr-accent);
  box-shadow: 0 8px 24px rgba(6,214,160,0.4);
}

/* Hero trust badges */
.hero-trust-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  transition: all 0.3s;
}
.hero-trust-item:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
}

/* Industry cards */
.industry-card {
  background: linear-gradient(135deg, rgba(4,12,28,0.95), rgba(6,14,30,0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* About images */
.about-img {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.5s var(--ease-out-expo);
}
.about-img:hover { transform: scale(1.02); }

/* Cert badges */
.cert-badge {
  border-color: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}
.cert-badge:hover {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}

/* Gradient text utility */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label shadow */
.section-label {
  box-shadow: 0 2px 12px rgba(6,214,160,0.1);
}

/* Announcement bar */
.announcement-bar {
  background: linear-gradient(90deg, #030d28 0%, #0c2060 40%, #030d28 100%);
  border-bottom: 1px solid rgba(59,130,246,0.2);
}

/* Sticky lead bar */
.sticky-lead-bar {
  background: rgba(1,6,15,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(6,214,160,0.25);
}

/* Footer layout for 5 columns */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.5fr;
    gap: 1.5rem;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .service-card:hover { transform: translateY(-5px); }
  .why-card:hover { transform: translateY(-4px); }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
