/* ==========================================================================
   ARTH COMPUTER - BRAND DESIGN SYSTEM & MODERN SAAS STYLESHEET
   Global EdTech Aesthetics, Accessibility, Core Web Vitals Optimized
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Color Tokens */
  --arth-primary-900: #0F172A;
  --arth-primary-800: #1E293B;
  --arth-primary-700: #334155;
  --arth-blue-600: #2563EB;
  --arth-blue-700: #1D4ED8;
  --arth-blue-500: #3B82F6;
  --arth-cyan-500: #06B6D4;
  --arth-cyan-400: #22D3EE;
  --arth-emerald-500: #10B981;
  --arth-emerald-600: #059669;
  --arth-amber-500: #F59E0B;
  --arth-slate-100: #F8FAFC;
  --arth-slate-200: #E2E8F0;
  --arth-slate-300: #CBD5E1;
  --arth-slate-400: #94A3B8;
  --arth-slate-600: #475569;
  
  /* Gradients */
  --arth-grad-hero: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  --arth-grad-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --arth-grad-accent: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --arth-grad-card: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --arth-grad-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.18), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Base & Reset Enhancements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--arth-slate-100);
  color: var(--arth-primary-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy for SEO */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--arth-primary-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  color: var(--arth-slate-600);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

a {
  color: var(--arth-blue-600);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--arth-blue-700);
}

/* ==========================================================================
   INTERACTIVITY & MICRO-ANIMATION ENHANCEMENTS
   ========================================================================== */

.interactive-hover-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.interactive-hover-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.25), 0 0 20px rgba(6, 182, 212, 0.15);
  border-color: rgba(37, 99, 235, 0.4) !important;
}

.glow-btn-pulse {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-btn-pulse::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

.glow-btn-pulse:hover::after {
  transform: scale(1);
  opacity: 1;
}

.chat-widget-badge {
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.accordion-slide-enter {
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
}

/* Buttons System */
.btn-arth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.btn-arth-primary {
  background: var(--arth-grad-primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-arth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-arth-emerald {
  background: var(--arth-grad-accent);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-arth-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-arth-outline {
  background: transparent;
  color: var(--arth-primary-900) !important;
  border: 2px solid var(--arth-slate-300);
}

.btn-arth-outline:hover {
  border-color: var(--arth-blue-600);
  color: var(--arth-blue-600) !important;
  background: rgba(37, 99, 235, 0.04);
}

.btn-arth-dark {
  background: var(--arth-primary-900);
  color: #FFFFFF !important;
}

.btn-arth-dark:hover {
  background: var(--arth-primary-800);
  transform: translateY(-2px);
}

.btn-arth-sm { padding: 0.5rem 1.15rem; font-size: 0.875rem; }
.btn-arth-lg { padding: 1.1rem 2.25rem; font-size: 1.125rem; }

/* Navbar */
.arth-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--arth-slate-200);
  transition: all 0.3s ease;
}

.arth-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arth-logo-img {
  height: 48px;
  width: auto;
}

.arth-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.arth-nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--arth-primary-900);
  font-size: 0.98rem;
  position: relative;
  padding: 0.25rem 0;
}

.arth-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--arth-blue-600);
  transition: width 0.25s ease;
}

.arth-nav-link:hover::after, .arth-nav-link.active::after {
  width: 100%;
}

.arth-nav-link:hover, .arth-nav-link.active {
  color: var(--arth-blue-600);
}

.arth-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--arth-slate-300);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  color: var(--arth-primary-900);
}

@media (max-width: 900px) {
  .arth-mobile-toggle { display: block; }
  .arth-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--arth-slate-200);
    box-shadow: var(--shadow-xl);
  }
  .arth-nav-links.mobile-open {
    display: flex;
  }
}

/* ===== MOBILE HEADER BUTTON FIX ===== */
@media (max-width: 768px) {
  .arth-nav-container {
    padding: 0.6rem 0.85rem;
  }

  .arth-logo-img {
    height: 36px !important;
  }

  /* Keep Get Inquiry button single line, compact */
  .arth-nav-container .btn-arth-sm {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
  }

  .arth-mobile-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
}

/* Glassmorphism Card System */
.arth-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--arth-slate-200);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.arth-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.3);
}

.arth-glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
}

/* Badge Component */
.arth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arth-badge-blue { background: rgba(37, 99, 235, 0.1); color: var(--arth-blue-600); border: 1px solid rgba(37, 99, 235, 0.2); }
.arth-badge-emerald { background: rgba(16, 185, 129, 0.1); color: var(--arth-emerald-600); border: 1px solid rgba(16, 185, 129, 0.2); }
.arth-badge-gold { background: rgba(245, 158, 11, 0.1); color: var(--arth-amber-500); border: 1px solid rgba(245, 158, 11, 0.2); }

/* Floating Widgets & Sticky CTAs */
.arth-whatsapp-float {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #25D366;
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulseWhatsapp 2s infinite;
}

.arth-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.arth-sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.6rem 1.25rem;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb SEO Component */
.arth-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.9rem;
  color: var(--arth-slate-600);
  margin-bottom: 1.5rem;
}

.arth-breadcrumb li::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--arth-slate-400);
}

.arth-breadcrumb li:last-child::after {
  content: "";
}

.arth-breadcrumb a {
  color: var(--arth-slate-600);
}

.arth-breadcrumb a:hover {
  color: var(--arth-blue-600);
}

.arth-breadcrumb .active {
  color: var(--arth-primary-900);
  font-weight: 600;
}

/* FAQ Accordion Styling */
.arth-faq-item {
  border: 1px solid var(--arth-slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: #FFFFFF;
  overflow: hidden;
}

.arth-faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--arth-primary-900);
  text-align: left;
  cursor: pointer;
}

.arth-faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--arth-slate-600);
  display: none;
}

.arth-faq-item.active .arth-faq-answer {
  display: block;
}

/* Footer Styling & Animations */
.arth-footer {
  background: var(--arth-primary-900);
  color: var(--arth-slate-300);
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.arth-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563EB, #06B6D4, #FACC15, transparent);
  background-size: 200% 100%;
  animation: footerBorderGlow 4s linear infinite;
}

@keyframes footerBorderGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.arth-footer h4 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.arth-footer a {
  color: var(--arth-slate-400);
  display: inline-block;
  margin-bottom: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.arth-footer a:hover {
  color: #38BDF8 !important;
  transform: translateX(6px);
}

.footer-consult-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.footer-consult-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25), 0 0 20px rgba(6, 182, 212, 0.15);
}

/* Layout Utilities */
.arth-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.arth-section {
  padding: 5rem 0;
}

.arth-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.arth-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.arth-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .arth-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .arth-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .arth-grid-4, .arth-grid-3, .arth-grid-2 { grid-template-columns: 1fr; }
  .arth-nav-links { display: none; }
  .arth-section { padding: 3rem 0; }

  .arth-sticky-bottom-bar {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
  }

  .arth-sticky-bottom-bar .sticky-bar-info {
    display: none !important;
  }

  .arth-sticky-bottom-bar .sticky-bar-actions {
    width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  .arth-sticky-bottom-bar .sticky-bar-actions button,
  .arth-sticky-bottom-bar .sticky-bar-actions a {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
    padding: 0.65rem 0.5rem !important;
    border-radius: 0.6rem !important;
  }

  .arth-whatsapp-float {
    bottom: 70px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
}

/* ==========================================================================
   BLOG & RICH TEXT IMAGE RESPONSIVE COMPATIBILITY FOR ALL DEVICES
   ========================================================================== */
img {
  max-width: 100%;
  height: auto;
}

/* Article & Blog Content Embedded Images */
.page-content-text img,
#standardArticleView img,
#real3dFlipbook img,
.my-page img,
.blog-content img,
.blog-post-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  object-fit: contain;
  clear: both;
}

/* Blog Featured Main Banner Image Container */
.blog-featured-media {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1));
  border: 1px solid var(--arth-slate-200, #E2E8F0);
  background-color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Media Query for Mobile & Tablet Image Compatibility */
@media (max-width: 768px) {
  .blog-featured-media {
    max-height: 260px;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg, 12px);
  }
  
  .page-content-text img,
  #standardArticleView img,
  #real3dFlipbook img,
  .my-page img {
    margin: 1rem auto;
    border-radius: var(--radius-sm, 6px);
  }
}

