/* ===============================================
   HarinathBabu.com — Final Fixes Applied
   Version: v2.6-final-fixes
   =============================================== */

:root {
  /* Theme System - Dark as Default */
  color-scheme: dark light;
  
  /* Meta Light Theme Colors */
  --meta-blue: #0668E1;
  --meta-light-blue: #0080FB;
  --meta-gray: #1C2B33;
  --meta-light-gray: #F0F2F5;
  --meta-white: #FFFFFF;
  --meta-black: #1C1E21;
  
  /* Firebase Dark Theme Colors */
  --firebase-navy: #1A1A2E;
  --firebase-dark-blue: #16213E;
  --firebase-pale-blue: #4A90E2;
  --firebase-accent: #FF6B35;
  --firebase-dark-gray: #0F1419;
  --firebase-light-text: #E1E5E9;
  
  /* Dark Theme (Default) */
  --bg: var(--firebase-dark-gray);
  --bg-2: var(--firebase-navy);
  --bg-3: #0A0E13;
  --panel: var(--firebase-navy);
  --panel-2: var(--firebase-dark-blue);
  --border: #2D3748;
  --border-strong: #4A5568;
  
  --text: var(--firebase-light-text);
  --text-strong: #F7FAFC;
  --text-muted: #A0AEC0;
  --text-weak: #718096;
  --text-bright: #FFFFFF;
  
  --primary: var(--firebase-pale-blue);
  --primary-rgb: 74, 144, 226;
  --primary-light: rgba(74, 144, 226, 0.1);
  --primary-dark: #357ABD;
  
  --secondary: var(--firebase-pale-blue);
  --secondary-rgb: 74, 144, 226;
  --accent: var(--firebase-pale-blue);
  --accent2: #68D391;
  
  /* Status Colors */
  --success: #68D391;
  --success-rgb: 104, 211, 145;
  --success-light: rgba(104, 211, 145, 0.1);
  --warning: #F6AD55;
  --warning-rgb: 246, 173, 85;
  --warning-light: rgba(246, 173, 85, 0.1);
  --danger: #F56565;
  --info: var(--firebase-pale-blue);
  --info-light: rgba(74, 144, 226, 0.1);
  
  /* Effects */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.15);
  --glow-primary: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
  
  /* Enhanced Typography */
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-family-heading: 'Manrope', var(--font-family);
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --fs-xs: 0.75rem;
  --fs-h1: 2.25rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.375rem;
  --fs-h4: 1.25rem;
  --fs-h5: 1.125rem;
  --fs-h6: 1rem;
  
  /* Layout */
  --container-padding: clamp(0.75rem, 2vw, 1rem);
  --section-spacing: clamp(1.5rem, 3vw, 2rem);
  
  /* Z-Index Management - Fixed Overlapping */
  --z-urgency-banner: 1055;
  --z-top-nav: 1030;
  --z-theme-switcher: 1025;
  --z-floating-cta: 1020;
  --z-footer: 1018;
  --z-final-banner: 1022; /* Higher than footer */
}

/* Light Theme Override */
[data-theme="light"] {
  --bg: var(--meta-white);
  --bg-2: var(--meta-light-gray);
  --bg-3: #FAFBFC;
  --panel: var(--meta-white);
  --panel-2: var(--meta-light-gray);
  --border: #E4E6EA;
  --border-strong: #CED0D4;
  
  --text: var(--meta-black);
  --text-strong: #1C1E21;
  --text-muted: #65676B;
  --text-weak: #8A8D91;
  --text-bright: var(--meta-black);
  
  --primary: var(--meta-blue);
  --primary-rgb: 6, 104, 225;
  --primary-light: rgba(6, 104, 225, 0.1);
  --primary-dark: #0456C7;
  
  --secondary: var(--meta-light-blue);
  --secondary-rgb: 0, 128, 251;
  --accent: var(--meta-blue);
  --accent2: #42B883;
  
  --success: #42B883;
  --success-rgb: 66, 184, 131;
  --success-light: rgba(66, 184, 131, 0.1);
  
  --warning: #F59E0B;
  --warning-rgb: 245, 158, 11;
  --warning-light: rgba(245, 158, 11, 0.1);
  
  --info: var(--meta-light-blue);
  --info-light: rgba(0, 128, 251, 0.1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: 1.5;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Enhanced Text Visibility */
.text-bright {
  color: var(--text-bright) !important;
  font-weight: 500;
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  top: 15px;
  right: 80px;
  z-index: var(--z-theme-switcher);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--panel);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.theme-toggle .light-icon,
.theme-toggle .dark-icon {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-toggle .light-icon {
  opacity: 0;
  transform: rotate(-180deg);
}

.theme-toggle .dark-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .light-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .dark-icon {
  opacity: 0;
  transform: rotate(180deg);
}

/* Urgency Banner */
.urgency-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-urgency-banner);
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  animation: slideDown 0.5s ease-out;
  font-size: var(--fs-small);
  padding: 0.5rem 0;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Top Navigation - Always Sticky */
.top-navigation {
  position: sticky !important;
  top: 0 !important;
  padding: 0.75rem 0;
  z-index: var(--z-top-nav);
  background: rgba(var(--bg), 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  margin-top: 45px;
  transition: margin-top 0.3s ease;
}

.top-navigation.hide-urgency {
  margin-top: 0;
}

.nav-content {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.nav-brand strong {
  color: var(--text-bright);
  font-size: 1.1875rem;
}

.nav-menu {
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-bright) !important;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--primary);
  color: white !important;
}

.nav-actions {
  gap: 0.5rem;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 34px;
  height: 34px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  border-color: var(--primary);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-bright);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-nav-toggle:hover .hamburger-line {
  background: var(--primary);
}

.theme-offcanvas {
  background: var(--panel);
  color: var(--text-bright);
  border-left: 1px solid var(--border);
}

.offcanvas-title {
  color: var(--text-bright);
  font-size: var(--fs-h6);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  color: var(--text-bright) !important;
  text-decoration: none;
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  font-size: var(--fs-small);
}

.mobile-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
  border-color: var(--primary);
}

/* Mobile Profile Section */
.mobile-profile {
  background: var(--primary-light);
  border: 1px solid var(--primary);
}

.avatar-mobile {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

.social-icon-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--fs-small);
}

.social-icon-mobile:hover {
  background: var(--primary);
  color: white;
}

.mobile-newsletter-cta {
  background: var(--success-light);
  border: 1px solid var(--success);
}

/* Layout */
*, *::before, *::after { box-sizing: border-box; }
section, [id] { scroll-margin-top: 150px; }

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: var(--container-padding);
  padding: var(--container-padding);
  max-width: 1300px;
  margin: 0 auto;
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .layout { 
    grid-template-columns: 1fr; 
    margin-top: 0.5rem;
  }
  
  section, [id] { 
    scroll-margin-top: 130px;
  }
}

.content { min-width: 0; }
.content > section { margin-bottom: var(--section-spacing); }

/* Glass Effect Cards */
.card.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card.glass:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pulse-cta {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0);
  }
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 150px;
  align-self: start;
  z-index: 5;
  height: fit-content;
}

@media (max-width: 992px) {
  .sidebar { position: static; }
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.avatar:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: var(--fs-small);
}

.small-icon {
  width: 32px;
  height: 32px;
  font-size: 0.8125rem;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.follower-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--success);
  color: white;
  font-size: 0.5625rem;
  padding: 1px 4px;
  border-radius: 8px;
  font-weight: 600;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.display-6 { 
  font-size: var(--fs-h1); 
  font-weight: 800; 
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
  border-radius: 1px;
}

.section-subtitle {
  color: var(--text-bright);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-typewriter-text {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-bright);
}

#typed-hero-roles {
  color: var(--primary);
  font-weight: 800;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary);
  margin-left: 0.2em;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-tagline p {
  font-size: 1.0625rem;
  color: var(--text-bright);
  margin-bottom: 0;
}

/* Hero Image */
.hero-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(200px, 25vw, 280px);
  box-shadow: var(--shadow-lg);
}

.slider-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: var(--radius);
}

.slider-images img.active {
  opacity: 1;
}

.results-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.875rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.result-metric {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--success);
}

/* Buttons */
.btn {
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: var(--fs-small);
  padding: 0.5625rem 1.125rem;
}

.btn-sm {
  font-size: var(--fs-xs);
  padding: 0.4375rem 0.875rem;
}

.btn-lg {
  font-size: var(--fs-small);
  padding: 0.875rem 1.75rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
}

.btn-warning {
  background: var(--warning);
  border-color: var(--warning);
  color: var(--meta-black);
}

.btn-info {
  background: var(--info);
  border-color: var(--info);
  color: white;
}

.btn-linkedin {
  background: linear-gradient(135deg, #0A66C2, #1877F2);
  border: none;
  color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  color: white;
}

/* About Section */
.credibility-highlight {
  background: var(--primary-light);
  border-radius: var(--radius);
  position: relative;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.875rem;
  padding: 0.625rem;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: var(--fs-small);
}

.results-cta-container {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1.125rem;
  margin-top: 1.5rem;
}

/* Skill Tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.skill-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--primary);
}

/* Experience Section */
.metric-badge {
  padding: 0.875rem;
  border-radius: var(--radius);
  text-align: center;
}

.metric-number {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  font-size: var(--fs-xs);
  opacity: 0.9;
}

.achievement-list, .compact-list {
  list-style: none;
  padding: 0;
}

.achievement-list li, .compact-list li {
  margin-bottom: 0.5rem;
  font-size: var(--fs-small);
}

/* Certifications Accordions - Fixed Content Visibility */
.accordion-item {
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 0.375rem;
  border-radius: var(--radius);
}

.accordion-button {
  background: var(--panel);
  color: var(--text-bright);
  border: none;
  font-weight: 600;
  padding: 0.875rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.accordion-body {
  background: var(--panel);
  color: var(--text-bright);
  padding: 1.125rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.cert-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.cert-card {
  background: var(--panel);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cert-badge {
  margin-bottom: 0.5rem;
}

.cert-title {
  color: var(--text-bright);
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: var(--fs-small);
}

.cert-skills {
  color: var(--text-bright);
  margin-bottom: 0.375rem;
  font-size: var(--fs-xs);
}

.cert-value {
  background: var(--primary-light);
  padding: 0.4375rem;
  border-radius: var(--radius-sm);
  margin-top: 0.375rem;
}

/* Background Panel Helper */
.bg-panel {
  background: var(--panel) !important;
}

/* Portfolio - Consistent Boxed Layout */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 180px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 0.875rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-info h6 {
  color: white;
  margin-bottom: 0.25rem;
  font-size: var(--fs-small);
}

.portfolio-info .small {
  color: var(--success);
  font-weight: 600;
  font-size: var(--fs-xs);
}

/* Blog Cards */
.blog-card {
  position: relative;
  transition: all 0.3s ease;
  height: auto;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.blog-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

.blog-title {
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-size: var(--fs-small);
}

/* Modal */
.modal-content.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text-bright);
}

.modal-title {
  color: var(--primary);
  font-size: var(--fs-h5);
}

.modal-subtitle {
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: var(--fs-small);
}

/* Form Controls */
.form-control, .form-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-bright);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-size: var(--fs-small);
  padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
  background: var(--panel-2);
  border-color: var(--primary);
  color: var(--text-bright);
  box-shadow: var(--glow-primary);
}

.form-floating > label {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
  color: var(--primary);
}

/* Floating CTA - Fixed Above Footer */
.floating-cta {
  position: fixed;
  bottom: 120px;
  right: 15px;
  z-index: var(--z-floating-cta);
  max-width: 280px;
  animation: slideInRight 0.5s ease-out, float 3s ease-in-out infinite;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.floating-cta-content {
  background: var(--panel);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.floating-cta-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  line-height: 1;
}

.floating-cta-text {
  color: var(--text-bright);
  font-size: var(--fs-small);
}

/* Footer - Enhanced with Fixed Z-Index */
.site-footer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  position: relative;
  z-index: var(--z-footer);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  font-size: var(--fs-small);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.social-stats {
  margin-bottom: 0.5rem;
}

/* Final CTA Banner - Fixed Z-Index Above Footer */
.final-opportunity-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--warning), var(--danger)) !important;
  color: white;
  padding: 0.875rem;
  z-index: var(--z-final-banner);
  animation: slideUp 0.5s ease-out;
  font-size: var(--fs-small);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Lead Magnet */
.lead-magnet-sidebar {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lead-magnet-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.lead-magnet-sidebar:hover::before {
  left: 100%;
}

.lead-magnet-icon {
  font-size: 1.75rem;
  margin-bottom: 0.375rem;
}

/* Thumb Images - Consistent Boxed */
.thumb {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  object-fit: cover;
  transition: all 0.3s ease;
}

.thumb:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .theme-switcher {
    top: 10px;
    right: 55px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .top-navigation {
    padding: 0.625rem 0;
    margin-top: 40px;
  }
  
  .nav-content {
    padding: 0.625rem !important;
  }
  
  .hero-img {
    height: 180px;
  }
  
  .floating-cta {
    bottom: 100px;
    right: 10px;
    max-width: 250px;
  }
  
  .portfolio-item {
    height: 150px;
  }
  
  .blog-card .card-img-top {
    height: 140px;
  }
  
  .accordion-button {
    padding: 0.625rem;
    font-size: var(--fs-xs);
  }
  
  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
  }
  
  .hamburger-line {
    width: 20px;
  }
  
  section, [id] { 
    scroll-margin-top: 110px;
  }
  
  .sidebar {
    top: 110px;
  }
  
  .thumb {
    height: 120px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .layout {
    padding: 0.625rem;
  }
  
  .hero-typewriter-text {
    font-size: 1.375rem;
  }
  
  .portfolio-item {
    height: 120px;
  }
  
  .blog-card .card-img-top {
    height: 120px;
  }
  
  .cert-icon {
    font-size: 1.75rem;
  }
  
  .thumb {
    height: 100px;
  }
  
  .social-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8125rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Utility Classes */
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-success-light { background-color: var(--success-light) !important; }
.bg-warning-light { background-color: var(--warning-light) !important; }
.bg-info-light { background-color: var(--info-light) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.border-primary { border-color: var(--primary) !important; }
.border-success { border-color: var(--success) !important; }
.border-warning { border-color: var(--warning) !important; }
.border-info { border-color: var(--info) !important; }

/* Animation Reveal System */
.use-reveal .reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.use-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success & Error States */
.success-message {
  background: var(--success);
  color: white;
  padding: 0.875rem;
  border-radius: var(--radius);
  margin: 0.875rem 0;
  animation: slideInDown 0.3s ease-out;
  font-size: var(--fs-small);
}

.error-message {
  background: var(--danger);
  color: white;
  padding: 0.875rem;
  border-radius: var(--radius);
  margin: 0.875rem 0;
  animation: shake 0.5s ease-in-out;
  font-size: var(--fs-small);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Social Proof Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.social-proof-widget {
  text-align: center;
  animation: fadeInUp 1s ease-out 1s both;
}

.micro-proof {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  animation: countUp 2s ease-out;
}

.value-prop-badge {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.875rem;
}

