:root {
    --primary-green: #25D366;
    --primary-green-dark: #1da851;
    --secondary-green: #54f39a;
    --light-green: #a7f3d0;
    --dark-green: #065f46;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    
    /* Layout System Variables */
    --layout-max-width: 1400px;
    --layout-content-width: 1200px;
    --layout-narrow-width: 800px;
    
    /* Spacing System */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    --space-4xl: 8rem;     /* 128px */
    
    /* Grid System */
    --grid-gap-sm: var(--space-sm);
    --grid-gap-md: var(--space-lg);
    --grid-gap-lg: var(--space-xl);
    --grid-gap-xl: var(--space-2xl);
    
    /* Z-Index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* WordPress-like block styles */
    --wp--custom--content-size: 1200px;
    --wp--custom--wide-size: 1400px;
    --wp--style--block-gap: 30px;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f8fafc;
}

/* Layout System */
.layout-container {
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.layout-content {
    width: 100%;
    max-width: var(--layout-content-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.layout-narrow {
    width: 100%;
    max-width: var(--layout-narrow-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Legacy container for backward compatibility */
.container {
    max-width: var(--layout-content-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Ensure layout-content works the same as container */
.layout-content {
    max-width: var(--layout-content-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--grid-gap-md);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

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

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

/* Flexbox System */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* Spacing System */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }
.m-2xl { margin: var(--space-2xl); }

/* Section Layout */
.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: var(--space-4xl) 0;
}

/* Ensure sections are visible */
.trusted-partners,
.features,
.subscriptions,
.ghana-portraits,
.emergency,
.security,
.faq,
.contact {
    display: block;
    width: 100%;
    position: relative;
}

/* Debug borders removed - sections are now visible */

/* ========================================
   ADVANCED UI COMPONENTS STYLES
   ======================================== */

/* Stepper Component Styles */
.stepper-container {
    position: relative;
    padding: 2rem 0;
}

.stepper-step {
    position: relative;
    margin-bottom: 2rem;
}

.stepper-step-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stepper-step-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stepper-step-content.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.stepper-step-content.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

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

.stepper-step-number {
    background: linear-gradient(135deg, var(--primary-green), #10b981);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.stepper-step-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.stepper-step-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.stepper-step-description {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.stepper-step-detail {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.stepper-connector {
    position: absolute;
    z-index: 1;
}

.stepper-connector-vertical {
    left: 1.25rem;
    width: 2px;
    background: linear-gradient(to bottom, #10b981, #34d399);
}

.stepper-connector-horizontal {
    top: 50%;
    height: 2px;
    background: linear-gradient(to right, #10b981, #34d399);
    transform: translateY(-50%);
}

/* Staggered Menu Component Styles */
.staggered-menu-container {
    position: relative;
}

.staggered-menu-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.staggered-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #10b981;
}

.staggered-menu-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staggered-menu-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.staggered-menu-item-text {
    flex: 1;
}

.staggered-menu-item-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.staggered-menu-item-description {
    font-size: 14px;
    color: #4b5563;
}

.staggered-menu-item-badge {
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.staggered-menu-item-visible {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* Accordion Component Styles */
.accordion-container {
    position: relative;
}

.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: white;
}

.accordion-header {
    padding: 1.25rem;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f9fafb;
}

.accordion-header.active {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-bottom: 1px solid #d1fae5;
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.accordion-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.accordion-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 18px;
}

.accordion-toggle-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-icon-arrow,
.accordion-icon-chevron,
.accordion-icon-plus {
    display: inline-block;
    font-size: 16px;
    color: #10b981;
    transition: transform 0.3s ease;
}

.accordion-content {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

.accordion-content-inner {
    padding: 0 1.25rem 1.25rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Enhanced Footer Styles */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #10b981;
}

.footer-company {
    grid-column: span 2;
}

.footer-logo img {
    margin-bottom: 20px;
}

.footer-company p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #ccc;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.social-links a:hover {
    color: #059669;
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(100%);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #9ca3af;
}

/* Responsive Design for Components */
@media (max-width: 768px) {
    .stepper-step-content {
        padding: 1rem;
    }
    
    .stepper-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stepper-step-number {
        width: 2rem;
        height: 2rem;
        font-size: 12px;
    }
    
    .stepper-step-title {
        font-size: 18px;
    }
    
    .staggered-menu-item {
        padding: 0.75rem;
    }
    
    .staggered-menu-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-content-inner {
        padding: 0 1rem 1rem;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .footer-company {
        grid-column: span 1;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* WordPress-like block styles - merged into main :root */

.wp-site-blocks { overflow-x: hidden; }
.site-main.entry-content > .wp-block-group { padding: clamp(48px, 6vw, 96px) 0; }
.alignwide .container,
.wp-block-group.alignwide .container { max-width: var(--wp--custom--wide-size); }
.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.wp-block-buttons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.wp-block-button__link { border-radius: 50px; }

/* Typography system (global) */
html, body { color: #1a1a1a; }
body { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.5; }
h1, h2, h3 { letter-spacing: -0.5px; }
h1 { font-size: 48px; font-weight: 700; line-height: 1.2; color: #1a1a1a; }
h2 { font-size: 36px; font-weight: 600; line-height: 1.3; color: #10b981; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.4; color: #374151; }
p  { font-size: 16px; font-weight: 400; line-height: 1.6; margin-bottom: 24px; color: #4b5563; }
small { font-size: 14px; font-weight: 400; color: #666; }
a { color: #0a84ff; }
.section, section { margin-bottom: 48px; }

@media (max-width: 768px) {
    h1 { font-size: 36px; font-weight: 700; line-height: 1.3; }
    h2 { font-size: 28px; font-weight: 600; line-height: 1.4; }
    h3 { font-size: 22px; font-weight: 600; line-height: 1.5; }
    p  { font-size: 16px; font-weight: 400; line-height: 1.6; }
    small { font-size: 12px; }
}

/* Site header (WordPress-like) */
.site-header { padding: 18px 0; background: transparent; position: static !important; top: auto; z-index: auto; }
.site-header .site-header-inner,
.site-header .site-nav { position: static !important; }
.site-header .btn { padding: 6px 12px; border-radius: 18px; font-size: 0.85rem; }
@media (max-width: 640px) {
    .site-header .btn { padding: 5px 10px; border-radius: 16px; font-size: 0.8rem; }
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-branding { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-branding img { height: 28px; width: auto; display: block; }

/* Circular text around logo */
.logo-with-circular-text {
    position: relative;
    display: inline-block;
}

.circular-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 1;
}

.circular-text-svg {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.circular-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    fill: #10b981;
    letter-spacing: 2px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-center {
    position: relative;
    z-index: 2;
    height: 28px;
    width: auto;
    display: block;
}




/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-green) 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.floating-element--1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element--2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element--3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

.floating-element--4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.floating-element--5 {
    width: 40px;
    height: 40px;
    top: 80%;
    right: 40%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Particle System */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    animation: particle-float 8s linear infinite;
}

.particle:nth-child(odd) {
    background: rgba(59, 130, 246, 0.1);
    animation-duration: 12s;
}

.particle:nth-child(3n) {
    background: rgba(168, 85, 247, 0.1);
    animation-duration: 10s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.blob--green {
    width: 300px;
    height: 300px;
    background: rgba(37, 211, 102, 0.3);
    top: 20%;
    right: 10%;
    animation-delay: -2s;
}

.blob--teal {
    width: 400px;
    height: 400px;
    background: rgba(167, 243, 208, 0.4);
    bottom: 20%;
    left: 5%;
    animation-delay: -4s;
}

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

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Typewriter Effect */
.typewriter-text {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.typewriter-line {
    display: block;
    white-space: nowrap;
    margin: 0 auto;
    min-height: 1.2em;
    line-height: 1.2;
}

/* TextType Animation Styles */
.text-type-cursor {
    display: inline-block;
    margin-left: 2px;
    color: #10b981;
    font-weight: bold;
    animation: blink 1s infinite;
}

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

/* Enhanced typewriter effect */
.typewriter-text:hover .text-type-cursor {
    animation-duration: 0.5s;
}

/* Smooth text transitions */
.typewriter-line {
    transition: all 0.3s ease;
}

/* Scroll Performance Optimizations */
* {
    scroll-behavior: smooth;
}

/* Smooth scroll offset for better positioning */
html {
    scroll-padding-top: 80px; /* Account for fixed header if any */
}

/* Reduce animation complexity during scroll */
.scrolling * {
    animation-duration: 0.15s !important;
    transition-duration: 0.15s !important;
}

/* Faster content appearance */
.fade-in {
    transition: all 0.2s ease !important;
    animation-duration: 0.2s !important;
}

.staggered-item {
    transition: all 0.2s ease !important;
    animation-duration: 0.2s !important;
}

.feature-card {
    transition: all 0.2s ease !important;
    animation-duration: 0.2s !important;
}

/* Optimize heavy animations */
.particles-container,
.logo-loop,
.typewriter-text {
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

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

/* Original typewriter animations (kept for compatibility) */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #10b981; }
}

.hero p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.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: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-secondary {
    background: white;
    color: #10b981;
    border-color: #10b981;
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
}

.scroll-indicator {
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3;
    color: #10b981;
    margin: 48px 0 16px 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* Trusted Partners Section */
.trusted-partners {
    background: white;
    min-height: 400px; /* Ensure section has minimum height */
}

.logo-section {
    margin-bottom: 40px;
    min-height: 200px; /* Ensure minimum height */
}

.logo-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.logo-loop-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.logo-loop {
    display: flex;
    gap: 40px;
    width: max-content;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    min-width: 180px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: brightness(1);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item:hover img {
    filter: brightness(1.1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* PillNav Component Styles */
.pill-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pill-nav-track {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 42px;
    background: rgba(16, 185, 129, 0.1);
    overflow: hidden;
}

.pill-nav-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 42px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pill-nav-pills {
    position: relative;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.pill-nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 42px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.pill-nav-pill::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;
}

.pill-nav-pill:hover::before {
    left: 100%;
}

.pill-nav-pill.pill-nav-active {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pill-nav-pill.pill-nav-inactive {
    color: #6b7280;
}

.pill-nav-pill.pill-nav-hover {
    color: #10b981;
    transform: translateY(-1px);
}

.pill-nav-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.pill-nav-pill:hover .pill-nav-icon {
    transform: scale(1.1);
}

.pill-nav-pill.pill-nav-active .pill-nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.pill-nav-text {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pill-nav-wrapper {
        padding: 6px;
    }
    
    .pill-nav-pill {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .pill-nav-icon {
        font-size: 14px;
    }
    
    .pill-nav-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .pill-nav-wrapper {
        padding: 4px;
    }
    
    .pill-nav-pill {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .pill-nav-icon {
        font-size: 12px;
    }
}

/* Features Section */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-card::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.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #374151;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* Subscriptions section */
.subscriptions {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.subscriptions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    opacity: 0.1;
    z-index: -1;
}

.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap-lg);
    align-items: center;
}

.subs-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    min-height: 260px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subs-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f6f8fa;
    padding: 8px;
    display: block;
}

/* Logo rotator stage (stacked logos that fade in one-by-one) */
.subs-logos {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.subs-logo {
    position: absolute;
    max-width: 60%;
    max-height: 60%;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity .6s ease, transform .6s ease;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
    will-change: opacity, transform;
}

.subs-logo.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.subs-logo.hidden { display: none; }

.subs-copy h3 {
    color: #047857;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subs-copy p {
    color: #4b5563;
    margin-bottom: 16px;
}

/* Ghana Portraits Section */
.ghana-portraits {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--light-green) 100%);
}

.portraits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid-gap-lg);
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.portrait-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.portrait-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.12);
}

.portrait-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
}

.portrait-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 5;
    background: linear-gradient(180deg, #eef2f7 0%, #f9fafb 100%);
}

.logo-strip {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
}

.bank-logo, .telco-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    animation: bounce 2.2s infinite;
}

.logo-strip .bank-logo:nth-child(2), 
.logo-strip .telco-logo:nth-child(2) { 
    animation-delay: .2s; 
}

.logo-strip .bank-logo:nth-child(3), 
.logo-strip .telco-logo:nth-child(3) { 
    animation-delay: .4s; 
}

.logo-strip .bank-logo:nth-child(4), 
.logo-strip .telco-logo:nth-child(4) { 
    animation-delay: .6s; 
}

/* Telco logos can have slightly different styling */
.telco-logo {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.portrait-caption {
    margin-top: 16px;
    color: #374151;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.portrait-caption .highlight {
    color: #047857;
}

/* Emergency Section */
.emergency {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* Security Section */
.security {
    background: var(--bg-light);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap-lg);
}

.security-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* FAQ Section */
.faq {
    background: white;
}

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

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.faq-question {
    width: 100%;
    padding: 25px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding-bottom: 25px;
}

.faq-answer p {
    color: #4b5563;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap-xl);
    align-items: center;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #374151;
    letter-spacing: -0.5px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item span:first-child {
    font-size: 24px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Grid Classes */
@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .security-grid,
    .portraits-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-gap-md);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-gap-lg);
    }

    
    /* Mobile Layout Adjustments */
    .layout-container,
    .layout-content,
    .layout-narrow {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    /* Footer responsive */
    .site-footer .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
}

/* Performance & Mobile improvements */
@media (max-width: 640px) {
    .site-header-inner { flex-direction: column; align-items: center; }
}

.subscriptions, .ghana-portraits, .security, .contact {
    content-visibility: auto;
    contain-intrinsic-size: 600px 800px;
}

img.fade-img { 
    opacity: 1; /* Temporarily visible for debugging */
    transition: opacity .4s ease; 
}

img.fade-img.visible { 
    opacity: 1; 
}
img.fade-img.loaded { opacity: 1; }

/* Bounce animation for bank logos */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 1000;
    display: none;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 300px;
}

.cookie-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.cookie-banner-text p {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #d1d5db;
    margin: 0;
}

.cookie-policy-link {
    color: #10b981;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-policy-link:hover {
    color: #059669;
}

.cookie-banner-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-accept-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.cookie-manage-btn {
    color: #d1d5db;
    text-decoration: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-manage-btn:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Mobile responsive styles for cookie banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-banner-text {
        min-width: auto;
        justify-content: center;
    }
    
    .cookie-banner-text p {
        font-size: 14px;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-accept-btn,
    .cookie-manage-btn {
        flex: 1;
        text-align: center;
    }
}
