/* ======================
   Base Styles & Variables
    ====================== */
:root {
 /* Light Theme Colors */
 --navy: #0a1f44;
 --teal: #008080;
 --gold: #d4af37;
 --black: #000000;
 --gray-50: #f9fafb;
 --gray-100: #f3f4f6;
 --gray-200: #e5e7eb;
 --gray-300: #d1d5db;
 --gray-800: #1f2937;
 --gray-900: #111827;
 --white: #ffffff;
 --whatsapp-green: #25d366;
 
 /* Background and foreground */
 --bg-primary: var(--white);
 --bg-secondary: var(--gray-50);
 --text-primary: var(--black);
 --text-secondary: var(--gray-800);
 --card-bg: rgba(255, 255, 255, 0.95);
 --card-border: var(--gray-100);
 
 /* Gradients */
 --gradient-primary: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
 --gradient-secondary: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%);
 --gradient-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(8, 145, 178, 0.85) 100%);

 /* Shadows */
 --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
 --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
 --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
 --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
 --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
 --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

 /* Transitions */
 --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
 --bg-primary: #121212;
 --bg-secondary: #1e1e1e;
 --text-primary: #e0e0e0;
 --text-secondary: #a0a0a0;
 --card-bg: rgba(30, 30, 30, 0.95);
 --card-border: #333333;
 --gray-50: #1e1e1e;
 --gray-100: #2d2d2d;
 --gray-200: #3d3d3d;
 --gray-800: #d1d5db;
 --gray-900: #e5e7eb;
 --white: #121212;
 --navy: #a0c8ff;
 --gradient-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(8, 100, 130, 0.85) 100%);
}

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

body {
 font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
 color: var(--text-primary);
 line-height: 1.6;
 overflow-x: hidden;
 background-color: var(--bg-primary);
 transition: background-color 0.3s ease, color 0.3s ease;
 position: relative;
 font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Add the background pattern as a pseudo-element */
body::before {
 content: "";
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: 
   linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
   url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1" fill="rgba(8, 145, 178, 0.2)"/><circle cx="10" cy="10" r="1" fill="rgba(8, 145, 178, 0.2)"/><circle cx="50" cy="10" r="1" fill="rgba(8, 145, 178, 0.2)"/><circle cx="10" cy="50" r="1" fill="rgba(8, 145, 178, 0.2)"/><circle cx="50" cy="50" r="1" fill="rgba(8, 145, 178, 0.2)"/><path d="M10,10 L50,10 M10,50 L50,50 M10,10 L10,50 M50,10 L50,50 M30,10 L30,50 M10,30 L50,30" stroke="rgba(8, 145, 178, 0.12)" stroke-width="0.8"/></svg>');
 background-size: 60px 60px;
 z-index: -1;
 pointer-events: none;
}

[data-theme="dark"] body::before {
 background: 
   linear-gradient(rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 0.94)),
   url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1" fill="rgba(8, 145, 178, 0.15)"/><circle cx="10" cy="10" r="1" fill="rgba(8, 145, 178, 0.15)"/><circle cx="50" cy="10" r="1" fill="rgba(8, 145, 178, 0.15)"/><circle cx="10" cy="50" r="1" fill="rgba(8, 145, 178, 0.15)"/><circle cx="50" cy="50" r="1" fill="rgba(8, 145, 178, 0.15)"/><path d="M10,10 L50,10 M10,50 L50,50 M10,10 L10,50 M50,10 L50,50 M30,10 L30,50 M10,30 L50,30" stroke="rgba(8, 145, 178, 0.08)" stroke-width="0.8"/></svg>');
}

/* ======================
  Layout Components
  ====================== */
.container {
 width: 100%;
 max-width: 1280px;
 margin: 0 auto;
 padding: 0 24px;
}

.section {
 padding: 100px 0;
 position: relative;
 scroll-margin-top: 90px;
}

.section-alt {
 background: var(--bg-secondary);
}

.section-title {
 text-align: center;
 margin-bottom: 80px;
}

.section-title h2 {
 font-size: clamp(2rem, 4vw, 3rem);
 font-weight: 800;
 color: var(--navy);
 margin-bottom: 16px;
 letter-spacing: -0.025em;
 position: relative;
}

.section-title h2::after {
 content: '';
 position: absolute;
 bottom: -12px;
 left: 50%;
 transform: translateX(-50%);
 width: 80px;
 height: 4px;
 background: var(--gradient-secondary);
 border-radius: 2px;
}

.section-title p {
 font-size: 1.2rem;
 color: var(--text-secondary);
 max-width: 700px;
 margin: 24px auto 0;
 line-height: 1.6;
}

/* ======================
  Header & Navigation
  ====================== */
.scroll-progress {
 position: fixed;
 top: 0;
 left: 0;
 height: 3px;
 background: var(--gradient-secondary);
 width: 0%;
 z-index: 10000;
 transition: width 0.1s ease;
 box-shadow: 0 0 10px rgba(8, 145, 178, 0.3);
}

header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 background: rgba(255, 255, 255, 0.98);
 backdrop-filter: blur(20px);
 -webkit-backdrop-filter: blur(20px);
 border-bottom: 1px solid rgba(0, 0, 0, 0.08);
 z-index: 1000;
 transition: var(--transition);
 padding: 16px 0;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] header {
 background: rgba(18, 18, 18, 0.98);
 border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header.scrolled {
 padding: 12px 0;
 box-shadow: var(--shadow-lg);
 border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] header.scrolled {
 border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

.logo {
 font-weight: 800;
 font-size: 26px;
 color: var(--navy);
 display: flex;
 align-items: center;
 text-decoration: none;
 letter-spacing: -0.025em;
 transition: var(--transition);
}

.logo:hover {
 transform: translateY(-1px);
}

.logo span {
 background: var(--gradient-secondary);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.logo img {
 height: 60px;
 margin-right: 12px;
 transition: var(--transition);
}

nav ul {
 display: flex;
 list-style: none;
 gap: 32px;
}

nav ul li a {
 text-decoration: none;
 color: var(--navy);
 font-weight: 600;
 font-size: 15px;
 transition: var(--transition);
 position: relative;
 padding: 8px 16px;
 border-radius: 8px;
}

[data-theme="dark"] nav ul li a {
 color: var(--text-primary);
}

nav ul li a:hover {
 color: var(--teal);
 background: rgba(8, 145, 178, 0.05);
 transform: translateY(-1px);
}

[data-theme="dark"] nav ul li a:hover {
 background: rgba(8, 145, 178, 0.15);
}

nav ul li a:after {
 content: '';
 position: absolute;
 bottom: 4px;
 left: 50%;
 transform: translateX(-50%);
 width: 0;
 height: 2px;
 background: var(--gradient-secondary);
 transition: var(--transition);
 border-radius: 1px;
}

nav ul li a:hover:after {
 width: 20px;
}

.theme-toggle {
 background: none;
 border: none;
 color: var(--navy);
 cursor: pointer;
 font-size: 1.2rem;
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: var(--transition);
 margin-left: 16px;
}

[data-theme="dark"] .theme-toggle {
 color: var(--text-primary);
}

.theme-toggle:hover {
 background: var(--gray-100);
}

[data-theme="dark"] .theme-toggle:hover {
 background: var(--gray-800);
}

.mobile-menu-btn {
 display: none;
 background: none;
 border: none;
 font-size: 24px;
 color: var(--navy);
 cursor: pointer;
 z-index: 1001;
 padding: 12px;
 border-radius: 8px;
 transition: var(--transition);
}

[data-theme="dark"] .mobile-menu-btn {
 color: var(--text-primary);
}

.mobile-menu-btn:hover {
 background: var(--gray-100);
}

[data-theme="dark"] .mobile-menu-btn:hover {
 background: var(--gray-800);
}

/* ======================
  Hero Section
  ====================== */
.hero {
   min-height: 100vh;
   background: var(--gradient-hero);
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   overflow: hidden;
}

.hero-content {
   max-width: 900px;
   margin: 0 auto;
   text-align: center;
   color: var(--white);
   position: relative;
   z-index: 4;
   padding: 120px 24px 80px;
}

.hero-badge { /* keep same as before */ }
.hero-badge i { color: var(--gold); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 24px; line-height: 1.1; letter-spacing: -0.025em; }
.hero-highlight { background: linear-gradient(135deg, var(--teal), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 40px; max-width: 700px; margin-left:auto; margin-right:auto; line-height:1.6; }

/* Falling documents */
.falling-docs {
   position: absolute;
   top: 0; left: 0;
   width: 100%; height: 100%;
   pointer-events: none;
   z-index: 3;
}

.doc, .spreadsheet {
   position: absolute;
   width: 30px;
   height: 40px;
   opacity: 0.5;
   animation-name: fall;
   animation-timing-function: linear;
   animation-iteration-count: 1;
   transform: rotate(0deg);
}

.doc {
   background: url('assets/doc-icon.png') no-repeat center/contain;
}

.spreadsheet {
   background: url('assets/spreadsheet-icon.png') no-repeat center/contain;
}

/* If you don't have a spreadsheet icon, you can use an emoji or SVG */
.spreadsheet.fallback {
   background: none;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 24px;
}

@keyframes fall {
   0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
   50% { opacity: 0.8; }
   100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ======================
  Card Components
  ====================== */
.card {
 background: var(--card-bg);
 border-radius: 20px;
 padding: 40px 32px;
 box-shadow: var(--shadow-lg);
 border: 1px solid var(--card-border);
 transition: var(--transition);
 position: relative;
 overflow: hidden;
 width: 100%; /* Ensure full width within grid */
 max-width: 380px; /* Optional: set max width for better proportions */
 margin: 0 auto; /* Center the card */
 text-align: center; /* Keep text left-aligned inside cards */
 backdrop-filter: blur(4px); /* Adds subtle blur effect */
}

.card::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: var(--teal);
 opacity: 0;
 transition: var(--transition);
 z-index: 0;
}

.card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-2xl);
 border-color: var(--teal);
 background: var(--card-bg);
}

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

.card-icon {
 width: 64px;
 height: 64px;
 background: var(--gradient-secondary);
 border-radius: 16px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 1.5rem;
 color: var(--white);
 margin: 0 auto 24px; /* Center the icon */
 position: relative;
 z-index: 1;
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}

.card:hover .card-icon {
 transform: scale(1.05);
}

.card h3, .card h4 {
 font-size: 1.25rem;
 font-weight: 700;
 color: var(--navy);
 margin-bottom: 16px;
 position: relative;
 z-index: 1;
 text-align: center; /* Center headings */
}

.card p {
 color: var(--text-secondary);
 line-height: 1.6;
 position: relative;
 z-index: 1;
 text-align: left; /* Keep paragraph text left-aligned */
}
       
/* Solution Pillar Card */
.solution-pillar {
 background: var(--bg-primary);
 border-radius: 24px;
 padding: 48px 40px;
 box-shadow: var(--shadow-xl);
 border: 1px solid var(--card-border);
 transition: var(--transition);
 position: relative;
 overflow: hidden;
}

.solution-pillar::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 height: 6px;
 background: var(--gradient-secondary);
}

.solution-pillar:hover {
 transform: translateY(-12px);
 box-shadow: var(--shadow-2xl);
}

.pillar-header {
 text-align: center;
 margin-bottom: 32px;
}

.pillar-number {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 48px;
 height: 48px;
 background: var(--gradient-secondary);
 color: var(--white);
 border-radius: 12px;
 font-size: 1.25rem;
 font-weight: 700;
 margin-bottom: 16px;
}

.pillar-header h3 {
 font-size: 1.5rem;
 font-weight: 800;
 color: var(--navy);
 margin-bottom: 8px;
}

.pillar-subtitle {
 color: var(--text-secondary);
 font-size: 1rem;
 font-weight: 500;
}

.pillar-features {
 list-style: none;
}
pillar-features li {
 display: flex;
 align-items: center;       /* changed from flex-start to center */
 justify-content: center;   /* NEW: centers icon + text horizontally */
 gap: 12px;
 margin-bottom: 12px;
 color: var(--text-secondary);
 line-height: 1.6;
 text-align: center;        /* NEW: center aligns text */
}
       
.pillar-features i {
 color: var(--teal);
 font-size: 1.1rem;
 margin-top: 2px;
}

/* ======================
  Cost Calculator Section 
  ====================== */
.cost-calculator-section {
   padding: 90px 0;
   background: linear-gradient(135deg, var(--gray-50) 0%, rgba(8, 145, 178, 0.02) 50%, var(--gray-50) 100%);
   position: relative;
   overflow: hidden;
}

.cost-calculator-section::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: 
       radial-gradient(circle at 20% 30%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
       radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.section-header {
   text-align: center;
   margin-bottom: 60px;
   position: relative;
   z-index: 2;
}

.section-header h2 {
   font-size: clamp(2.2rem, 5vw, 3rem);
   font-weight: 800;
   color: var(--navy);
   margin-bottom: 16px;
   letter-spacing: -0.025em;
   line-height: 1.2;
}

.section-header .subtitle {
   font-size: 1.2rem;
   color: var(--gray-800);
   max-width: 700px;
   margin: 0 auto;
   line-height: 1.6;
   opacity: 0.9;
}

/* Calculator Card */
.calculator-container {
   max-width: 850px;
   margin: 0 auto 60px;
   position: relative;
   z-index: 2;
}

.calculator-card {
   background: var(--white);
   border-radius: 24px;
   padding: 50px 40px;
   box-shadow: var(--shadow-2xl);
   border: 1px solid rgba(8, 145, 178, 0.1);
   position: relative;
   overflow: hidden;
}

.calculator-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 6px;
   background: var(--gradient-secondary);
}

.calculator-header {
   text-align: center;
   margin-bottom: 40px;
}

.calculator-header h3 {
   font-size: 1.8rem;
   font-weight: 800;
   color: var(--navy);
   margin-bottom: 12px;
   letter-spacing: -0.025em;
}

.calculator-header p {
   font-size: 1.1rem;
   color: var(--gray-800);
   opacity: 0.8;
   line-height: 1.5;
}

/* Input Controls */
.input-group {
   margin-bottom: 32px;
}

.input-label {
   display: block;
   font-size: 1.1rem;
   font-weight: 600;
   color: var(--navy);
   margin-bottom: 12px;
}

.slider-container {
   position: relative;
   margin-bottom: 12px;
}

.slider {
   -webkit-appearance: none;
   width: 100%;
   height: 10px;
   border-radius: 5px;
   background: var(--gray-200);
   outline: none;
   transition: var(--transition);
}

.slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   appearance: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--gradient-secondary);
   cursor: pointer;
   box-shadow: var(--shadow-md);
   transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
   transform: scale(1.1);
   box-shadow: var(--shadow-lg);
}

.slider::-moz-range-thumb {
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--gradient-secondary);
   cursor: pointer;
   border: none;
   box-shadow: var(--shadow-md);
}

.input-display {
   text-align: center;
   padding: 14px 20px;
   background: linear-gradient(135deg, var(--gray-50), rgba(8, 145, 178, 0.05));
   border-radius: 12px;
   border: 2px solid rgba(8, 145, 178, 0.1);
   font-size: 1.3rem;
   font-weight: 700;
   color: var(--navy);
   margin-top: 12px;
}

/* Results Display */
.results-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
   gap: 20px;
   margin: 40px 0;
}

.result-card {
   background: linear-gradient(135deg, var(--white), var(--gray-50));
   border-radius: 16px;
   padding: 28px 20px;
   text-align: center;
   border: 2px solid var(--gray-100);
   transition: var(--transition);
   position: relative;
   overflow: hidden;
}

.result-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: var(--gradient-secondary);
   transition: var(--transition);
}

.result-card:hover {
   transform: translateY(-5px);
   box-shadow: var(--shadow-xl);
   border-color: var(--teal);
}

.result-card.savings {
   background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(8, 145, 178, 0.05));
   border-color: rgba(5, 150, 105, 0.2);
}

.result-card.savings::before {
   background: linear-gradient(135deg, #10b981, #059669);
}

.result-label {
   font-size: 0.85rem;
   font-weight: 600;
   color: var(--gray-800);
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 8px;
}

.result-value {
   font-size: clamp(1.6rem, 4vw, 2.2rem);
   font-weight: 800;
   background: var(--gradient-secondary);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   margin-bottom: 8px;
   line-height: 1.1;
}

.result-card.savings .result-value {
   background: linear-gradient(135deg, #10b981, #059669);
   -webkit-background-clip: text;
}

.result-description {
   font-size: 0.85rem;
   color: var(--gray-800);
   opacity: 0.8;
   line-height: 1.5;
}

/* Impact Statement */
.impact-statement {
   background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(8, 145, 178, 0.08));
   border-radius: 20px;
   padding: 32px 24px;
   text-align: center;
   border: 2px solid rgba(5, 150, 105, 0.2);
   margin: 40px 0;
}

.impact-statement p {
   font-size: 1.1rem;
   font-weight: 600;
   color: var(--navy);
   line-height: 1.6;
   margin: 0;
}

.impact-highlight {
   color: #059669;
   font-weight: 700;
}

/* Manual Work Cards */
.manual-work-section {
   margin-top: 60px;
   position: relative;
   z-index: 2;
}

.manual-work-header {
   text-align: center;
   margin-bottom: 40px;
}

.manual-work-header h3 {
   font-size: clamp(1.6rem, 3vw, 2rem);
   font-weight: 800;
   color: var(--navy);
   margin-bottom: 16px;
   letter-spacing: -0.025em;
}

.work-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 24px;
   margin-bottom: 50px;
}

.work-card {
   background: var(--white);
   border-radius: 20px;
   padding: 36px 28px;
   box-shadow: var(--shadow-lg);
   border: 1px solid var(--gray-100);
   transition: var(--transition);
   position: relative;
   overflow: hidden;
}

.work-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 5px;
   background: linear-gradient(135deg, #f59e0b, #d97706);
   transition: var(--transition);
}

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

.work-card:hover::before {
   background: linear-gradient(135deg, #10b981, #059669);
}

.work-icon {
   width: 56px;
   height: 56px;
   background: linear-gradient(135deg, #f59e0b, #d97706);
   border-radius: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.4rem;
   color: var(--white);
   margin-bottom: 20px;
   box-shadow: var(--shadow-sm);
   transition: var(--transition);
}

.work-card:hover .work-icon {
   background: linear-gradient(135deg, #10b981, #059669);
   transform: scale(1.05);
}

.work-title {
   font-size: 1.2rem;
   font-weight: 700;
   color: var(--navy);
   margin-bottom: 12px;
}

.work-description {
   color: var(--gray-800);
   margin-bottom: 16px;
   line-height: 1.6;
   font-size: 0.95rem;
}

.work-savings {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(8, 145, 178, 0.1));
   padding: 10px 18px;
   border-radius: 50px;
   font-weight: 600;
   color: #059669;
   font-size: 0.9rem;
}

/* ======================
  Stats Components
  ====================== */
.stat-item {
 text-align: center;
 background: var(--bg-primary);
 padding: 30px 24px;
 border-radius: 16px;
 box-shadow: var(--shadow-md);
 border: 1px solid var(--card-border);
 transition: var(--transition);
 position: relative;
 overflow: hidden;
}

.stat-item::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 height: 4px;
 background: var(--gradient-secondary);
}

.stat-item:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-2xl);
 border-color: var(--teal);
}

.stat-number {
 font-size: clamp(2.5rem, 8vw, 3.5rem);
 font-weight: 800;
 background: var(--gradient-secondary);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
 margin-bottom: 8px;
 line-height: 1;
}

.stat-label {
 font-size: 16px;
 color: var(--text-secondary);
 font-weight: 500;
 line-height: 1.4;
}
       
/* Our Story Enhancement */
.our-story-section {
   background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(8, 145, 178, 0.02) 50%, var(--bg-secondary) 100%);
   position: relative;
}

.our-story-content {
   background: var(--bg-primary);
   border-radius: 24px;
   box-shadow: var(--shadow-2xl);
   padding: 64px 48px;
   max-width: 900px;
   margin: 0 auto;
   text-align: center;
   border: 1px solid var(--card-border);
   position: relative;
   overflow: hidden;
}

.our-story-content::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 6px;
   background: var(--gradient-secondary);
}

.our-story-icon {
   font-size: 3rem;
   color: var(--teal);
   margin-bottom: 24px;
   display: inline-block;
   padding: 24px;
   background: rgba(8, 145, 178, 0.1);
   border-radius: 20px;
}

.our-story-section h2 {
   color: var(--navy);
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 32px;
   letter-spacing: -0.025em;
}

.our-story-content p {
   font-size: 1.2rem;
   line-height: 1.8;
   color: var(--text-secondary);
   margin-bottom: 24px;
}

.our-story-content p:last-child {
   margin-bottom: 0;
}

/* ======================
  Button Components
  ====================== */
.btn {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 16px 32px;
 border-radius: 12px;
 font-weight: 600;
 font-size: 16px;
 text-decoration: none;
 transition: var(--transition);
 cursor: pointer;
 border: none;
 position: relative;
 overflow: hidden;
}

.btn::before {
 content: '';
 position: absolute;
 top: 0;
 left: -100%;
 width: 100%;
 height: 100%;
 background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
 transition: left 0.5s;
}

.btn:hover::before {
 left: 100%;
}

.btn-primary {
 background: var(--gradient-secondary);
 color: var(--white);
 box-shadow: var(--shadow-lg);
 border: 2px solid transparent;
}

.btn-primary:hover {
 transform: translateY(-2px);
 box-shadow: var(--shadow-2xl);
}

.btn-secondary {
 background: rgba(255, 255, 255, 0.1);
 color: var(--white);
 border: 2px solid rgba(255, 255, 255, 0.3);
 backdrop-filter: blur(10px);
}

.btn-secondary:hover {
 background: rgba(255, 255, 255, 0.2);
 border-color: rgba(255, 255, 255, 0.5);
 transform: translateY(-2px);
}

.btn-whatsapp {
 background: linear-gradient(135deg, var(--whatsapp-green), #1ebe5b);
 color: var(--white);
 box-shadow: var(--shadow-lg);
}

.btn-whatsapp:hover {
 transform: translateY(-2px);
 box-shadow: var(--shadow-2xl);
}

.btn-group {
 display: flex;
 justify-content: center;
 gap: 16px;
 flex-wrap: wrap;
 animation: fadeInUp 0.8s ease 0.8s both;
}

/* ======================
  Grid Layouts
  ====================== */
.problem-cards,
.solution-highlights,
.approach-grid,
.target-market-grid,
.services-grid,
.solutions-container {
 display: grid;
 gap: 32px;
}

.problem-cards {
 grid-template-columns: repeat(4, 1fr);
}
.approach-grid {
 grid-template-columns: repeat(3, 1fr);
}

.solution-highlights {
 grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
 max-width: 1000px;
 margin: 0 auto;
}

.target-market-grid {
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services-grid {
 grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.solutions-container {
 grid-template-columns: repeat(2, 1fr);
}

.problem-list {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 30px;
 max-width: 1000px;
 margin: 0 auto;
 list-style: none;
 padding: 0;
}
.problem-list li {
 display: flex;
 align-items: center;
 gap: 20px;
 padding: 32px 24px;
 background: var(--bg-primary);
 border-radius: 20px;
 box-shadow: 0 4px 12px rgba(8, 145, 178, 0.09);
 border: 1px solid var(--card-border);
 transition: box-shadow 0.3s, transform 0.3s;
}
.problem-list li:hover {
 transform: translateY(-5px);
 box-shadow: 0 20px 30px -5px rgba(8, 145, 178, 0.11);
 border-color: var(--teal);
}
.problem-list i {
 width: 54px;
 height: 54px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: var(--teal);
 color: var(--white);
 border-radius: 14px;
 font-size: 1.7rem;
 flex-shrink: 0;
 box-shadow: 0 2px 8px rgba(8,145,178,0.06);
}
.problem-list span {
 font-size: 1.15rem;
 line-height: 1.7;
 color: var(--text-secondary);
}
.problem-list strong {
 color: var(--navy);
 font-weight: 700;
}

.mission-message {
 text-align: center;
 margin: 48px auto 0 auto;
 padding: 32px 18px;
 max-width: 700px;
 font-size: clamp(1.1rem, 2vw, 1.3rem);
 line-height: 1.7;
 color: var(--text-secondary);
 background: var(--card-bg);
 border-radius: 18px;
 box-shadow: 0 2px 10px rgba(8,145,178,0.04);
 font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
}

.section-header {
   text-align: center;
   margin-bottom: 60px;
   position: relative;
   z-index: 2;
}

.section-header h2 {
   font-size: clamp(2.2rem, 5vw, 3rem);
   font-weight: 800;
   color: var(--navy);
   margin-bottom: 16px;
   letter-spacing: -0.025em;
   line-height: 1.2;
}

.section-header .subtitle {
   font-size: 1.2rem;
   color: var(--text-secondary);
   max-width: 700px;
   margin: 0 auto;
   line-height: 1.6;
   opacity: 0.9;
}



/* Modern Grid Layout */
.articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 32px;
            margin-top: 60px;
}
        
        /* Article cards styled to match index.html cards */
.article-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 40px 32px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--gray-100);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            width: 100%;
            margin: 0 auto;
            text-align: center;
            backdrop-filter: blur(4px);
            cursor: pointer;
}
        
.article-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--teal);
            opacity: 0;
            transition: var(--transition);
            z-index: 0;
}
        
.article-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-2xl);
            border-color: var(--teal);
            background: rgba(255, 255, 255, 0.98);
}
        
.article-card:hover::before {
            opacity: 1;
}
        
.article-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, var(--teal), var(--navy));
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            margin-bottom: 24px;
}
        
.article-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                rgba(8, 145, 178, 0.8) 0%, 
                rgba(10, 22, 40, 0.9) 100%);
}
        
.article-image i {
            font-size: 3rem;
            color: rgba(255, 255, 255, 0.9);
            z-index: 2;
            position: relative;
}
        
.article-content {
            position: relative;
            z-index: 1;
}
        
.article-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
}
        
.article-date {
            font-size: 0.9rem;
            color: var(--gray-800);
            font-weight: 500;
            background: var(--gray-100);
            padding: 6px 12px;
            border-radius: 20px;
}
        
.article-engagement {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--teal);
            font-size: 0.9rem;
            font-weight: 600;
}
        
.article-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 16px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
}
        
.article-excerpt {
            color: var(--gray-800);
            line-height: 1.6;
            margin-bottom: 24px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: left;
}
        
.article-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--teal);
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            padding: 12px 0;
            position: relative;
            z-index: 1;
}
        
.article-link:hover {
            color: var(--teal);
            transform: translateX(4px);
}
        
.article-link i {
            font-size: 0.9rem;
            transition: var(--transition);
}
        
.article-link:hover i {
            transform: translateX(4px);
}

/* Contact Section */
.contact-section {
 padding: 80px 0;
 background: var(--bg-secondary);
}

.contact-section .section-title h2 {
 font-size: 2rem;
 font-weight: 700;
 margin-bottom: 10px;
}

.contact-section .section-title p {
 color: var(--text-secondary);
 font-size: 1rem;
 margin-bottom: 40px;
}

.approach-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
 margin-bottom: 50px;
}

.contact-cta {
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 12px;
}

.contact-cta .btn-whatsapp {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: #25d366;
 color: #fff;
 font-weight: 600;
 padding: 12px 24px;
 border-radius: 50px;
 text-decoration: none;
 transition: background 0.3s ease;
}

.contact-cta .btn-whatsapp i {
 margin-right: 8px;
}

.contact-cta .btn-whatsapp:hover {
 background: #128c7e;
}

.contact-cta p {
 color: var(--text-secondary);
 font-size: 0.9rem;
 margin-top: 8px;
}

/* ======================
  Footer
  ====================== */
footer {
 background: var(--navy);
 color: var(--white);
 padding: 80px 0 40px;
 position: relative;
}

footer::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 height: 6px;
 background: var(--gradient-secondary);
}

.footer-content {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 48px;
 margin-bottom: 48px;
}

.footer-logo {
   font-weight: 800;
   font-size: 26px; /* Changed from 28px to 26px to match header */
   color: var(--white);
   display: flex;
   align-items: center;
   margin-bottom: 20px;
}

.footer-logo span {
   background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.footer-logo img {
   height: 60px; /* Matches header logo height */
   margin-right: 12px;
}


.footer-about p {
 color: rgba(255, 255, 255, 0.7);
 line-height: 1.6;
 margin-bottom: 24px;
}

.footer-heading {
 font-size: 18px;
 font-weight: 700;
 margin-bottom: 24px;
 color: var(--white);
}

.footer-links {
    padding: 0;
    margin: 0;
}

.footer-links li {
    list-style: none;   /* removes the dots */
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;  /* space between icon and text */
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 32px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 16px;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.copyright {
 color: rgba(255, 255, 255, 0.5);
 font-size: 14px;
}

.social-links {
 display: flex;
 gap: 16px;
}

.social-links a {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 40px;
 height: 40px;
 background: rgba(255, 255, 255, 0.1);
 color: var(--white);
 border-radius: 50%;
 transition: var(--transition);
}

.social-links a:hover {
 background: var(--teal);
 transform: translateY(-2px);
}

/* ======================
  Animations
  ====================== */
@keyframes fadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}

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

@keyframes fadeInLeft {
 from {
   opacity: 0;
   transform: translateX(-30px);
 }
 to {
   opacity: 1;
   transform: translateX(0);
 }
}

@keyframes fadeInRight {
 from {
   opacity: 0;
   transform: translateX(30px);
 }
 to {
   opacity: 1;
   transform: translateX(0);
 }
}

.animate-fade-in { animation: fadeIn 0.8s ease both; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease both; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease both; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* ======================
  Responsive Styles
  ====================== */
@media (max-width: 1024px) {
 .problem-cards {
   grid-template-columns: repeat(2, 1fr);
 }
}

@media (max-width: 768px) {
 .container {
   padding: 0 20px;
 }
 
 .section {
   padding: 80px 0;
 }
 
 .section-title {
   margin-bottom: 60px;
 }
 
 nav ul {
   display: none;
 }
 
 .mobile-menu-btn {
   display: block;
 }
 
 .problem-list {
   grid-template-columns: 1fr;
 }
 
 .approach-grid {
   grid-template-columns: 1fr;
 }
 
 .solution-highlights {
   grid-template-columns: 1fr;
 }
 
 .services-grid {
   grid-template-columns: 1fr;
 }
 
 .btn-group {
   flex-direction: column;
   align-items: center;
 }
 
 .btn {
   width: 100%;
   justify-content: center;
 }
 
 .footer-content {
   grid-template-columns: 1fr;
   text-align: center;
 }
 
 .footer-bottom {
   flex-direction: column;
   text-align: center;
 }
 
 .footer-about {
   display: flex;
   flex-direction: column;
   align-items: center;
 }
}

@media (max-width: 480px) {
 .container {
   padding: 0 16px;
 }
 
 .section {
   padding: 60px 0;
 }
 
 .section-title {
   margin-bottom: 40px;
 }
 
 .card {
   padding: 24px 20px;
 }
 
 .problem-cards {
   grid-template-columns: 1fr;
 }
 
 .hero h1 {
   font-size: 2.5rem;
 }
 
 .hero p {
   font-size: 1.1rem;
 }
}
/* Centralize content for "How We Solve These Challenges" */
.solution-highlights,
.solution-highlights .card,
.solution-highlights .card h3,
.solution-highlights .card p {
   text-align: center !important;
   justify-items: center;
}

/* Centralize content for "Our Services" */
.services-grid,
.services-grid .card,
.services-grid .card h3,
.services-grid .card p {
   text-align: center !important;
   justify-items: center;
}

/* Centralize content for "Our Approach" */
.approach-grid,
.approach-grid .card,
.approach-grid .card h3,
.approach-grid .card p {
   text-align: center !important;
   justify-items: center;
}
</style>
