@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
  --primary: #004AAD;
  --primary-hover: #003B8A;
  --dark-blue: #002352;
  --accent: #004AAD;
  --light-blue: #EBF3FF;
  --white: #FFFFFF;
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --yellow-dark: #CA8A04;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 74, 173, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 74, 173, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 74, 173, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --nav-height: 80px;
}

[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --dark-blue: #93C5FD;
  --accent: #60A5FA;
  --light-blue: #1E293B;
  --white: #1E293B;
  --bg-main: #0F172A;
  --bg-card: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #334155;
  --yellow-dark: #FBBF24;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.4);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
}

main {
  opacity: 0;
  transform: translateY(15px);
}

body.page-loaded main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-bg-alt {
  background-color: var(--light-blue);
  opacity: 0.95;
}

.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title.left-align::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.section-subtitle.left-align {
  margin-left: 0;
  margin-right: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  animation: pulseGlow 1.5s infinite;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary) !important;
}

.btn-white:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--light-blue);
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   LAYOUT: NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.85);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--text-main);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-contact,
.top-bar {
  display: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--light-blue);
  color: var(--primary);
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background-color: var(--primary);
  color: #ffffff;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* ==========================================
   COMPONENTS: HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 20px);
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(219, 234, 254, 0.4) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(219, 234, 254, 0.4) 0%, transparent 40%);
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
}

/* Floating Spheres */
.floating-sphere {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  filter: blur(40px);
  z-index: -1;
  animation: float 20s infinite alternate ease-in-out;
}

.sphere-1 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 5%;
}

.sphere-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 5%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-30px) rotate(90deg) scale(1.1); }
  100% { transform: translateY(0px) rotate(180deg) scale(1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span.typed-text {
  color: var(--primary);
  border-right: 3px solid var(--primary);
  padding-right: 4px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--primary); }
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-bg {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-blue) 100%);
  z-index: -1;
  animation: morphBlob 12s infinite alternate ease-in-out;
}

@keyframes morphBlob {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-img {
  width: 380px;
  height: 480px;
  object-fit: contain;
  transition: var(--transition-slow);
}

.hero-img:hover {
  transform: scale(1.03) translateY(-5px);
}

/* ==========================================
   COMPONENTS: SOCIAL PROOF / TICKER
   ========================================== */
.ticker-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--white);
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scrollTicker 25s linear infinite;
  gap: 4rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.ticker-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

.ticker-item svg {
  width: 24px;
  height: 24px;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   COMPONENTS: SERVICES
   ========================================== */
.services-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--light-blue);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: rotateY(180deg) scale(1.1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-learn-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-learn-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.service-card:hover .service-learn-more svg {
  transform: translateX(4px);
}

/* ==========================================
   COMPONENTS: STATS
   ========================================== */
.stats {
  background-color: var(--primary);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .stats {
  background-color: var(--light-blue);
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

[data-theme="dark"] .stat-item h3 {
  color: var(--primary);
}

.stat-item p {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

[data-theme="dark"] .stat-item p {
  color: var(--text-muted);
}

/* ==========================================
   COMPONENTS: WORK PROCESS
   ========================================== */
.process-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.process-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.process-card::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.process-card:last-child::after {
  display: none;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.process-step {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.process-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================
   COMPONENTS: PORTFOLIO & CASE STUDIES
   ========================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.portfolio-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.blogs-brief-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.3);
}

.portfolio-img-box {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 64, 175, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-metric {
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.portfolio-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================
   COMPONENTS: TESTIMONIALS
   ========================================== */
.testimonials {
  position: relative;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 3rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.testimonial-quote::before, .testimonial-quote::after {
  content: '"';
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
}

.testimonial-client {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  border: 2px solid var(--primary);
}

.client-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.client-role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.stars {
  color: var(--yellow-dark);
  display: flex;
  gap: 0.25rem;
}

/* Testimonial Controls */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ==========================================
   COMPONENTS: FAQ
   ========================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition-normal);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-main);
  transition: var(--transition-normal);
}

/* Let's make it a clean chevron SVG instead */
.faq-question svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: var(--transition-normal);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

/* ==========================================
   COMPONENTS: CTA SECTION
   ========================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 5rem 2.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.9;
  font-size: 1.15rem;
}

/* ==========================================
   COMPONENTS: FOOTER
   ========================================== */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 80px 0 30px 0;
  border-top: 1px solid #1E293B;
}

[data-theme="dark"] .footer {
  background-color: #020617;
}

.footer h3, .footer h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: #1E293B;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: #ffffff;
}

.newsletter-form {
  margin-top: 1rem;
}

.newsletter-input-group {
  display: flex;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: #1E293B;
  border: 1px solid #334155;
  padding: 4px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
}

.newsletter-btn {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

/* ==========================================
   PAGES: ABOUT PAGE SPECIFICS
   ========================================== */
.about-hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, transparent 100%);
  padding: 120px 0 60px 0;
  text-align: center;
}

.skills-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.skill-bar-container {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-progress-bg {
  height: 10px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-main);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left-item {
  left: 0;
}

.right-item {
  left: 50%;
}

.right-item::after {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem 2rem;
  background-color: var(--bg-card);
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Certifications */
.certs-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem auto;
  color: var(--primary);
}

.cert-icon svg {
  width: 100%;
  height: 100%;
}

.cert-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   PAGES: BLOG PAGE SPECIFICS
   ========================================== */
.featured-blog-banner {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.featured-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.featured-info-box {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.featured-title:hover {
  color: var(--primary);
}

.featured-excerpt {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.blog-search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  width: 320px;
  max-width: 100%;
}

.blog-search-box input {
  flex-grow: 1;
}

.blog-search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.blog-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.3);
}

.blog-img-box {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.blog-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-img-box img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.blog-card:hover .read-more-link svg {
  transform: translateX(4px);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover, .page-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================
   PAGES: CONTACT PAGE SPECIFICS
   ========================================== */
.contact-grid {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--light-blue);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.info-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.info-details p, .info-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-details a:hover {
  color: var(--primary);
}

.contact-form-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition-fast);
}

.form-group input::placeholder, .form-group select::placeholder, .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: var(--bg-card);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.5rem;
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--border-color);
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Form Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  backdrop-filter: blur(8px);
}

.success-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.success-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.85);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.success-modal.show .success-content {
  transform: scale(1);
}

.success-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #DEF7EC;
  color: #03543F;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.success-icon-box svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.success-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.success-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ==========================================
   INTERACTIVE EXTRA FEATURES
   ========================================== */
/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Floating contact widget */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
}

.floating-contact-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25D366; /* WhatsApp Green */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-normal);
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.floating-contact-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Loading Animation Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-blue);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   SCROLL REVEAL EFFECT
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.about-bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-img {
    width: 320px;
    height: 420px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
  
  .process-card::after {
    display: none;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blogs-brief-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation Drawer style */
  .burger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transition: var(--transition-normal);
    align-items: flex-start;
    border-top: 1px solid var(--border-color);
    transform: translateX(100%);
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }

  .top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0F172A;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    height: 35px;
  }

  .top-bar-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .top-bar-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  .navbar {
    top: 35px;
  }

  .navbar.scrolled {
    top: 35px;
  }
  
  .burger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }

  .about-bio-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 55px;
    padding-right: 0;
  }
  
  .timeline-item::after {
    left: 21px;
    right: auto;
  }
  
  .right-item {
    left: 0;
  }
  
  .right-item::after {
    left: 21px;
  }
  
  .contact-form-panel {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .article-wrap {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.85rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-frame {
    width: 280px;
    height: 320px;
  }

  .hero-img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  .about-portrait-img {
    height: 320px;
  }
  
  .services-grid, .portfolio-grid, .stats-grid, .certs-grid, .blogs-brief-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .featured-info-box {
    padding: 2rem 1.5rem;
  }
  
  .cta-banner {
    padding: 3rem 1.5rem;
  }
  
  .cta-banner h2 {
    font-size: 1.85rem;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .floating-contact {
    bottom: 1.5rem;
    left: 1.5rem;
  }
}

/* ==========================================
   BLOG INNER PAGE SPECIFICS
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--border-color);
}

.blog-inner-container {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.article-wrap {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-meta-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.article-cover-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  height: 450px;
  background-color: var(--light-blue);
  border: 1px solid var(--border-color);
}

.article-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  background-color: var(--white);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.85rem;
  margin: 2.5rem 0 1.25rem 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  background-color: var(--light-blue);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.article-content th, .article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
}

.article-content th {
  background-color: var(--light-blue);
  color: var(--primary);
  font-weight: 700;
  text-align: left;
}

.article-content tr:nth-child(even) {
  background-color: rgba(0, 74, 173, 0.02);
}

.takeaway-box {
  background-color: rgba(0, 74, 173, 0.03);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.takeaway-box h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.takeaway-box p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Sidebar Specifics */
.sidebar-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-author {
  text-align: center;
}

.sidebar-author-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 3px solid var(--primary);
  background-color: var(--light-blue);
}

.sidebar-author h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.sidebar-author-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.sidebar-author p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.popular-post-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.popular-post-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.popular-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popular-post-info h5 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.popular-post-info h5 a:hover {
  color: var(--primary);
}

.popular-post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary) 100%);
  color: #ffffff;
  border: none;
}

.sidebar-cta .sidebar-widget-title {
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-cta p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.share-row span {
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .blog-inner-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .article-wrap {
    padding: 2rem 1.5rem;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-cover-box {
    height: 300px;
  }
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.table-responsive table {
  margin: 0;
  border: none;
}

/* ==========================================
   HOMEPAGE REDESIGN: HERO & ABOUT BRIEF
   ========================================== */
.tech-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 74, 173, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 74, 173, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 74, 173, 0.06);
  border: 1px solid rgba(0, 74, 173, 0.15);
  box-shadow: 0 0 15px rgba(0, 74, 173, 0.05);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-quick-metrics {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Rotating Gradient Portrait Frame */
.hero-frame {
  position: relative;
  width: 380px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, #ca8a04 50%, var(--primary) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 12s linear infinite, morphBlob 16s ease-in-out infinite alternate;
  z-index: -1;
  opacity: 0.85;
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.08) 0%, transparent 70%);
  filter: blur(15px);
  z-index: -2;
  animation: morphBlob 16s ease-in-out infinite alternate;
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  z-index: 10;
  animation: floatBadge 6s ease-in-out infinite;
}

[data-theme="dark"] .floating-badge {
  background-color: rgba(30, 41, 59, 0.85);
}

.floating-badge h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.floating-badge p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
  white-space: nowrap;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.seo-bg { background-color: #004AAD; }
.google-ads-bg { background-color: #ca8a04; }
.meta-ads-bg { background-color: #d946ef; }
.partner-bg { background-color: #2563EB; }

.badge-1 {
  top: 15%;
  left: -15%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  right: -10%;
  animation-delay: -2s;
}

.badge-3 {
  bottom: 5%;
  left: -5%;
  animation-delay: -4s;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* About Brief Redesign */
.about-brief-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}

.about-portrait-box {
  display: flex;
  justify-content: center;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  overflow: hidden;
  max-width: 350px;
}

.about-portrait-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-portrait-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .about-portrait-badge {
  background-color: rgba(30, 41, 59, 0.9);
}

.about-portrait-badge h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.about-portrait-badge p {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

.about-expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.expertise-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 74, 173, 0.3);
}

.expertise-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ca8a04;
  line-height: 1;
}

.expertise-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.expertise-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Responsive adjustments for redesign */
@media (max-width: 1024px) {
  .hero-frame {
    width: 320px;
    height: 380px;
  }
  .floating-badge {
    padding: 0.5rem 1rem;
  }
  .about-brief-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-quick-metrics {
    justify-content: center;
    gap: 1.5rem 3rem;
  }
  .about-brief-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-portrait-box {
    order: 2;
  }
  .about-info-box {
    order: 1;
  }
  .floating-badge {
    display: none; /* Hide floaters on mobile to prevent clutter */
  }
}


/* Custom Logo Image Styles */
.logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
  display: block;
}

/* Custom Text Logo (Double-line layout) */
.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  transition: var(--transition-normal);
}
.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
}
.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1px;
}
.logo-text-wrapper:hover .logo-title {
  color: #fff;
}

/* Navbar Desktop Call-to-Action Button */
.nav-btn-desktop {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  background-color: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-btn-desktop:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .nav-btn-desktop {
    display: none !important;
  }
}

/* ==========================================
   PORTRAIT IMAGE CARD DESIGN SYSTEM
   ========================================== */
.portrait-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px; /* clean modern rounded corners */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); /* glassmorphic subtle border */
  background-color: #0b1220; /* deep professional dark blue-black */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05); /* drop shadow and inner border glow */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

/* Elegant glassmorphic gradient fade overlay to blend the straight waist cut */
.portrait-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px; /* overlap bottom edge slightly to prevent thin line leaks */
  height: 120px;
  background: linear-gradient(to top, #0b1220 0%, rgba(11, 18, 32, 0.8) 40%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.portrait-card .portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-slow);
  z-index: 1;
}

.portrait-card:hover .portrait-img {
  transform: scale(1.03); /* subtle professional hover scale */
}

/* Enhance the about card overlay to mask the bottom of the portrait */
.about-image-card {
  position: relative;
  overflow: hidden;
}

.about-image-card::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 100px;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.about-portrait-badge {
  z-index: 3 !important; /* Float above the gradient fade */
}

