/* ===== CSS VARIABLES ===== */
:root {
  /* Colors from Cooverly logo palette */
  --primary-blue: #1E90FF;
  --secondary-purple: #8A2BE2;
  --accent-orange: #FF8C00;
  --gradient-primary: linear-gradient(135deg, #1E90FF 0%, #8A2BE2 50%, #FF8C00 100%);
  --gradient-secondary: linear-gradient(135deg, #4169E1 0%, #9932CC 100%);
  --gradient-accent: linear-gradient(135deg, #FF8C00 0%, #FF6347 100%);
  --almost-white: #FEFEFE;
  --almost-black: #1A1A1A;
  
  /* Additional utility colors */
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --border-color: #E9ECEF;
  
  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-max-width: 1200px;
  --border-radius: 16px;
  --border-radius-large: 20px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--almost-black);
  background-color: var(--almost-white);
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--medium-gray);
}

/* ===== UTILITIES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-primary {
  color: var(--primary-blue);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--almost-black);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -2px;
  border-radius: inherit;
  background: var(--gradient-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 144, 255, 0.3);
  filter: brightness(1.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gradient-secondary);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: white;
  border-color: var(--secondary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline:hover::before {
  left: 0;
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  border: 2px solid transparent;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
  filter: brightness(1.1);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0.75rem 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar.scrolled {
    padding: 0.4rem 0;
  }
  
  .navbar.scrolled .nav-brand .logo {
    height: 45px;
  }
}

.navbar.scrolled {
  background: rgba(254, 254, 254, 0.98);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
}

.navbar.scrolled .nav-brand .logo {
  height: 55px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand a {
  display: inline-block;
  text-decoration: none;
}

.nav-brand .logo {
  height: 35px;
  width: auto;
  max-width: 120px;
  transition: var(--transition);
  /* Optimized for transparent gradient logo on white navbar */
  filter: 
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))
    contrast(1.05)
    brightness(1.0)
    saturate(1.1);
}

.nav-brand a:hover .logo {
  transform: scale(1.02);
  filter: 
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15))
    contrast(1.15)
    brightness(0.9);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--almost-black);
  transition: var(--transition-fast);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--almost-black);
  transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  z-index: 1;
}

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

.hero-title {
  color: white;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.trust-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.trust-point i {
  color: var(--accent-orange);
  font-size: 1.25rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.typing-container {
  font-size: 1.125rem;
  color: var(--accent-orange);
  font-weight: 600;
  text-align: center;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent-orange);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== WHY SECTION ===== */
.why-section {
  padding: var(--section-padding);
  background-color: var(--light-gray);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.why-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: 2rem;
  color: white;
}

.why-card h3 {
  color: var(--almost-black);
  margin-bottom: 1rem;
}

.why-card p {
  color: var(--medium-gray);
  line-height: 1.6;
}

.metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}

.metric-label {
  font-size: 1rem;
  color: var(--medium-gray);
  font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(30, 144, 255, 0.15);
  border-color: var(--primary-blue);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: white;
}

.service-card h3 {
  color: var(--almost-black);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  padding: 0.5rem 0;
  color: var(--medium-gray);
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: '•';
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== USE CASES SECTION ===== */
.use-cases-section {
  padding: var(--section-padding);
  background-color: var(--light-gray);
}

.use-cases-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  background: white;
  color: var(--medium-gray);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.use-case-card i {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.use-case-card h3 {
  color: var(--almost-black);
  margin-bottom: 1rem;
}

.use-case-card p {
  color: var(--medium-gray);
  line-height: 1.6;
}

/* ===== PROCESS SECTION ===== */
.process-section {
  padding: var(--section-padding);
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 70px;
  width: 2px;
  height: calc(100% + 1rem);
  background: linear-gradient(to bottom, var(--primary-blue), transparent);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.step-content h3 {
  color: var(--almost-black);
  margin-bottom: 0.75rem;
}

.step-content p {
  color: var(--medium-gray);
  line-height: 1.6;
}

.process-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ===== TECH SECTION ===== */
.tech-section {
  padding: var(--section-padding);
  background-color: var(--light-gray);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tech-category {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.tech-category h3 {
  color: var(--almost-black);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: var(--gradient-secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.tech-tag:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}


/* ===== CAL SECTION ===== */
.cal-section {
  padding: var(--section-padding);
  background-color: var(--light-gray);
}

.cal-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 600px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--section-padding);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--light-gray);
}

.faq-question h3 {
  color: var(--almost-black);
  font-size: 1.125rem;
  margin: 0;
}

.faq-question i {
  color: var(--primary-blue);
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  color: var(--medium-gray);
  line-height: 1.6;
  margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: var(--section-padding);
  background-color: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-card i {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.contact-card h3 {
  color: var(--almost-black);
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.contact-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

.contact-link:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  max-width: 100px;
  /* Optimized for transparent gradient logo on dark footer */
  filter: 
    drop-shadow(0 2px 6px rgba(255, 255, 255, 0.1))
    contrast(1.1)
    brightness(1.05)
    saturate(1.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-strong);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  animation: none;
  filter: brightness(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}

/* ===== SMART LOGO ADAPTATION ===== */

/* Hero and Section logos removed - keeping only navbar and footer logos */

/* CSS technique to create logo text overlay for better visibility */
.logo-container {
  position: relative;
  display: inline-block;
}

/* Create a pseudo-element for background adaptation when needed */
.logo-container::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -10px;
  right: -10px;
  bottom: -5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Activate background for better contrast on dark hero */
.hero .logo-container::before {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* Advanced logo visibility techniques */
@supports (mix-blend-mode: multiply) {
  .logo-dark-bg {
    mix-blend-mode: screen;
    filter: invert(0) contrast(1.2) brightness(1.1);
  }
  
  .logo-light-bg {
    mix-blend-mode: multiply;
    filter: invert(0) contrast(1.3) brightness(0.9);
  }
}

/* High contrast adaptation for logos */
@media (prefers-contrast: high) {
  .logo, .footer-logo {
    filter: contrast(1.5) brightness(1.1) !important;
  }
  
  .nav-brand .logo {
    filter: contrast(1.6) brightness(0.8) !important;
  }
}

/* Dark mode logo adaptations */
@media (prefers-color-scheme: dark) {
  .nav-brand .logo {
    filter: 
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.2))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
      contrast(1.1)
      brightness(1.2);
  }
}

/* Motion-reduced logo */
@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
  
  .logo, .footer-logo {
    transition: none;
  }
}

/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-brand .logo {
    height: 30px;
    max-width: 100px;
    /* Enhanced mobile visibility for transparent logo */
    filter: 
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12))
      contrast(1.2)
      brightness(0.95);
  }
  
  .hero-logo {
    height: 35px;
    max-width: 120px;
  }
  
  .section-logo {
    height: 55px;
    max-width: 200px;
  }
  
  .footer-logo {
    height: 50px;
    max-width: 180px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    gap: 1rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-cta {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-cta .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .nav-cta .btn .btn-text {
    display: inline;
  }
  
  .nav-cta .btn i {
    font-size: 1.1rem;
    margin-right: 0.3rem;
  }
  
  .btn-desktop-only {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .trust-points {
    flex-direction: column;
    gap: 1rem;
  }
  
  .metrics {
    flex-direction: column;
    gap: 2rem;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  .use-cases-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 600px) {
  .nav-cta .btn .btn-text {
    display: none;
  }
  
  .nav-cta .btn {
    padding: 8px 12px;
    min-width: 44px;
  }
  
  .nav-cta .btn i {
    font-size: 1rem;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-brand .logo {
    height: 50px;
    max-width: 160px;
    /* Maximum contrast for small screens */
    filter: 
      drop-shadow(0 0 0 transparent)
      drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15))
      contrast(1.3)
      brightness(0.88);
  }
  
  /* Hero and section logos removed - keeping only navbar and footer */
  
  .footer-logo {
    height: 25px;
    max-width: 85px;
    /* Mobile footer logo optimization */
    filter: 
      drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25))
      contrast(1.1)
      brightness(1.05);
  }
  
  .navbar .container {
    padding: 0 12px;
  }
  
  .nav-cta .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 40px;
    justify-content: center;
  }
  
  .nav-cta .btn .btn-text {
    display: none;
  }
  
  .nav-cta .btn i {
    font-size: 1rem;
    margin: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .why-card,
  .service-card,
  .use-case-card,
  .contact-card {
    padding: 1.5rem;
  }
}

/* ===== ADDITIONAL LOGO UTILITIES ===== */
.logo-hero {
  text-align: center;
  margin-bottom: 2rem;
}
    contrast(1.3)
    brightness(0.85);
}

/* Removed duplicate hero-logo definition - using the main one at line 1018 */

/* Removed duplicate section-logo definition - using the main one */

/* Removed duplicate footer-logo definition - using the main one */

.logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

/* Logo in CTA sections (dark background) */
.services-cta .section-logo,
.use-cases-cta .section-logo,
.process-cta .section-logo,
.tech-cta .section-logo,
.faq-cta .section-logo {
  /* Enhanced for dark gradient backgrounds */
  filter: 
    drop-shadow(0 0 0 transparent)
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25))
    contrast(1.2)
    brightness(1.15);
}

/* Logo for light section backgrounds */
.why-section .section-logo,
.use-cases-section .section-logo,
.tech-section .section-logo {
  /* Optimized for light gray backgrounds */
  filter: 
    drop-shadow(0 0 0 transparent)
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12))
    contrast(1.18)
    brightness(0.95);
}

/* Scrolled navbar logo adjustment */
.navbar.scrolled .nav-brand .logo {
  height: 60px;
  /* Slightly more contrast when scrolled for better visibility */
  filter: 
    drop-shadow(0 0 0 transparent)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12))
    contrast(1.25)
    brightness(0.88);
}

/* ===== 3D ANIMATIONS ===== */
.animate-3d {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.animate-3d:hover {
  transform: rotateY(15deg) rotateX(5deg) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float3d {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg);
  }
  33% {
    transform: translateY(-5px) rotateX(2deg);
  }
  66% {
    transform: translateY(5px) rotateX(-2deg);
  }
}

.service-icon .animate-3d {
  animation: float3d 4s ease-in-out infinite;
}

/* ===== PAGE-SPECIFIC STYLES ===== */
.hero-page {
  padding: 140px 0 60px;
  min-height: 60vh;
}

.hero-page .hero-content {
  max-width: 800px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ===== DETAILED SERVICE CARDS ===== */
.services-detailed .service-card {
  padding: 2.5rem;
  background: white;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-detailed .service-description {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.service-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.benefit i {
  color: var(--primary-blue);
  font-size: 0.8rem;
}

/* ===== DETAILED USE CASES ===== */
.use-case-detailed {
  padding: 2.5rem;
  background: white;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--primary-blue);
  transition: var(--transition);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.case-header i {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.industry, .size {
  background: var(--gradient-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.case-challenge, .case-solution {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.result {
  text-align: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
}

.result-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}

.result-text {
  font-size: 0.8rem;
  color: var(--medium-gray);
  font-weight: 500;
}

/* ===== DETAILED PROCESS STEPS ===== */
.process-detailed-step {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.step-description {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.step-details h4 {
  color: var(--almost-black);
  margin: 1.5rem 0 1rem;
  font-size: 1rem;
}

.step-details ul {
  margin-bottom: 1.5rem;
}

.step-details li {
  padding: 0.5rem 0;
  color: var(--medium-gray);
  position: relative;
  padding-left: 1.5rem;
}

.step-details li::before {
  content: '→';
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.step-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.deliverable {
  background: var(--gradient-secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== TECH DETAILED STYLES ===== */
.tech-detailed-category {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-header i {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-description {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.tech-detailed-tag {
  background: white;
  border: 2px solid var(--primary-blue);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.tech-detailed-tag:hover {
  background: var(--gradient-secondary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

.tag-name {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tag-description {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== FAQ DETAILED STYLES ===== */
.faq-detailed {
  padding: var(--section-padding);
}

.faq-categories {
  max-width: 900px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--almost-black);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.faq-category h3 i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CONTACT DETAILED STYLES ===== */
.contact-detailed-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.contact-detailed-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon i {
  font-size: 2rem;
  color: white;
}

.contact-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.benefit-tag {
  background: var(--light-gray);
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-info-section {
  padding: 3rem 0;
  background: var(--light-gray);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.info-card i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.info-card h4 {
  color: var(--almost-black);
  margin-bottom: 1rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CTA SECTIONS ===== */
.services-cta,
.use-cases-cta,
.process-cta,
.tech-cta,
.faq-cta {
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
  border-radius: var(--border-radius-large);
  color: white;
}

.services-cta h2,
.use-cases-cta h2,
.process-cta h2,
.tech-cta h2,
.faq-cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.services-cta p,
.use-cases-cta p,
.process-cta p,
.tech-cta p,
.faq-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ===== ACTIVE NAV LINK ===== */
.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.contact-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High contrast support */
/* ===== LOGO PROFESSIONAL ADAPTATIONS ===== */

/* Navbar scrolled state logo optimization */
.navbar.scrolled .nav-brand .logo {
  /* Enhanced visibility on scrolled white navbar */
  filter: 
    drop-shadow(0 0 0 transparent)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15))
    contrast(1.3)
    brightness(0.85);
}

/* CTA sections logo optimization */
.services-cta .logo-container,
.use-cases-cta .logo-container,
.process-cta .logo-container,
.tech-cta .logo-container,
.faq-cta .logo-container {
  position: relative;
}

.services-cta .logo-container::after,
.use-cases-cta .logo-container::after,
.process-cta .logo-container::after,
.tech-cta .logo-container::after,
.faq-cta .logo-container::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -12px;
  right: -12px;
  bottom: -8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  z-index: -1;
}

/* Footer logo specific optimization */
.footer .footer-logo {
  /* Enhanced for dark footer gradient */
  filter: 
    drop-shadow(0 0 0 transparent)
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25))
    contrast(1.15)
    brightness(1.1);
}

/* Hero page logos optimization */
.hero-page .hero-logo {
  /* Enhanced for page-specific hero sections with transparent logo */
  filter: 
    drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2))
    contrast(1.25)
    brightness(1.1)
    saturate(1.1);
}

/* Interactive logo hover states */
.nav-brand a:hover .logo,
.logo-container:hover .hero-logo,
.logo-container:hover .section-logo {
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Prevent blur on scaled logos */
.logo, .footer-logo {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  transform-style: preserve-3d;
}

@media (prefers-contrast: high) {
  :root {
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.5);
  }
  
  /* Maximum contrast for logos in high contrast mode */
  .logo, .footer-logo {
    filter: contrast(2) brightness(1.2) saturate(1.5) !important;
  }
}