:root {
    --color-primary-50: #eff6ff;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
}

.theme-dark {
    --color-primary-50: #1e293b;
    --color-primary-400: #60a5fa;
    --color-primary-500: #60a5fa;
    --color-primary-600: #3b82f6;
    --color-primary-700: #2563eb;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.loading {
    display: none;
}
.loading.show {
    display: flex;
}

/* Override bg-white for solid background in light mode */
.theme-light .bg-white {
    --tw-bg-opacity: 1 !important;
    background-color: rgb(255 255 255 / 100%) !important;
}

/* Ensure light mode has pure white background */
.theme-light body,
.theme-light main,
.theme-light section {
    background-color: transparent;
}

/* Override dark:bg-gray-800 for solid background in dark mode */
.dark .dark\:bg-gray-800 {
    --tw-bg-opacity: 1 !important;
    background-color: rgb(31 41 55 / 100%) !important;
}

/* Mobile-specific fixes to prevent flickering */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Keep content surfaces transparent so the animated background stays visible */
    .theme-light body,
    .theme-light main,
    .theme-light section,
    .theme-dark body,
    .dark body,
    .theme-dark main,
    .dark main,
    .theme-dark section,
    .dark section {
        background-color: transparent !important;
    }
}

/* Tablet-specific fixes (768px - 1024px) to prevent scroll flickering */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Disable expensive CSS properties during scroll on tablet */
    .swpw3-animated-bg {
        contain: strict;
    }
    
    
    /* Simplify hover effects on tablet */
    .landing-card:hover,
    .landing-card-soft:hover {
        transform: none;
    }
    
    /* Reduce animation complexity on tablet */
    [data-aos] {
        transition-duration: 0.4s !important;
    }
    
    /* Prevent scroll jank by optimizing paint operations */
    section {
        overflow-x: hidden;
    }
}

/* Keep sidebar solid background when open on mobile */
@media (max-width: 1023px) {
    .sidebar.open {
        background-color: rgb(255 255 255) !important;
    }
    .dark .sidebar.open {
        background-color: rgb(31 41 55) !important;
    }
}
.dropdown-menu {
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}
.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.notification-badge {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
.sidebar.open {
    transform: translateX(0);
}
@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}
.sidebar-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Theme transitions - only apply to specific elements, not all */
body,
nav,
footer,
.landing-card,
.landing-card-soft,
input,
textarea,
button,
a {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Disable theme transitions on mobile to prevent flickering */
@media (max-width: 768px) {
    body,
    nav,
    footer,
    .landing-card,
    .landing-card-soft,
    input,
    textarea,
    button,
    a {
        transition: none !important;
    }
    
    /* Prevent all transitions during theme change */
    .theme-transitioning,
    .theme-transitioning * {
        transition: none !important;
    }
}

/* Background is defined in /template/animated-background.css */

/* Geometric shapes / particles removed (background is centralized in /template/animated-background.css) */

/* (intentionally removed background-shape responsive rules) */

/* Performance rules for the shared background */
@media (prefers-reduced-motion: reduce) {
    .swpw3-animated-bg,
    .swpw3-animated-bg::after,
    .swpw3-animated-bg__wave {
        animation: none !important;
        transition: none !important;
    }
}

/* AI Chat Highlighting */
.ai-highlighted-element {
    position: relative;
    border: 3px solid #3b82f6 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
    animation: ai-highlight-pulse 2s ease-in-out infinite;
    z-index: 1000;
}

@keyframes ai-highlight-pulse {
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
        border-color: #3b82f6;
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.5);
        border-color: #2563eb;
    }
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
        border-color: #3b82f6;
    }
}

/* Dark mode highlighting */
.dark .ai-highlighted-element {
    border-color: #60a5fa !important;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5), 0 0 40px rgba(96, 165, 250, 0.3) !important;
}

.dark .ai-highlighted-element {
    animation: ai-highlight-pulse-dark 2s ease-in-out infinite;
}

@keyframes ai-highlight-pulse-dark {
    0% {
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.5), 0 0 40px rgba(96, 165, 250, 0.3);
        border-color: #60a5fa;
    }
    50% {
        box-shadow: 0 0 30px rgba(96, 165, 250, 0.8), 0 0 60px rgba(96, 165, 250, 0.5);
        border-color: #3b82f6;
    }
    100% {
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.5), 0 0 40px rgba(96, 165, 250, 0.3);
        border-color: #60a5fa;
    }
}

/* AI Chat Styles */
.ai-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 40;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ai-chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.ai-chat-button.pulse {
    animation: pulse 2s infinite;
}

.ai-chat-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 50;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.dark .ai-chat-modal {
    background: #1f2937;
    color: white;
}

.ai-chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-close, .ai-chat-clear {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.ai-chat-close:hover, .ai-chat-clear:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.ai-message.user {
    background: #3b82f6;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-message.assistant {
    background: #f3f4f6;
    color: #1f2937;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.dark .ai-message.assistant {
    background: #374151;
    color: #f9fafb;
}

.ai-chat-input-container {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.dark .ai-chat-input-container {
    border-top-color: #374151;
}

.ai-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
}

.dark .ai-chat-input {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

.ai-chat-send {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-chat-send:hover {
    background: #2563eb;
}

.ai-chat-send:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.ai-chat-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.ai-chat-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    animation: typing 1.4s infinite;
}

.ai-chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Lightning border highlight */
.lightning-border {
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    animation: lightning-border 2s infinite;
}

@keyframes lightning-border {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        border-color: rgba(59, 130, 246, 1);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}

.lightning-border-pulse {
    animation: lightning-border-pulse 1s ease-out;
}

@keyframes lightning-border-pulse {
    0% {
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        border-color: rgba(59, 130, 246, 1);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    }
    100% {
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .ai-chat-modal {
        width: calc(100vw - 40px);
        height: 400px;
        right: 20px;
        bottom: 80px;
    }
}

/* Markdown styling for AI chat responses */
.ai-message.assistant p {
    margin: 0.5em 0;
    line-height: 1.4;
}

.ai-message.assistant h1,
.ai-message.assistant h2,
.ai-message.assistant h3,
.ai-message.assistant h4,
.ai-message.assistant h5,
.ai-message.assistant h6 {
    margin: 0.8em 0 0.4em 0;
    font-weight: 600;
    line-height: 1.2;
}

.ai-message.assistant h1 { font-size: 1.3em; }
.ai-message.assistant h2 { font-size: 1.2em; }
.ai-message.assistant h3 { font-size: 1.1em; }
.ai-message.assistant h4 { font-size: 1em; }
.ai-message.assistant h5 { font-size: 0.9em; }
.ai-message.assistant h6 { font-size: 0.8em; }

.ai-message.assistant ul,
.ai-message.assistant ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.ai-message.assistant li {
    margin: 0.2em 0;
}

.ai-message.assistant code {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.ai-message.assistant pre {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.8em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.8em 0;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.ai-message.assistant pre code {
    background: none;
    padding: 0;
}

.ai-message.assistant blockquote {
    border-left: 3px solid #3b82f6;
    padding-left: 1em;
    margin: 0.8em 0;
    color: #6b7280;
    font-style: italic;
}

.ai-message.assistant strong {
    font-weight: 600;
}

.ai-message.assistant em {
    font-style: italic;
}

.dark .ai-message.assistant code,
.dark .ai-message.assistant pre {
    background: rgba(96, 165, 250, 0.1);
}

.dark .ai-message.assistant blockquote {
    border-left-color: #60a5fa;
    color: #9ca3af;
}

/* ============================================
   LANDING PAGE - RESPONSIVE SECTION STYLES
   ============================================ */

/* Section base styles */
section {
    position: relative;
    overflow: hidden;
}

/* Landing card styles */
.landing-card {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}
.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}
.landing-card-soft {
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.landing-card-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Image container styles */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}
.img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Hero section responsive */
@media (max-width: 768px) {
    #hero {
        min-height: auto !important;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #hero .grid:not(.grid-cols-4) {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    #hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    #hero h1 span {
        font-size: 1rem !important;
        margin-top: 0.5rem;
    }
    
    #hero .landing-card {
        max-width: 100% !important;
        margin: 0 auto;
    }
}

/* Apps section responsive */
@media (max-width: 768px) {
    #apps .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    #apps .grid .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    #apps .aspect-\[4\/5\] {
        aspect-ratio: 4/3;
        max-height: 300px;
    }
    
    #apps .translate-y-6 {
        transform: translateY(0) !important;
    }
}

/* Self-service section responsive */
@media (max-width: 768px) {
    #selfservice .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    #selfservice .aspect-\[16\/9\] {
        aspect-ratio: 16/10;
    }
}

/* Workflow section responsive */
@media (max-width: 768px) {
    #workflow .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    #workflow .landing-card-soft {
        padding: 1rem;
    }
}

/* Payment section responsive */
@media (max-width: 768px) {
    #payment .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    #payment .aspect-\[16\/10\] {
        aspect-ratio: 16/10;
    }
}

/* CCTV section responsive */
@media (max-width: 768px) {
    #cctv .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    #cctv .aspect-\[16\/10\] {
        aspect-ratio: 16/10;
    }
}

/* Contact section responsive */
@media (max-width: 768px) {
    #contact .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    #contact form .grid {
        grid-template-columns: 1fr !important;
    }
    
    #contact .landing-card-soft {
        padding: 1rem;
    }
}

/* Navigation responsive */
@media (max-width: 640px) {
    nav .flex.items-center.space-x-2 {
        gap: 0.5rem;
    }
    
    nav a[href="/sites/Login/"],
    nav a[href="/sites/Register/"] {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Footer responsive */
@media (max-width: 640px) {
    footer {
        padding: 1rem;
    }
    
    footer p {
        font-size: 0.75rem;
    }
}

/* ============================================
   PROFESSIONAL FOOTER (SWPW3)
   ============================================ */

.swpw3-footer {
    position: relative;
}

/* Footer gradient overlay removed for better performance */

.swpw3-footer__cta {
    position: relative;
}

.swpw3-footer__top {
    position: relative;
}

/* Gradient border removed for better performance */

.swpw3-footer__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(51, 65, 85, 0.95);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.dark .swpw3-footer__pill,
.theme-dark .swpw3-footer__pill {
    color: rgba(226, 232, 240, 0.92);
    background: rgba(2, 6, 23, 0.35);
    border-color: rgba(51, 65, 85, 0.55);
}

.swpw3-footer__metric {
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.75);
}

.dark .swpw3-footer__metric,
.theme-dark .swpw3-footer__metric {
    background: rgba(2, 6, 23, 0.35);
    border-color: rgba(51, 65, 85, 0.6);
}

.swpw3-footer__contactcard {
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.06);
}

.dark .swpw3-footer__contactcard,
.theme-dark .swpw3-footer__contactcard {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

/* Gradient border removed for better performance */

.swpw3-footer__link {
    color: rgba(71, 85, 105, 0.95);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.swpw3-footer__link:hover {
    color: rgb(2, 132, 199);
    transform: translateY(-1px);
}

.dark .swpw3-footer__link,
.theme-dark .swpw3-footer__link {
    color: rgba(203, 213, 225, 0.92);
}

.dark .swpw3-footer__link:hover,
.theme-dark .swpw3-footer__link:hover {
    color: rgb(56, 189, 248);
}

.swpw3-footer__iconlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: rgba(71, 85, 105, 0.95);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 232, 240, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.swpw3-footer__iconlink:hover {
    transform: translateY(-2px);
    color: rgb(2, 132, 199);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18);
}

.dark .swpw3-footer__iconlink,
.theme-dark .swpw3-footer__iconlink {
    color: rgba(203, 213, 225, 0.92);
    background: rgba(2, 6, 23, 0.35);
    border-color: rgba(51, 65, 85, 0.6);
}

.dark .swpw3-footer__iconlink:hover,
.theme-dark .swpw3-footer__iconlink:hover {
    color: rgb(56, 189, 248);
    background: rgba(2, 6, 23, 0.55);
    box-shadow: 0 14px 34px rgba(56, 189, 248, 0.16);
}

.swpw3-footer__input {
    min-height: 44px;
}

@media (max-width: 640px) {
    .swpw3-footer__cta {
        border-radius: 1.25rem;
    }

    .swpw3-footer__top {
        border-radius: 1.25rem;
    }
}

/* Scroll animation enhancements */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos].aos-animate {
    transform: translateX(0) translateY(0);
}

/* Smooth section transitions - disabled to prevent flickering */
section {
    /* transitions removed to prevent scroll flickering */
}

/* Button hover effects */
a[href="/sites/Register/"],
button[type="button"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a[href="/sites/Register/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.5);
}

/* Form input focus states */
input:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(56, 189, 248, 0.5);
    border-color: rgb(56, 189, 248);
}

/* Dark mode form adjustments */
.dark input,
.dark textarea {
    background-color: rgb(15 23 42);
    border-color: rgb(51 65 85);
}

.dark input:focus,
.dark textarea:focus {
    border-color: rgb(56 189 248);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Mobile touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .landing-card:hover,
    .landing-card-soft:hover {
        transform: none;
    }
    
    a[href="/sites/Register/"]:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .swpw3-animated-bg,
    nav,
    footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   NEW SECTION STYLES - ALTERNATING LAYOUTS
   ============================================ */

/* Feature cards with gradient backgrounds */
.feature-card-gradient {
    position: relative;
    overflow: hidden;
}

.feature-card-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-gradient:hover::before {
    opacity: 1;
}

/* Animated step numbers */
.step-number {
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    filter: blur(8px);
    animation: step-pulse 2s ease-in-out infinite;
}

@keyframes step-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Section divider waves */
.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.1) 25%,
        rgba(16, 185, 129, 0.1) 50%,
        rgba(139, 92, 246, 0.1) 75%,
        transparent 100%
    );
    animation: divider-flow 8s ease-in-out infinite;
}

@keyframes divider-flow {
    0%, 100% { transform: translateX(-20%); }
    50% { transform: translateX(20%); }
}

/* Gradient text for headings */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating elements animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Glow effect for cards */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(16, 185, 129, 0.5), rgba(139, 92, 246, 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.3s ease;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* Icon container styles */
.icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-container::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.2;
    filter: blur(12px);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px) scale(1.01);
}

/* Responsive section spacing */
@media (max-width: 768px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .step-number::after {
        display: none;
    }
}

/* Smooth scroll anchor offset */
section[id] {
    scroll-margin-top: 5rem;
}

/* Connection line for steps */
.steps-connection {
    position: relative;
}

.steps-connection::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.3) 20%,
        rgba(16, 185, 129, 0.3) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent 100%
    );
    transform: translateY(-50%);
    z-index: 0;
}

@media (max-width: 1024px) {
    .steps-connection::before {
        display: none;
    }
}

/* Image placeholder styles */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(148, 163, 184, 0.1) 0%,
        rgba(56, 189, 248, 0.1) 50%,
        rgba(16, 185, 129, 0.1) 100%
    );
}

.dark .image-placeholder {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.5) 0%,
        rgba(56, 189, 248, 0.1) 50%,
        rgba(16, 185, 129, 0.1) 100%
    );
}

/* Animated background shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: shape-float 20s ease-in-out infinite;
}

@keyframes shape-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 10px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

/* Payment method badges */
.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.payment-badge:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.dark .payment-badge {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.8);
}

.dark .payment-badge:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(56, 189, 248, 0.5);
}

/* Form input focus glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.dark input:focus,
.dark textarea:focus {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Button gradient animation */
.btn-gradient {
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-gradient:hover::before {
    transform: translateX(100%);
}

/* Section background patterns */
.pattern-dots {
    background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dark .pattern-dots {
    background-image: radial-gradient(rgba(51, 65, 85, 0.3) 1px, transparent 1px);
}

.pattern-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.dark .pattern-grid {
    background-image:
        linear-gradient(rgba(51, 65, 85, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 65, 85, 0.2) 1px, transparent 1px);
}

/* ============================================
   OVERVIEW PAGE - ANIMATED SECTION STYLES
   ============================================ */

/* Slide-in animations for overview sections */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to sections - using AOS instead of CSS animations to prevent flickering */
section[id] {
    opacity: 1;
}

/* Feature card hover effects */
.feature-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Icon bounce animation */
.icon-bounce {
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Gradient border animation */
.gradient-border-animated {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0ea5e9, #06b6d4, #10b981, #8b5cf6) border-box;
    border: 2px solid transparent;
    animation: gradient-rotate 4s linear infinite;
}

@keyframes gradient-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Status badge pulse */
.status-badge-pulse {
    position: relative;
}

.status-badge-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    opacity: 0.5;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0; }
}

/* Card flip effect */
.card-flip {
    perspective: 1000px;
}

.card-flip-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(10deg);
}

/* Shimmer effect for loading states */
.shimmer {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Overview section specific styles */
.overview-section {
    position: relative;
}

.overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.3) 20%,
        rgba(16, 185, 129, 0.3) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent 100%
    );
}

/* Animated counter */
.counter-animated {
    display: inline-block;
    animation: counter-pop 0.5s ease-out;
}

@keyframes counter-pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Grid item stagger animation - disabled to prevent flickering, use AOS instead */
.grid-stagger > * {
    opacity: 1;
}

/* Hover glow effect */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hover-glow:hover::before {
    width: 300%;
    height: 300%;
}

/* Text gradient animation */
.text-gradient-animated {
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #10b981, #8b5cf6, #0ea5e9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Responsive adjustments for overview page */
@media (max-width: 768px) {
    section[id] {
        animation: slide-in-up 0.4s ease forwards;
    }
    
    .feature-card-hover:hover {
        transform: none;
    }
    
    .grid-stagger > * {
        animation-delay: 0.1s !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

html.theme-dark,
html.theme-dark body {
    background-color: #020617;
}

/* Focus visible styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    section[id] {
        opacity: 1;
        animation: none;
    }
}
