/* ============================================
   HP7 BRAND LOGO STYLES
   ============================================ */
.brand-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Shield-based H Logo */
.brand-icon-shield {
    width: 42px;
    height: 50px;
    position: relative;
}

.brand-icon-shield svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.3));
}

/* Modern H Logo */
.brand-icon-modern {
    width: 40px;
    height: 50px;
    position: relative;
}

.brand-icon-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--hp7-blue) 0%, 
        var(--hp7-blue-light) 50%, 
        var(--hp7-blue) 100%);
    border-radius: 4px;
}

.brand-icon-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 8px;
    background: var(--hp7-navy);
    border-radius: 2px;
}

/* Animated Brand Icon */
.brand-icon-animated {
    width: 40px;
    height: 60px;
    position: relative;
}

.brand-icon-animated .shield-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    border-radius: 8px;
    animation: shieldPulse 2s ease-in-out infinite;
}

.brand-icon-animated .h-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 24px;
    background: var(--hp7-navy);
    border-radius: 3px;
}

.brand-icon-animated .h-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 8px;
    background: var(--hp7-blue-light);
    border-radius: 2px;
}

@keyframes shieldPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
    }
}

/* Final Logo Choice - Shield with H */
.logo-shield {
    width: 44px;
    height: 50px;
    position: relative;
}

.logo-shield svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 6px rgba(0, 212, 255, 0.4));
}

/* Brand Text Styling */
.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--hp7-white);
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--hp7-white) 0%, var(--hp7-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand svg,
.navbar-brand .brand-icon {
    flex-shrink: 0;
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
}

/* Header logo with circular background (matches footer) */
.navbar .header-logo {
    height: 55px;
    width: auto;
    max-width: 85px;
    display: block;
}

.navbar .header-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.navbar .header-logo-wrap .navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* Footer Brand */
.footer .brand-text {
    font-size: 1.4rem;
}

/* Logo with Glow Effect */
.logo-glow {
    position: relative;
}

.logo-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ============================================
   GLASS MORPHISM & MODERN EFFECTS
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
}

.glow-green {
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.3), 0 0 40px rgba(0, 200, 83, 0.1);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.3), 0 0 40px rgba(156, 39, 176, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-multi {
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-green) 50%, var(--hp7-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   PROFESSIONAL CARD DESIGNS
   ============================================ */
.card-glass {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(17, 34, 64, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card-glass::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 ease;
}

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

.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
}

.card-glass-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass-light:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

.float-delay-1 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.float-delay-2 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   CSS Variables - Brand Colors
   ============================================ */
:root {
    /* Primary Colors */
    --hp7-navy: #0A192F;
    --hp7-navy-light: #112240;
    --hp7-navy-lighter: #1d3557;
    
    /* Accent Colors */
    --hp7-blue: #00D4FF;
    --hp7-blue-light: #64FFDA;
    --hp7-green: #00C853;
    --hp7-green-light: #69F0AE;
    
    /* Neutral Colors */
    --hp7-white: #FFFFFF;
    --hp7-gray-100: #F8FAFC;
    --hp7-gray-200: #E2E8F0;
    --hp7-gray-300: #CBD5E1;
    --hp7-gray-400: #94A3B8;
    --hp7-gray-500: #64748B;
    --hp7-gray-600: #475569;
    --hp7-gray-700: #334155;
    --hp7-gray-800: #1E293B;
    --hp7-gray-900: #0F172A;
    
    /* Semantic Colors */
    --hp7-primary: var(--hp7-blue);
    --hp7-primary-dark: #00B8D4;
    --hp7-success: var(--hp7-green);
    --hp7-warning: #FFC107;
    --hp7-danger: #FF5252;
    --hp7-info: var(--hp7-blue-light);
    
    /* Typography - Using System Fonts for Performance */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --section-padding-sm: 60px 0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Background Colors - Dark Mode (Default) */
    --bg-primary: var(--hp7-navy);
    --bg-secondary: var(--hp7-navy-light);
    --bg-card: rgba(10, 25, 47, 0.95);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --navbar-bg: rgba(10, 25, 47, 0.95);
}

/* Light Mode Variables */
[data-theme="light"] {
    --hp7-navy: #F8FAFC;
    --hp7-navy-light: #FFFFFF;
    --hp7-navy-lighter: #E2E8F0;
    
    --hp7-white: #0A192F;
    --hp7-gray-100: #0F172A;
    --hp7-gray-200: #1E293B;
    --hp7-gray-300: #334155;
    --hp7-gray-400: #475569;
    --hp7-gray-500: #64748B;
    --hp7-gray-600: #475569;
    --hp7-gray-700: #CBD5E1;
    --hp7-gray-800: #E2E8F0;
    --hp7-gray-900: #F8FAFC;
    
    /* Background Colors - Light Mode */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #0A192F;
    --text-secondary: #475569;
    --border-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

/* Theme Transition */
body,
.navbar,
.card,
.footer,
.section,
.hero {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   THEME TOGGLE BUTTON - Professional Design
   ============================================ */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.35);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Icon container with smooth transition */
.theme-toggle .icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Sun Icon */
.theme-toggle .sun-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 3px rgba(255, 200, 0, 0.5));
}

.theme-toggle .sun-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--hp7-blue-light);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Moon Icon */
.theme-toggle .moon-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .moon-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--hp7-blue-light);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dark mode - show sun, hide moon */
[data-theme="dark"] .theme-toggle .sun-icon {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
    opacity: 0;
}

/* Light mode - show moon, hide sun */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 248, 225, 0.6);
    border-color: rgba(255, 200, 0, 0.25);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 248, 225, 0.8);
    border-color: rgba(255, 200, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 200, 0, 0.25);
}

[data-theme="light"] .theme-toggle .sun-icon {
    transform: translate(-50%, -50%) rotate(180deg) scale(0);
    opacity: 0;
}

[data-theme="light"] .theme-toggle .moon-icon {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon svg {
    stroke: #FF9800;
}

/* Glow effect on hover */
.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: none;
}

.theme-toggle:hover::before {
    opacity: 1;
    animation: themeGlow 2s linear infinite;
}

@keyframes themeGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Theme Toggle Responsive */
@media (max-width: 991px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle .icon-wrapper {
        width: 18px;
        height: 18px;
    }
    
    .theme-toggle .sun-icon,
    .theme-toggle .moon-icon {
        width: 18px;
        height: 18px;
    }
}

/* Mobile-friendly touch target */
@media (max-width: 576px) {
    .theme-toggle {
        width: 44px;
        height: 44px;
    }
}

/* Theme Toggle in Navbar */
.navbar .theme-toggle {
    margin-left: 0.5rem;
}

/* Smooth transition for all themed elements */
[data-theme="dark"] body,
body {
    /* Shared canvas gradient so multiple .hero sections appear as one surface */
    background: linear-gradient(180deg, #0b2d52 0%, #0a2748 34%, #09223f 66%, #081a33 100%);
}

[data-theme="light"] body {
    background-color: #F8FAFC;
    color: #0A192F;
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .brand-text {
    background: linear-gradient(135deg, #0A192F 0%, #1E40AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .nav-link {
    color: #334155 !important;
}

[data-theme="light"] .nav-link:hover {
    color: #00D4FF !important;
}

[data-theme="light"] .hero {
    background: #FFFFFF;
}

[data-theme="light"] .hero-title {
    color: #0A192F;
}

[data-theme="light"] .hero-subtitle {
    color: #64748B;
}

/* Footer - Theme Adaptive */
.footer {
    background: #0A192F;
}

.footer h5 {
    color: #FFFFFF !important;
}

.footer .text-white {
    color: #FFFFFF !important;
}

.footer .text-secondary {
    color: #94A3B8 !important;
}

.footer .footer-logo {
    height: 55px;
    width: auto;
    max-width: 85px;
    display: block;
}

.footer .footer-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.footer .footer-logo-wrap .navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 1;
}

.footer-links a {
    color: #94A3B8 !important;
}

.footer-links a:hover {
    color: #00D4FF !important;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0;
}

.footer-legal-link {
    display: inline-block;
    position: relative;
    padding: 0 0.6rem;
    font-size: 0.83rem;
    line-height: 1.25;
    white-space: nowrap !important;
    text-decoration: none;
}

.footer-legal-link + .footer-legal-link::before {
    content: "|";
    position: absolute;
    left: -0.08rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer-legal-links {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .footer-legal-links {
        row-gap: 0.35rem;
    }

    .footer-legal-link {
        font-size: 0.82rem;
    }
}

/* Light theme - white footer background with dark text */
[data-theme="light"] .footer {
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

[data-theme="light"] .footer h5 {
    color: #0A192F !important;
}

[data-theme="light"] .footer .text-white {
    color: #0A192F !important;
}

[data-theme="light"] .footer .text-secondary {
    color: #64748B !important;
}

[data-theme="light"] .footer-links a {
    color: #64748B !important;
}

[data-theme="light"] .footer-links a:hover {
    color: #00D4FF !important;
}

[data-theme="light"] .footer p {
    color: #64748B !important;
}

[data-theme="light"] .footer .social-link {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
}

[data-theme="light"] .footer .social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
}

[data-theme="light"] .footer hr {
    border-color: #E2E8F0 !important;
}

/* Card heading - theme-aware, works in both dark and light modes */
.card-heading {
    color: #e0e0e0;
}

[data-theme="light"] .card-heading {
    color: #1E293B !important;
}

[data-theme="light"] .card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light theme: override all hardcoded dark-mode text colors inside cards and sections */
[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5,
[data-theme="light"] .card h6,
[data-theme="light"] .card .card-title,
[data-theme="light"] .card p,
[data-theme="light"] .card .card-text,
[data-theme="light"] .card li,
[data-theme="light"] .card span:not(.badge),
[data-theme="light"] .card strong {
    color: #1E293B !important;
}
[data-theme="light"] .card .text-secondary,
[data-theme="light"] .card p.text-secondary,
[data-theme="light"] .card ul.text-secondary li {
    color: #475569 !important;
}
/* Sections that are NOT section-dark — fix inline color styles on headings/text */
[data-theme="light"] .section:not(.section-dark) h1,
[data-theme="light"] .section:not(.section-dark) h2,
[data-theme="light"] .section:not(.section-dark) h3,
[data-theme="light"] .section:not(.section-dark) h4,
[data-theme="light"] .section:not(.section-dark) h5,
[data-theme="light"] .section:not(.section-dark) h6 {
    color: #1E293B !important;
}
[data-theme="light"] .section:not(.section-dark) p,
[data-theme="light"] .section:not(.section-dark) li,
[data-theme="light"] .section:not(.section-dark) span:not(.badge):not(.highlight) {
    color: #334155 !important;
}
[data-theme="light"] .section:not(.section-dark) .text-secondary {
    color: #475569 !important;
}
/* Workflow cards / feature boxes / arch items */
[data-theme="light"] .workflow-card,
[data-theme="light"] .feature-box,
[data-theme="light"] .feature-box-large {
    background: #FFFFFF;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .workflow-card h5,
[data-theme="light"] .workflow-card p,
[data-theme="light"] .feature-box h5,
[data-theme="light"] .feature-box p {
    color: #1E293B !important;
}
[data-theme="light"] .arch-item,
[data-theme="light"] .flow-step,
[data-theme="light"] .tech-badge {
    color: #1E293B !important;
    background: rgba(0,0,0,0.04) !important;
}
/* Hero badge and stat labels in light sections */
[data-theme="light"] .section:not(.section-dark) .stat-label,
[data-theme="light"] .section:not(.section-dark) .small {
    color: #475569 !important;
}
/* Inline-styled containers (rgba dark backgrounds on light sections) */
[data-theme="light"] .section:not(.section-dark) [style*="rgba(0,212,255"],
[data-theme="light"] .section:not(.section-dark) [style*="rgba(100,255,218"],
[data-theme="light"] .section:not(.section-dark) [style*="rgba(0, 212, 255"],
[data-theme="light"] .section:not(.section-dark) [style*="rgba(100, 255, 218"] {
    color: #1E293B !important;
}

[data-theme="light"] .section-dark {
    background: #0A192F;
}

[data-theme="light"] .section-dark .text-white {
    color: #FFFFFF !important;
}

[data-theme="light"] .text-secondary {
    color: #64748B !important;
}

[data-theme="light"] .btn-outline-light {
    border-color: #CBD5E1;
    color: #334155;
}

[data-theme="light"] .btn-outline-light:hover {
    background: transparent;
    border-color: #00D4FF;
    color: #00D4FF;
}

/* Navbar Toggler - visible in both light and dark modes */
.navbar-toggler {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    min-width: 48px;
    min-height: 48px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.4);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    /* White strokes for dark mode - thick and prominent */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-toggler {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .navbar-toggler-icon {
    /* Same as dark mode - white lines for visibility */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar in light mode - white text */
[data-theme="light"] .navbar {
    background-color: rgba(10, 25, 47, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .navbar-brand .brand-text {
    color: #FFFFFF !important;
}

[data-theme="light"] .nav-link {
    color: #E2E8F0 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #00D4FF !important;
}

[data-theme="light"] .navbar-nav .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

[data-theme="light"] .navbar-nav .btn-outline-light:hover {
    background: transparent;
    border-color: #00D4FF;
    color: #00D4FF;
}

[data-theme="light"] .navbar-nav .btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #64FFDA 100%);
    border: none;
    color: #0A192F;
}

[data-theme="light"] .navbar-nav .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* ============================================
   COMPREHENSIVE THEME-ADAPTIVE STYLES
   Fix for text/background visibility issues
   ============================================ */

/* Form Controls - Light Mode */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: #FFFFFF;
    border-color: #CBD5E1;
    color: #0A192F;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background-color: #FFFFFF;
    border-color: #00D4FF;
    color: #0A192F;
}

[data-theme="light"] .form-control::placeholder {
    color: #94A3B8;
}

/* Form Labels - Light Mode */
[data-theme="light"] .form-label {
    color: #475569 !important;
}

/* Card Elements - Light Mode */
[data-theme="light"] .card-title {
    color: #0A192F !important;
}

[data-theme="light"] .card-text {
    color: #475569 !important;
}

[data-theme="light"] .card-body {
    color: #1E293B;
}

/* Text Classes - Light Mode */
[data-theme="light"] .text-white {
    color: #0A192F !important;
}

[data-theme="light"] .text-muted {
    color: #64748B !important;
}

/* Section Titles - Light Mode (except section-dark) */
[data-theme="light"] .section:not(.section-dark) .section-title {
    color: #0A192F !important;
}

[data-theme="light"] .section-subtitle {
    color: #475569 !important;
}

[data-theme="light"] .section-dark .section-subtitle {
    color: #94A3B8 !important;
}

/* Dropdown Menus - Light Mode */
[data-theme="light"] .dropdown-menu {
    background-color: #FFFFFF;
    border-color: #E2E8F0;
}

[data-theme="light"] .dropdown-item {
    color: #334155;
}

[data-theme="light"] .dropdown-item:hover {
    background-color: #F1F5F9;
    color: #00D4FF;
}

/* Accordion - Light Mode */
[data-theme="light"] .accordion-button {
    background-color: #F8FAFC;
    color: #0A192F !important;
}

[data-theme="light"] .accordion-button:not(.collapsed) {
    background-color: #EFF6FF;
    color: #0A192F !important;
}

[data-theme="light"] .accordion-body {
    background-color: #FFFFFF;
    color: #475569 !important;
}

/* FAQ Accordion Styling - Preserve rounded corners */
.faq-accordion-button {
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-accordion-button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.faq-accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4) !important;
}

.faq-accordion-button:not(.collapsed) {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[data-theme="light"] .faq-accordion-button {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0A192F !important;
}

[data-theme="light"] .faq-accordion-button:hover {
    background: #EFF6FF !important;
    border-color: #00D4FF !important;
}

[data-theme="light"] .faq-accordion-button:not(.collapsed) {
    background: #EFF6FF !important;
    border-color: #00D4FF !important;
}

.faq-accordion-body {
    color: #9ca3af !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

[data-theme="light"] .faq-accordion-body {
    color: #475569 !important;
}

/* Stats and Headings - Light Mode */
[data-theme="light"] .stat-number {
    color: #0A192F !important;
}

[data-theme="light"] .stat-label {
    color: #64748B !important;
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
    color: #0A192F !important;
}

/* Exception: section-dark headings stay white */
[data-theme="light"] .section-dark h1,
[data-theme="light"] .section-dark h2,
[data-theme="light"] .section-dark h3,
[data-theme="light"] .section-dark h4,
[data-theme="light"] .section-dark h5,
[data-theme="light"] .section-dark h6 {
    color: #FFFFFF !important;
}

[data-theme="light"] .section-dark .section-title {
    color: #FFFFFF !important;
}

[data-theme="light"] .section-dark .section-subtitle {
    color: #9ca3af !important;
}

/* List items and paragraph text - Light Mode */
[data-theme="light"] p {
    color: #475569;
}

[data-theme="light"] .section-dark p {
    color: #9ca3af;
}

[data-theme="light"] ul li,
[data-theme="light"] ol li {
    color: #475569;
}

/* Badge and Labels - Light Mode */
[data-theme="light"] .badge {
    color: #FFFFFF;
}

[data-theme="light"] .label {
    color: #0A192F;
}

/* List items with theme adaptive colors */
.list-unstyled li {
    color: #9ca3af;
}

[data-theme="light"] .list-unstyled li {
    color: #64748B !important;
}

/* Small text elements */
[data-theme="light"] small {
    color: #64748B !important;
}

[data-theme="light"] .small {
    color: #64748B !important;
}

[data-theme="light"] .section-dark small,
[data-theme="light"] .section-dark .small {
    color: #9ca3af !important;
}

/* Testimonial cards */
[data-theme="light"] .testimonial-avatar {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(100, 255, 218, 0.2) 100%);
}

/* Icon colors - theme adaptive */
[data-theme="light"] .section-icon i {
    color: #0A192F !important;
}

[data-theme="light"] .process-icon i {
    color: #0A192F !important;
}

/* SVG icons in sections */
[data-theme="light"] .section-icon svg {
    stroke: #0A192F !important;
}

/* Form card styling */
[data-theme="light"] .form-card {
    background: #FFFFFF !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
}

/* Demo and tier cards */
[data-theme="light"] .demo-card,
[data-theme="light"] .tier-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

[data-theme="light"] .demo-card:hover,
[data-theme="light"] .tier-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* FAQ items */
[data-theme="light"] .faq-item {
    background: #FFFFFF !important;
}

/* Checkboxes and radios */
[data-theme="light"] .form-check-label {
    color: #475569 !important;
}

[data-theme="light"] .form-check-input {
    border-color: #CBD5E1;
}

[data-theme="light"] .form-check-input:checked {
    background-color: #00D4FF;
    border-color: #00D4FF;
}

/* Text alignment classes */
[data-theme="light"] .text-start,
[data-theme="light"] .text-center,
[data-theme="light"] .text-end {
    color: inherit;
}

/* Fix for Bootstrap text-black class */
[data-theme="light"] .text-black {
    color: #0A192F !important;
}

/* ============================================================
   COMPREHENSIVE LIGHT THEME — GLOBAL TEXT VISIBILITY FIXES
   Covers Bootstrap utility classes, inline styles, all pages
   ============================================================ */

/* 1. Bootstrap .text-light — near-white, invisible on white bg
      EXCEPTION: inside .section-dark it should stay light */
[data-theme="light"] .text-light {
    color: #1E293B !important;
}
[data-theme="light"] .section-dark .text-light,
[data-theme="light"] .footer .text-light,
[data-theme="light"] .cta-section .text-light {
    color: #f8f9fa !important;
}

/* 2. Hero section — light gradient bg in light mode, fix all text */
[data-theme="light"] .hero .hero-badge span,
[data-theme="light"] .hero .stat-label,
[data-theme="light"] .hero p,
[data-theme="light"] .hero span:not(.badge):not(.highlight) {
    color: #475569 !important;
}
[data-theme="light"] .hero h1,
[data-theme="light"] .hero h2,
[data-theme="light"] .hero h3,
[data-theme="light"] .hero h4,
[data-theme="light"] .hero h5,
[data-theme="light"] .hero h6 {
    color: #0A192F !important;
}

/* 3. Inline style overrides — attribute selectors catch
      hardcoded dark-mode colors in any non-dark-bg context */
[data-theme="light"] .section:not(.section-dark) [style*="color: #e0e0e0"],
[data-theme="light"] .section:not(.section-dark) [style*="color:#e0e0e0"],
[data-theme="light"] .card [style*="color: #e0e0e0"],
[data-theme="light"] .card [style*="color:#e0e0e0"],
[data-theme="light"] .hero [style*="color: #e0e0e0"],
[data-theme="light"] .hero [style*="color:#e0e0e0"] {
    color: #1E293B !important;
}
[data-theme="light"] .section:not(.section-dark) [style*="color: #9ca3af"],
[data-theme="light"] .section:not(.section-dark) [style*="color:#9ca3af"],
[data-theme="light"] .card [style*="color: #9ca3af"],
[data-theme="light"] .card [style*="color:#9ca3af"],
[data-theme="light"] .hero [style*="color: #9ca3af"],
[data-theme="light"] .hero [style*="color:#9ca3af"] {
    color: #475569 !important;
}
[data-theme="light"] .section:not(.section-dark) [style*="color: #b0b0b0"],
[data-theme="light"] .section:not(.section-dark) [style*="color: #ccc"],
[data-theme="light"] .section:not(.section-dark) [style*="color: #aaa"],
[data-theme="light"] .card [style*="color: #b0b0b0"] {
    color: #475569 !important;
}

/* 4. Methodology cards — ptaas, overview */
[data-theme="light"] .methodology-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0;
}
[data-theme="light"] .methodology-card h5,
[data-theme="light"] .methodology-card h6,
[data-theme="light"] .methodology-card p {
    color: #1E293B !important;
}

/* 5. AI Hero widget — inline bg panels inside hero */
[data-theme="light"] .hero [style*="background: var(--hp7-navy-light)"],
[data-theme="light"] .hero [style*="background: rgba(255,255,255,0.1)"],
[data-theme="light"] .hero [style*="background: rgba(100,255,218,0.1)"] {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

/* 6. Progress bar background in hero */
[data-theme="light"] .hero .progress {
    background: #E2E8F0 !important;
}

/* 6b. Hero inline text colors — hero goes light, so fix hardcoded dark-mode colors */
[data-theme="light"] .hero [style*="color: #e0e0e0"] {
    color: #1E293B !important;
}
[data-theme="light"] .hero [style*="color: #9ca3af"] {
    color: #475569 !important;
}
[data-theme="light"] .hero span:not(.badge):not(.highlight):not([style*="color: #54cea9"]):not([style*="color: #00D4FF"]):not([style*="color: #64FFDA"]) {
    color: #334155 !important;
}
[data-theme="light"] .hero .stat-label {
    color: #475569 !important;
}

/* CTA section — always dark background, keep button text white */
[data-theme="light"] .cta-section .btn-outline-light {
    color: #f8f9fa !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}
[data-theme="light"] .cta-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* 7. Engine/feature items in non-dark sections */
[data-theme="light"] .section:not(.section-dark) .engine-item h6,
[data-theme="light"] .section:not(.section-dark) .engine-item span,
[data-theme="light"] .section:not(.section-dark) .d-flex h5,
[data-theme="light"] .section:not(.section-dark) .d-flex h6 {
    color: #1E293B !important;
}

/* 8. Inline-styled div panels (rgba overlays) inside non-dark sections */
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(0,212,255"],
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(100,255,218"],
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(0, 212, 255"],
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(100, 255, 218"],
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(0,200,83"],
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(255,152,0"],
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(156,39,176"],
[data-theme="light"] .section:not(.section-dark) [style*="background: rgba(0,188,212"] {
    color: #1E293B !important;
}

/* 9. Ensure .text-secondary is always readable */
[data-theme="light"] .text-secondary {
    color: #475569 !important;
}
[data-theme="light"] .section-dark .text-secondary {
    color: #94A3B8 !important;
}

/* 10. Strong / bold text in light sections */
[data-theme="light"] .section:not(.section-dark) strong,
[data-theme="light"] .section:not(.section-dark) b {
    color: #0A192F !important;
}

/* 11. CTA section always stays dark bg */
[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, #0A192F 0%, #1E3A5F 100%);
}
[data-theme="light"] .cta-title,
[data-theme="light"] .cta-text {
    color: #FFFFFF !important;
}

/* Dark mode defaults for key elements */
.card-text {
    color: #9ca3af;
}

.text-muted {
    color: #9ca3af !important;
}

.text-secondary {
    color: #94A3B8 !important;
}

small, .small {
    color: #9ca3af;
}

/* ============================================
   Base Styles - Performance Optimized
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hp7-gray-800);
    background-color: var(--hp7-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--hp7-navy);
}

a {
    color: var(--hp7-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--hp7-blue-light);
}

img {
    max-width: 100%;
    height: auto;
    loading: lazy;
    decoding: async;
}

/* ============================================
   Performance Utilities
   ============================================ */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform, opacity;
}

.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.contain-paint {
    contain: paint;
}

.contain-layout {
    contain: layout;
}

.contain-content {
    contain: content;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Navigation - Performance Optimized
   ============================================ */
.navbar {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0;
    transition: all var(--transition-base);
    will-change: padding, background-color;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hp7-white);
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--hp7-gray-300) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--hp7-blue) !important;
}

.dropdown-menu {
    background-color: var(--hp7-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--hp7-gray-300);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--hp7-blue);
}

.btn-outline-light {
    border-color: var(--hp7-gray-500);
    color: var(--hp7-gray-300);
}

.btn-outline-light:hover {
    background-color: transparent;
    border-color: var(--hp7-blue);
    color: var(--hp7-blue);
}

/* ============================================
   Buttons - Performance Optimized
   ============================================ */
.btn {
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
    transform: translateZ(0);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    border: none;
    color: var(--hp7-navy);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--hp7-blue-light) 0%, var(--hp7-blue) 100%);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    color: var(--hp7-navy);
}

.btn-outline-primary {
    border: 2px solid var(--hp7-blue);
    color: var(--hp7-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--hp7-blue);
    color: var(--hp7-navy);
    border-color: var(--hp7-blue);
}

.btn-success {
    background: linear-gradient(135deg, var(--hp7-green) 0%, var(--hp7-green-light) 100%);
    border: none;
    color: var(--hp7-navy);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--hp7-green-light) 0%, var(--hp7-green) 100%);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
    color: var(--hp7-navy);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   Hero Section - Performance Optimized
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    overflow: hidden;
    padding-top: 76px;
    contain: content;
}

/* Seamless stacked hero sections (no visible divider lines) */
.hero,
section.hero {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none;
}

section.hero + section.hero {
    margin-top: -1px;
}

/* Mobile compositing fix: avoid hairline seams between transparent hero sections */
@media (max-width: 768px) {
    .hero {
        contain: none;
    }

    section.hero + section.hero {
        margin-top: 0;
    }
}

.hero::before {
    content: '';
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 213, 255, 0.548);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--hp7-blue);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--hp7-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--hp7-blue);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--hp7-gray-400);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hp7-white);
    line-height: 1;
}

.stat-number .highlight {
    color: var(--hp7-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--hp7-gray-400);
    margin-top: 0.25rem;
}

/* ============================================
   Section Styles - Performance Optimized
   ============================================ */
.section {
    padding: var(--section-padding);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--hp7-gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-dark {
    background-color: var(--hp7-navy);
    color: var(--hp7-white);
    contain: content;
}

.section-dark .section-title {
    color: var(--hp7-white);
}

.section-dark .section-subtitle {
    color: var(--hp7-gray-400);
}

/* ============================================
   Cards - Performance Optimized
   ============================================ */
.card {
    background: var(--hp7-white);
    border: 1px solid var(--hp7-gray-200);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
    transform: translateZ(0);
}

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

.card-dark {
    background: var(--hp7-navy-light);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-dark:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--hp7-blue);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--hp7-gray-600);
    font-size: 0.95rem;
}

/* ============================================
   Feature Section
   ============================================ */
.feature-image {
    position: relative;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(100, 255, 218, 0.1) 100%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    transform: translate(-50%, -50%) translateZ(0);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--hp7-gray-200);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--hp7-green);
    margin-top: 0.25rem;
}

.feature-list h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-list p {
    font-size: 0.9rem;
    color: var(--hp7-gray-600);
    margin: 0;
}

/* ============================================
   Demo Hub Styles - Performance Optimized
   ============================================ */
.demo-tier {
    position: relative;
    background: var(--hp7-white);
    border: 2px solid var(--hp7-gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-base);
    overflow: hidden;
    transform: translateZ(0);
}

.demo-tier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hp7-blue), var(--hp7-blue-light));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.demo-tier:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.demo-tier:hover::before {
    opacity: 1;
}

.demo-tier.featured {
    border-color: var(--hp7-blue);
    transform: scale(1.05);
}

.demo-tier.featured::before {
    opacity: 1;
}

.tier-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    color: var(--hp7-navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.tier-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.tier-icon i {
    font-size: 2rem;
    color: var(--hp7-blue);
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hp7-blue);
    margin-bottom: 1.5rem;
}

.tier-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--hp7-gray-500);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--hp7-gray-700);
}

.tier-features li i {
    color: var(--hp7-green);
}

/* ============================================
   Form Styles
   ============================================ */
.form-control,
.form-select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--hp7-gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hp7-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--hp7-gray-700);
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: var(--hp7-gray-500);
}

/* ============================================
   Footer - Performance Optimized
   ============================================ */
.footer {
    background: var(--hp7-navy);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    contain: content;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--hp7-gray-400);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--hp7-blue);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--hp7-gray-400);
    transition: all var(--transition-fast);
    transform: translateZ(0);
}

.social-link:hover {
    background: var(--hp7-blue);
    color: var(--hp7-navy);
    transform: translateY(-2px);
}

/* ============================================
   Blog Styles - Performance Optimized
   ============================================ */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--hp7-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--hp7-gray-300);
    text-decoration: none;
    transition: all var(--transition-base);
    transform: translateZ(0);
}

.category-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--hp7-blue);
    color: var(--hp7-blue);
    transform: translateY(-2px);
}

.category-card i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.category-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-card {
    background: var(--hp7-white);
    border: 1px solid var(--hp7-gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
    transform: translateZ(0);
    height: 100%;
}

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

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-image i {
    font-size: 4rem;
    color: var(--hp7-blue);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--hp7-blue);
    color: var(--hp7-navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--hp7-gray-500);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-meta i {
    color: var(--hp7-blue);
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--hp7-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-title a:hover {
    color: var(--hp7-blue);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--hp7-gray-600);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-read-more {
    font-weight: 500;
    color: var(--hp7-blue);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.blog-read-more:hover {
    color: var(--hp7-blue-light);
}

/* ============================================
   Blog Post Styles
   ============================================ */
.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--hp7-blue);
    margin-bottom: 1.5rem;
}

.blog-meta-hero {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.toc-card {
    background: var(--hp7-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    padding: 0.5rem 0;
}

.toc-list a {
    color: var(--hp7-gray-400);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.toc-list a:hover {
    color: var(--hp7-blue);
}

.quote-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(100, 255, 218, 0.05) 100%);
    border-left: 4px solid var(--hp7-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.quote-box i {
    color: var(--hp7-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quote-box p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--hp7-gray-700);
    margin-bottom: 0.5rem;
}

.quote-box cite {
    font-size: 0.875rem;
    color: var(--hp7-gray-500);
}

.stats-box {
    background: var(--hp7-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hp7-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--hp7-gray-400);
    margin-top: 0.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--hp7-gray-100);
    color: var(--hp7-gray-600);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--hp7-blue);
    color: var(--hp7-navy);
}

.blog-share {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hp7-gray-200);
}

.social-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--hp7-gray-100);
    border-radius: 50%;
    color: var(--hp7-gray-600);
    margin-right: 0.75rem;
    transition: all var(--transition-fast);
    transform: translateZ(0);
}

.social-share-link:hover {
    background: var(--hp7-blue);
    color: var(--hp7-navy);
    transform: translateY(-2px);
}

.author-card {
    background: var(--hp7-gray-100);
    border-radius: 12px;
    padding: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--hp7-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 1.5rem;
    color: var(--hp7-navy);
}

.related-posts {
    background: var(--hp7-gray-100);
    border-radius: 12px;
    padding: 1.5rem;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--hp7-white);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
    transform: translateZ(0);
}

.related-post-card:hover {
    transform: translateX(4px);
}

.related-post-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-post-icon i {
    font-size: 1.25rem;
    color: var(--hp7-blue);
}

.related-post-card h6 {
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.related-post-card:hover h6 {
    color: var(--hp7-blue);
}

/* ============================================
   Print Styles - Performance Optimized
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--hp7-navy) 0%, var(--hp7-navy-light) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    contain: content;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
    transform: translateZ(0);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--hp7-white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--hp7-gray-400);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--hp7-gray-500);
}

.trust-badge i {
    font-size: 1.25rem;
}

/* ============================================
   Utilities
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-navy {
    background-color: var(--hp7-navy) !important;
}

.text-navy {
    color: var(--hp7-navy) !important;
}

.text-blue {
    color: var(--hp7-blue) !important;
}

.text-green {
    color: var(--hp7-green) !important;
}

/* ============================================
   Animation Classes - Performance Optimized
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Loading spinner for forms */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--hp7-white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--hp7-navy);
    border: 1px solid var(--hp7-blue);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-xl);
    transform: translateZ(0);
    animation: slideIn 0.3s ease-out;
}

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

.toast.success {
    border-color: var(--hp7-green);
}

.toast.error {
    border-color: var(--hp7-danger);
}

/* ============================================
   Responsive Styles - Performance Optimized
   ============================================ */
@media (max-width: 992px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .demo-tier.featured {
        transform: scale(1);
    }
    
    .section {
        contain-intrinsic-size: 0 500px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .section {
        contain-intrinsic-size: 0 400px;
    }
}

@media (max-width: 576px) {
    .card {
        padding: 1.5rem;
    }
    
    .demo-tier {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   ENHANCED MOBILE STYLES
   ============================================ */

/* ============================================
   MOBILE NAVIGATION DROPDOWN FIX
   ============================================ */

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 25, 47, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid rgba(0, 212, 255, 0.2);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
    }
    
    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
    }
    
    /* Dropdown Menu Styles - Mobile - CRITICAL FIX */
    .dropdown-menu {
        background: rgba(17, 34, 64, 0.98);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 12px;
        padding: 0.5rem;
        margin-top: 0.25rem !important;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        position: static !important;
        float: none !important;
        width: auto !important;
        min-width: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    .dropdown-item {
        color: var(--hp7-gray-300);
        border-radius: 8px;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        transition: all 0.2s ease;
        margin-bottom: 0.25rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item:hover {
        background: rgba(0, 212, 255, 0.15);
        color: var(--hp7-blue);
    }
    
    .dropdown-item:active,
    .dropdown-item.active {
        background: rgba(0, 212, 255, 0.2);
        color: var(--hp7-blue);
    }
    
    /* Dropdown Toggle Arrow Indicator - Mobile */
    .nav-item.dropdown .nav-link.dropdown-toggle {
        position: relative;
        padding-right: 2.5rem !important;
    }
    
    .nav-item.dropdown .nav-link.dropdown-toggle::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--hp7-gray-400);
        border-bottom: 2px solid var(--hp7-gray-400);
        transition: transform 0.3s ease;
        margin: 0;
    }
    
    .nav-item.dropdown .nav-link.dropdown-toggle[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(225deg);
    }
    
    /* Ensure navbar buttons are full width and touch-friendly */
    .navbar .btn {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    /* Dropdown divider styling */
    .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.1);
        margin: 0.5rem 0;
    }
    
    /* Fix for dropdown parent positioning */
    .nav-item.dropdown {
        position: relative;
    }
}

/* ============================================
   ENHANCED MOBILE DROPDOWN ANIMATIONS
   ============================================ */
@media (max-width: 991px) {
    /* Dropdown fade in animation - smooth appearance */
    .dropdown-menu {
        animation: mobileDropdownSlideIn 0.25s ease-out forwards;
    }
    
    @keyframes mobileDropdownSlideIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Active state for dropdown toggle */
    .nav-item.dropdown .nav-link.dropdown-toggle.active {
        color: var(--hp7-blue) !important;
    }
    
    /* Touch feedback for dropdown items */
    .dropdown-item:active {
        transform: scale(0.98);
    }
}

/* ============================================
   EXTRA SMALL MOBILE DEVICES
   ============================================ */
@media (max-width: 480px) {
    .dropdown-menu {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .nav-item.dropdown .nav-link.dropdown-toggle {
        padding-right: 2rem !important;
    }
    
    .nav-item.dropdown .nav-link.dropdown-toggle::after {
        right: 0.75rem;
    }
}

/* Touch-friendly button improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 56px;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 0.6rem 1.25rem;
    }
}

/* Mobile Hero Stats */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 50px;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image .chart-container {
        max-width: 100% !important;
        padding: 16px;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .hero-stats .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem 0.75rem !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .hero-stats .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .stat-item {
        padding: 0.75rem 0.5rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
        line-height: 1.3;
    }
}

/* Mobile Cards and Features */
@media (max-width: 768px) {
    .card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .card-glass {
        border-radius: 16px;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
    }
    
    .section-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .feature-card ul {
        text-align: left !important;
    }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .form-floating-custom .form-control {
        padding: 1rem;
        font-size: 16px;
    }
    
    .form-floating-custom .form-label {
        font-size: 1rem;
    }
    
    .form-card .card-body {
        padding: 1.5rem !important;
        background-color: #94A3B8;
    }
}

/* Mobile Table Styles */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 12px;
        border: 1px solid var(--hp7-gray-200);
    }
    
    .table {
        margin-bottom: 0;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        border-radius: 0 0 16px 16px;
    }
}

/* Mobile Navigation Toggler */
@media (max-width: 991px) {
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: 48px;
        min-height: 48px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
    }
    
    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
}

/* Mobile Grid Adjustments */
@media (max-width: 768px) {
    .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile Typography */
@media (max-width: 576px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    p {
        margin-bottom: 1rem;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer .brand-text {
        font-size: 1.25rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    .footer hr {
        margin: 1.5rem 0;
    }
    
    .footer > .container > .row > div {
        text-align: center;
    }
    
    .footer a.d-flex {
        justify-content: center;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Mobile CTA Section */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 1rem;
        margin: 1rem;
        border-radius: 16px !important;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}

/* Mobile Demo Hub Cards */
@media (max-width: 768px) {
    .tier-card {
        padding: 1.5rem;
        border-radius: 20px;
        margin-bottom: 1rem;
    }
    
    .section-icon {
        width: 56px;
        height: 56px;
    }
    
    .demo-card {
        text-align: center;
    }
    
    .demo-card .section-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .demo-card ul {
        text-align: left !important;
    }
}

/* Mobile Process Steps */
@media (max-width: 768px) {
    .process-step {
        text-align: center;
        padding: 1rem;
    }
    
    .process-step::after {
        display: none;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* Mobile Testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
        border-radius: 16px;
        text-align: center;
    }
    
    .testimonial-quote {
        position: relative;
        top: 0;
        left: 0;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-author {
        justify-content: center;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* Mobile Blog Cards */
@media (max-width: 768px) {
    .blog-card {
        border-radius: 16px;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-image i {
        font-size: 3rem;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Mobile Pricing Cards */
@media (max-width: 768px) {
    .pricing-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .pricing-icon {
        width: 60px;
        height: 60px;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
}

/* Mobile FAQ Section */
@media (max-width: 768px) {
    .faq-item {
        border-radius: 12px !important;
        margin-bottom: 0.75rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Tooltip/Info Cards */
@media (max-width: 768px) {
    .tooltip-rounded {
        padding: 16px;
        border-radius: 16px !important;
    }
    
    .tooltip-rounded .row {
        gap: 0.5rem !important;
    }
    
    .tooltip-rounded .col-6 {
        padding: 0.5rem;
    }
}

/* Mobile Feature Icons */
@media (max-width: 576px) {
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Trust Badges */
@media (max-width: 576px) {
    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trust-badge {
        font-size: 0.8rem;
    }
}

/* Mobile Counter Stats */
@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .counter-item {
        padding: 1rem;
    }
    
    .counter-number {
        font-size: 1.75rem;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }
}

/* Mobile Tech Stack */
@media (max-width: 768px) {
    .tech-stack-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .tech-icon i {
        font-size: 1.25rem;
    }
    
    .tech-stack-item h6 {
        font-size: 0.9rem;
    }
}

/* Mobile Chart Container */
@media (max-width: 768px) {
    .chart-container {
        padding: 16px;
        border-radius: 16px !important;
    }
    
    .chart-container svg {
        height: 150px !important;
    }
}

/* Better touch interactions on mobile */
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .dropdown-item,
    .card,
    .accordion-button {
        cursor: pointer;
    }
    
    a:hover,
    .btn:hover {
        /* Reduce hover effects on touch devices */
        transform: none;
    }
    
    .card:hover,
    .pricing-card:hover,
    .feature-box:hover {
        transform: none;
    }
}

/* Safe area insets for modern mobile devices */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .footer {
            padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        }
        
        .toast-container {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* ============================================
   Print Styles - Performance Optimized
   ============================================ */
@media print {
    .navbar,
    .btn,
    .hero-buttons,
    .cta-section {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
        contain: none;
    }
}

/* ============================================
   Blog Featured Card
   ============================================ */
.featured-card {
    overflow: hidden;
    border: 2px solid var(--hp7-blue);
}

.featured-card .card-icon-bg {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-card .card-icon-bg i {
    font-size: 5rem;
    color: var(--hp7-blue);
}

/* Certification Icon Box */
.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Process Icons */
.process-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.process-icon i {
    color: var(--hp7-blue);
}

/* Card Icon Background Small */
.card-icon-bg-sm {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.03) 100%);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-bg-sm i {
    font-size: 2.5rem;
    color: var(--hp7-blue);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .featured-card .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .featured-card .card-icon-bg {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .stat-item {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.25rem;
    }
}

/* ============================================
   Demo Cards - Enhanced Button Styles
   ============================================ */
.demo-card .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.demo-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.demo-card .btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #64FFDA 100%);
    border: none;
    color: #0A192F;
}

.demo-card .btn-primary:hover {
    background: linear-gradient(135deg, #64FFDA 0%, #00D4FF 100%);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.demo-card .btn-success {
    background: linear-gradient(135deg, #00C853 0%, #69F0AE 100%);
    border: none;
    color: #0A192F;
}

.demo-card .btn-success:hover {
    background: linear-gradient(135deg, #69F0AE 0%, #00C853 100%);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

.demo-card .btn-purple {
    background: linear-gradient(135deg, #9C27B0 0%, #E040FB 100%);
    border: none;
    color: white;
}

.demo-card .btn-purple:hover {
    background: linear-gradient(135deg, #E040FB 0%, #9C27B0 100%);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

/* ============================================
   Blog Card - Enhanced Styles
   ============================================ */
.trending-card {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.trending-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(4px);
}

.trending-card a {
    color: #FFFFFF !important;
    transition: color 0.2s ease;
}

.trending-card:hover a {
    color: var(--hp7-blue) !important;
}

.trending-card p {
    color: #9ca3af !important;
}

/* Light theme for trending cards */
[data-theme="light"] .trending-card {
    background: #FFFFFF;
    border: 2px solid #475569;
}

[data-theme="light"] .trending-card:hover {
    background: #EFF6FF;
    border-color: #00D4FF;
}

[data-theme="light"] .trending-card a {
    color: #0A192F !important;
}

[data-theme="light"] .trending-card p {
    color: #64748B !important;
}

.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.article-full {
    display: none;
}

.article-full.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.article-preview {
    display: block;
}

.article-full.show + .expand-btn {
    display: none;
}

.expand-btn {
    transition: all 0.3s ease;
}

.expand-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   Responsive Demo Card Buttons
   ============================================ */
@media (max-width: 992px) {
    .demo-card .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .demo-card {
        text-align: center;
    }
    
    .demo-card ul {
        text-align: left !important;
    }
    
    .demo-card .section-icon {
        margin-bottom: 1rem;
    }
}

/* ============================================
   Article Alert Styles
   ============================================ */
.alert-info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(100, 255, 218, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--hp7-navy);
}

.alert-info strong {
    color: var(--hp7-blue);
}

/* ============================================
   Badge Improvements
   ============================================ */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%) !important;
    color: #0A192F !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #64FFDA 100%) !important;
    color: #0A192F !important;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    color: var(--hp7-navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--hp7-navy) 0%, var(--hp7-navy-light) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent-text {
    color: var(--hp7-gray-300);
    font-size: 0.95rem;
    flex: 1;
}

.cookie-consent-text a {
    color: var(--hp7-blue);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    color: var(--hp7-navy);
    border: none;
}

.cookie-btn-accept:hover {
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--hp7-gray-400);
    border: 1px solid var(--hp7-gray-600);
}

.cookie-btn-decline:hover {
    border-color: var(--hp7-gray-400);
    color: var(--hp7-white);
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, 
        var(--hp7-gray-200) 0%, 
        var(--hp7-gray-100) 50%, 
        var(--hp7-gray-200) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 80%;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
}

/* ============================================
   TRUST BADGES SECTION
   ============================================ */
.trust-section {
    background: linear-gradient(135deg, var(--hp7-gray-100) 0%, var(--hp7-white) 100%);
    padding: 3rem 0;
    border-top: 1px solid var(--hp7-gray-200);
    border-bottom: 1px solid var(--hp7-gray-200);
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.7;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hp7-gray-500);
    transition: all 0.3s ease;
}

.trust-logo:hover {
    opacity: 1;
    color: var(--hp7-gray-700);
    transform: scale(1.05);
}

.trust-logo i {
    font-size: 1.5rem;
}

/* ============================================
   PROFESSIONAL TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--hp7-white);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid var(--hp7-gray-200);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 1.5rem;
    color: var(--hp7-blue);
    margin-bottom: 1rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hp7-gray-700);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar i {
    font-size: 1.5rem;
    color: var(--hp7-navy);
}

.testimonial-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hp7-navy);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--hp7-gray-500);
}

.testimonial-stars {
    margin-top: 1rem;
}

.testimonial-stars i {
    color: #FFC107;
    font-size: 0.875rem;
}

/* ============================================
   FEATURE BOX WITH ICON
   ============================================ */
.feature-box {
    background: var(--hp7-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--hp7-gray-200);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hp7-blue), var(--hp7-blue-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(100, 255, 218, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--hp7-blue), var(--hp7-blue-light));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--hp7-blue);
}

.feature-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hp7-navy);
    margin-bottom: 1rem;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--hp7-gray-600);
    line-height: 1.6;
}

/* ============================================
   PRICING CARD
   ============================================ */
.pricing-card {
    background: var(--hp7-white);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--hp7-gray-200);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--hp7-blue);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--hp7-blue) 0%, var(--hp7-blue-light) 100%);
    color: var(--hp7-navy);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(100, 255, 218, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-icon i {
    font-size: 1.75rem;
    color: var(--hp7-blue);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hp7-navy);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--hp7-blue);
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--hp7-gray-500);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--hp7-gray-500);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--hp7-gray-700);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--hp7-green);
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */
.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-custom .form-control {
    background: var(--hp7-white);
    border: 2px solid var(--hp7-gray-200);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating-custom .form-control:focus {
    border-color: var(--hp7-blue);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
    background: var(--hp7-white);
}

.form-floating-custom .form-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--hp7-gray-500);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-floating-custom .form-control:focus ~ .form-label,
.form-floating-custom .form-control:not(:placeholder-shown) ~ .form-label {
    top: 0;
    left: 0.75rem;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    background: var(--hp7-white);
    color: var(--hp7-blue);
    font-weight: 500;
}

.form-floating-custom textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 3rem;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hp7-gray-400);
    font-size: 1rem;
}

.input-with-icon .form-control:focus ~ .input-icon {
    color: var(--hp7-blue);
}

/* ============================================
   PROGRESS INDICATORS
   ============================================ */
.progress-ring {
    width: 120px;
    height: 120px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--hp7-gray-200);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--hp7-blue);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-ring-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hp7-navy);
}

.progress-ring-label {
    font-size: 0.75rem;
    color: var(--hp7-gray-500);
}

/* ============================================
   COUNTUP ANIMATION
   ============================================ */
.countup {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hp7-blue);
    line-height: 1;
}

.countup-suffix {
    font-size: 1.5rem;
    color: var(--hp7-blue-light);
}

/* ============================================
   TABS ENHANCEMENT
   ============================================ */
.nav-tabs-custom {
    border: none;
    gap: 0.5rem;
    background: var(--hp7-gray-100);
    padding: 0.5rem;
    border-radius: 12px;
}

.nav-tabs-custom .nav-link {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--hp7-gray-600);
    background: transparent;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--hp7-navy);
    background: var(--hp7-white);
}

.nav-tabs-custom .nav-link.active {
    color: var(--hp7-navy);
    background: var(--hp7-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-content-custom {
    padding: 2rem 0;
}

/* ============================================
   ACCORDION ENHANCEMENT
   ============================================ */
.accordion-custom {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
    --bs-accordion-btn-bg: var(--hp7-navy-light);
    --bs-accordion-btn-color: var(--hp7-white);
    --bs-accordion-active-bg: var(--hp7-navy);
    --bs-accordion-active-color: var(--hp7-blue);
}

.accordion-custom .accordion-button {
    border-radius: 12px !important;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
}

.accordion-custom .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300D4FF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-custom .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-custom .accordion-body {
    color: var(--hp7-gray-400);
    line-height: 1.7;
}

/* ============================================
   BADGE VARIANTS
   ============================================ */
.badge-soft {
    padding: 0.4em 0.8em;
    font-weight: 500;
    border-radius: 50px;
}

.badge-soft-blue {
    background: rgba(0, 212, 255, 0.15);
    color: var(--hp7-blue);
}

.badge-soft-green {
    background: rgba(0, 200, 83, 0.15);
    color: var(--hp7-green);
}

.badge-soft-purple {
    background: rgba(156, 39, 176, 0.15);
    color: #E040FB;
}

.badge-soft-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

/* ============================================
   DIVIDER STYLES
   ============================================ */
.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hp7-blue), var(--hp7-blue-light), transparent);
    border: none;
    margin: 2rem 0;
}

.divider-dotted {
    height: 2px;
    background: transparent;
    border-top: 2px dashed var(--hp7-gray-300);
    margin: 2rem 0;
}

/* ============================================
   SOCIAL PROOF COUNTERS
   ============================================ */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.counter-item {
    text-align: center;
    padding: 1.5rem;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hp7-blue);
    line-height: 1.2;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--hp7-gray-500);
    margin-top: 0.5rem;
}

/* ============================================
   IMAGE OVERLAY EFFECTS
   ============================================ */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.image-overlay img {
    transition: transform 0.5s ease;
}

.image-overlay:hover img {
    transform: scale(1.05);
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 992px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .counter-number {
        font-size: 2rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .trust-logos {
        gap: 2rem;
    }
    
    .trust-logo {
        font-size: 1rem;
    }
    
    .trust-logo i {
        font-size: 1.25rem;
    }
}

/* Legend item hover effects */
.ai-security-visual .col-6.col-md-3 .d-flex:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.ai-security-visual .col-6.col-md-3 .d-flex {
    transition: all 0.3s ease;
}

/* ============================================
   AI PROTECTION STATUS STYLES
   ============================================ */
.pulse-badge {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 200, 83, 0);
    }
}

#aiProtectionBar {
    transition: width 1.5s ease-out;
}

#aiStatusBadge {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Progress bar smooth transition */
.progress-bar {
    transition: width 1s ease-out;
}

/* AI Status indicator animation */
@keyframes status-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.ai-status-active {
    animation: status-glow 2s ease-in-out infinite;
}

/* ============================================
   GLOW CARD ANIMATION STYLES
   ============================================ */
.glow-card {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(17, 34, 64, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.5), rgba(100, 255, 218, 0.3), rgba(0, 200, 83, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
}

.glow-card:hover::after {
    opacity: 1;
}

/* Glow Icon Styles */
.glow-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 212, 255, 0.8), transparent 30%, rgba(0, 212, 255, 0.8) 60%, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glow-card:hover .glow-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.glow-card:hover .glow-icon::before {
    opacity: 1;
    animation: none;
}

.glow-card:hover .glow-icon::after {
    opacity: 1;
}

/* Process Step Glow Animation */
.process-step {
    position: relative;
    z-index: 1;
}

.process-step h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--hp7-gray-400);
    margin: 0;
}

/* Staggered animation delays for process cards */
.glow-card[data-aos="fade-up"][data-aos-delay="100"] {
    animation-delay: 0.1s;
}

.glow-card[data-aos="fade-up"][data-aos-delay="200"] {
    animation-delay: 0.2s;
}

.glow-card[data-aos="fade-up"][data-aos-delay="300"] {
    animation-delay: 0.3s;
}

.glow-card[data-aos="fade-up"][data-aos-delay="400"] {
    animation-delay: 0.4s;
}

/* Responsive Glow Cards */
@media (max-width: 992px) {
    .glow-card {
        padding: 1.75rem 1.25rem;
    }
    
    .glow-icon {
        width: 70px;
        height: 70px;
    }
    
    .glow-icon i {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .glow-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .glow-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .glow-card h6 {
        font-size: 1rem;
    }
    
    .glow-card p {
        font-size: 0.85rem;
    }
}

/* ============================================
   LOGIN PAGE STYLES - Theme Adaptive
   ============================================ */

/* Dark Mode (Default) */
.login-title {
    color: #FFFFFF;
}

.login-subtitle {
    color: #94A3B8;
}

.login-label {
    color: #FFFFFF;
}

.login-input {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.5);
    color: #FFFFFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.15);
}

.login-toggle-btn {
    border-radius: 0 12px 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.login-toggle-btn i {
    color: #64FFDA;
}

.login-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
}

.login-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.login-back-link {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-back-link:hover {
    color: #64FFDA;
}

/* Light Mode */
[data-theme="light"] .login-title {
    color: #0A192F;
}

[data-theme="light"] .login-subtitle {
    color: #64748B;
}

[data-theme="light"] .login-label {
    color: #0A192F;
}

[data-theme="light"] .login-input {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0A192F;
}

[data-theme="light"] .login-input::placeholder {
    color: #94A3B8;
}

[data-theme="light"] .login-input:focus {
    background: #F8FAFC;
    border-color: #00D4FF;
    color: #0A192F;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.15);
}

[data-theme="light"] .login-toggle-btn {
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
}

[data-theme="light"] .login-toggle-btn i {
    color: #00D4FF;
}

[data-theme="light"] .login-toggle-btn:hover {
    background: #E2E8F0;
    border-color: #00D4FF;
}

[data-theme="light"] .login-divider {
    border-color: #E2E8F0;
}

[data-theme="light"] .login-back-link {
    color: #64748B;
}

[data-theme="light"] .login-back-link:hover {
    color: #00D4FF;
}

/* ============================================
   HOME VIEW CENTRALIZED STYLES
   ============================================ */
.btn-outline-purple {
    border-color: #9C27B0;
    color: #9C27B0;
    transition: all 0.3s ease;
}

.btn-outline-purple:hover {
    background-color: #9C27B0;
    border-color: #9C27B0;
    color: #FFFFFF;
}

.partner-logo {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

[data-theme="light"] .glow-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .glow-card .text-white {
    color: #64748B !important;
}

[data-theme="light"] .tech-stack-item {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

[data-theme="light"] .tech-stack-item h6 {
    color: #0A192F !important;
}

[data-theme="light"] .tech-stack-item .text-white {
    color: #64748B !important;
}

section.hero:not(:first-of-type) {
    min-height: auto;
    display: block;
    align-items: initial;
    padding-top: 40px;
    padding-bottom: 40px;
}
