:root {
  --primary-color: #0165f6;
  --secondary-color: #182844;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #6b7280;
  --background-light: #ffffff;
  --background-dark: #0a0f1e;
  --grey-bg: #f8fafc;
  --accent-gradient: linear-gradient(135deg, var(--primary-color), #0052cc);
  --spacing-8: 0.5rem;
  --spacing-16: 1rem;
  --spacing-24: 1.5rem;
  --spacing-32: 2rem;
  --spacing-48: 3rem;
  --spacing-64: 4rem;

  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--background-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo a:hover {
  opacity: 0.8;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* NAVIGATION MENU */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  z-index: 100;
}



.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-weight: 400;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(1, 101, 246, 0.1);
  color: var(--primary-color);
}

/* CTA BUTTON */
.cta-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
  display: inline-block;
}

.cta-btn:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

/* NAV ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hide mobile CTA on desktop */
.mobile-cta {
  display: none;
}

/* MOBILE STYLES */
@media (max-width: 992px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .logo-img {
    height: 28px;
  }

  /* Show hamburger */
  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  /* Mobile menu container */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-menu > li:last-child {
    border-bottom: none;
  }

  .nav-menu > li > a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 1rem;
  }

  /* MOBILE DROPDOWN */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(1, 101, 246, 0.03);
    padding: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0;
  }

  .dropdown-menu li {
    padding-left: 1rem;
    border-bottom: none;
  }

  .dropdown-menu a {
    padding: 0.7rem 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-gray);
  }

  .dropdown-menu a:hover {
    background: transparent;
    color: var(--primary-color);
  }



  /* Mobile CTA */
  .mobile-cta {
    display: block;
    margin-top: 1rem;
    border-bottom: none;
  }

  .mobile-cta .cta-btn {
    color:#fff;
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    display: block;
  }
}

/* DESKTOP DROPDOWN (hover only on desktop) */
@media (min-width: 993px) {
  .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .nav-container {
    padding: 0.875rem 1rem;
  }

  .logo-img {
    height: 26px;
  }

  .nav-menu {
    top: 55px;
    max-height: calc(100vh - 55px);
  }
  .blog-hero{
    margin-top: 60px !important;
  }
}


.blog-hero {
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(1, 101, 246, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.blog-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(1, 101, 246, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.blog-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.blog-hero p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
}


/* Hero Section */
.hero-section {
  margin-top: 80px;
  padding: var(--spacing-64) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(1, 101, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(24, 40, 68, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-16);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}



/* Main Content */
.main-content {
    padding: 64px 0;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet and up */
    }
}
.case-study-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.case-study-card:nth-child(1) { animation-delay: 0.1s; }
.case-study-card:nth-child(2) { animation-delay: 0.2s; }
.case-study-card:nth-child(3) { animation-delay: 0.3s; }
.case-study-card:nth-child(4) { animation-delay: 0.4s; }

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-study-card.hidden {
    display: none;
}

.case-study-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.industry-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    color: #0a2363;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.case-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.case-results {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.result-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2363;
    margin-bottom: 2px;
}

.result-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.case-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.case-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 50, 92, 0.3);
}


.case-study-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
/* Mobile optimizations */
@media (max-width: 767px) {

  .main-content {
    padding: 50px 0;
  }

  .case-studies-grid {
    gap: 24px;
    margin-bottom: 50px;
  }

  .case-study-image {
    height: 160px; /* reduce image height on mobile */
  }

  .case-content {
    padding: 20px;
  }

  .case-content h3 {
    font-size: 1.3rem;
  }

  .case-subtitle {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .case-description {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .case-results {
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .result-number {
    font-size: 1.4rem;
  }

  .result-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .case-btn {
    padding: 14px;
    font-size: 0.95rem;
  }

  /* Disable hover lift on touch devices */
  .case-study-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}





/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(1, 101, 246, 0.06),
    rgba(99, 102, 241, 0.04)
  );
  padding: 64px 0;
}

.cta-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
  margin-bottom: 40px;
}

.cta-container h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
}

.cta-container p {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* CTA Buttons */
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-primary {
  background: var(--primary-color);
  color: #fff;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(1, 101, 246, 0.35);
}

.cta-secondary {
  border: 2px solid rgba(1, 101, 246, 0.25);
  color: var(--primary-color);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: rgba(1, 101, 246, 0.08);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .cta-section {
    padding: 70px 20px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 320px;
    margin: auto;
  }
}






.footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  
  flex-direction: column;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}
.footer-description {
  max-width: 360px;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 10px;
}

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

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-16);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-32);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--grey-bg);
    margin-top: 0.5rem;
    border-radius: 8px;
  }

  .hero-section {
    padding: var(--spacing-48) 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .case-study-section {
    padding: var(--spacing-48) 0;
  }

  .case-study-header {
    padding: var(--spacing-32) var(--spacing-24);
  }

  .company-name {
    font-size: 2rem;
  }

  .case-title {
    font-size: 1.25rem;
  }

  .case-study-content {
    padding: var(--spacing-32) var(--spacing-24);
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-16);
  }

  .result-value {
    font-size: 2.5rem;
  }

  .cta-section {
    padding: var(--spacing-48) 0;
  }

  .cta-content h2 {
    font-size: 1.875rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-button-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .footer {
    padding: var(--spacing-48) 0 var(--spacing-24);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.875rem;
  }

  .company-name {
    font-size: 1.75rem;
  }

  .case-title {
    font-size: 1.125rem;
  }

  .result-value {
    font-size: 2rem;
  }

  .result-label {
    font-size: 0.875rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }
}


    .popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.popup-modal {
  background: #fff;
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

.popup-title {
  margin-bottom: 20px;
  text-align: center;
}

/* Form layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: span 2;
}

input, select, textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button[type="submit"] {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
}


.footer-newsletter {
  margin-top: 20px;
}

.newsletter-title {
  color: #fff !important;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  max-width: 320px;
  margin-bottom: 20px;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px;
  color: #333;
  font-size: 14px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #777;
}

.newsletter-btn {
  background: #0165f6 !important;
  border: none;
  width: 20% !important;
  border-radius: 6px;
  color: #111;
  font-size: 14px;
  height: 38px;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 0px !important;
}

.newsletter-btn:hover {
  background: #bbcbe2;
}

.success-state {
  display: none;
  color: #0165f6;
  margin-top: 15px;
  font-size: 14px;
}