@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Theme Tokens & Reset --- */
:root {
    --primary-color: #a855f7;
    --secondary-color: #ec4899;
    --primary-rgb: 168, 85, 247;
    --secondary-rgb: 236, 72, 153;
    
    /* Dark Mode Defaults */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-tertiary-rgb: 31, 41, 55;
    --card-bg: rgba(17, 24, 39, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --nav-bg: rgba(11, 15, 25, 0.45);
    --nav-bg-scrolled: rgba(11, 15, 25, 0.75);
    --glass-blur: blur(20px);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --btn-text-color: #ffffff;
    --theme-invert: 1;
    
    /* Top Bar Variable Tokens */
    --topbar-bg: rgba(11, 15, 25, 0.85);
    --topbar-border: rgba(255, 255, 255, 0.05);
    --topbar-text: #9ca3af;
    --topbar-social-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-tertiary-rgb: 241, 245, 249;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(var(--primary-rgb), 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --nav-bg: rgba(255, 255, 255, 0.25);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.45);
    --glass-blur: blur(10px);
    --shadow-sm: 0 2px 8px rgba(var(--primary-rgb), 0.03);
    --shadow-md: 0 8px 30px rgba(var(--primary-rgb), 0.06);
    --shadow-lg: 0 16px 40px rgba(var(--primary-rgb), 0.1);
    --theme-invert: 0;

    /* Top Bar Variable Tokens - Light Theme */
    --topbar-bg: #ffffff;
    --topbar-border: rgba(0, 0, 0, 0.08);
    --topbar-text: #374151;
    --topbar-social-bg: rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* --- Glassmorphism --- */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.15);
}

.glass-card {
    padding: 2.5rem;
    height: 100%;
}

/* --- Gradient Typography & Glows --- */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-btn {
    background: var(--accent-gradient);
    color: var(--btn-text-color) !important;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-btn:hover {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    transform: translateY(-2px);
}

.glow-btn:hover::before {
    opacity: 1;
}

/* --- Navbar Design --- */
.navbar-custom {
    position: fixed;
    top: 38px; width: 100%;
    z-index: 1000;
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%), var(--nav-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-custom.scrolled {
    top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%), var(--nav-bg-scrolled);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.25);
    padding: 0 !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.25), 0 1px 15px rgba(var(--primary-rgb), 0.15);
}

.navbar-custom .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    position: relative;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

/* --- Banner Header --- */
.page-header {
    padding: 10rem 0 6rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0) 70%);
    filter: blur(50px);
}

/* --- Theme Toggle Switch --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.theme-switch-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-switch-btn:hover {
    background: var(--accent-gradient);
    color: var(--btn-text-color);
    transform: rotate(20deg);
}

/* --- Service Cards --- */
.service-icon {
    width: 60px; height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.glass-panel:hover .service-icon {
    background: var(--accent-gradient);
    color: var(--btn-text-color);
    transform: scale(1.1) rotate(5deg);
}

/* --- Portfolio Gallery --- */
.portfolio-filter-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    background: var(--accent-gradient);
    color: var(--btn-text-color);
    border-color: transparent;
}

.portfolio-item {
    margin-bottom: 2rem;
}

.portfolio-card {
    overflow: hidden;
    position: relative;
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.portfolio-img-wrapper img {
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.08);
}

/* --- Floating Shapes for Animation --- */
.floating-shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    animation: floatShape 8s ease-in-out infinite alternate;
}

.shape-1 {
    width: 300px; height: 300px;
    background: var(--primary-color);
    top: 15%; left: 5%;
}

.shape-2 {
    width: 250px; height: 250px;
    background: var(--secondary-color);
    bottom: 20%; right: 5%;
    animation-delay: -3s;
}

@keyframes floatShape {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.1); }
}

/* --- Testimonials --- */
.testimonial-quote {
    font-size: 2.2rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem; left: 1rem;
}

.testimonial-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

/* --- WhatsApp Float Widget --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}

/* --- Marketing Popup Overlay --- */
.marketing-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.marketing-popup-content {
    max-width: 500px;
    width: 90%;
    position: relative;
}

.marketing-popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.marketing-popup-close:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Footer --- */
.footer-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    padding: 6rem 0 3rem 0;
}

.footer-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* --- Form Sanitization / Error states --- */
.form-control-custom {
    background: rgba(var(--bg-tertiary-rgb), 0.4);
    border: 1px solid var(--card-border);
    color: var(--text-primary) !important;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

.error-msg {
    font-size: 0.85rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: block;
}

/* --- Loader Spinner --- */
.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Accordion Button Chevron & Alignment fixes */
.accordion-button::after {
    filter: invert(var(--theme-invert, 0)) !important;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-rgb), 0.05) !important;
    color: var(--primary-color) !important;
}

/* Custom Spacing Padding Utility (Missing in CSS but used globally in templates) */
.py-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}

/* Unified Action Button Sizing & Alignment */
.btn.glow-btn,
.btn.btn-outline-primary,
.btn.btn-outline-light {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 0.8rem 2.2rem !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Fix white text in light theme for legibility on light backgrounds */
[data-theme="light"] .text-white:not(.footer-section *):not(#hero-slider *):not(.gallery-title-overlay *):not(.glow-btn *):not(.whatsapp-float *):not(.theme-switch-btn *):not(#preloader *) {
    color: var(--text-primary) !important;
}
[data-theme="light"] .hover\:text-white:hover:not(.footer-section *) {
    color: var(--primary-color) !important;
}

/* Logo visibility toggled dynamically based on active theme mode */
[data-theme="dark"] .logo-dark,
[data-theme="light"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-light,
[data-theme="light"] .logo-dark {
    display: inline-block !important;
}

/* Premium Footer Enhancements */
.footer-section {
    background: linear-gradient(180deg, #090c13 0%, #05070a 100%) !important;
    position: relative;
    overflow: hidden;
    
    /* Force dark theme color system in the footer across all themes */
    --bg-primary: #0b0f19 !important;
    --bg-secondary: #111827 !important;
    --bg-tertiary: #1f2937 !important;
    --bg-tertiary-rgb: 31, 41, 55 !important;
    --card-bg: rgba(17, 24, 39, 0.65) !important;
    --card-border: rgba(255, 255, 255, 0.08) !important;
    --text-primary: #f9fafb !important;
    --text-secondary: #9ca3af !important;
    --text-tertiary: #6b7280 !important;
}

/* Subtle glowing light source behind footer */
.footer-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.footer-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Elegant list item borders */
.footer-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding: 0.45rem 0;
}
.footer-list-item:last-child {
    border-bottom: none !important;
}



/* Footer link bullet and hover transition */
.footer-link-custom {
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
}

.footer-link-custom i {
    font-size: 0.65rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
    opacity: 0.4;
}

.footer-link-custom:hover {
    color: var(--primary-color) !important;
}

.footer-link-custom:hover i {
    transform: translateX(4px);
    color: var(--primary-color) !important;
    opacity: 1;
}

/* Contact information premium icons */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.contact-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-box {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    border-color: var(--primary-color);
}

/* Footer Logo Custom Styling with Light Filter and Hover effect */
.footer-logo-custom {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo-custom:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Premium Top Bar Component styles */
.top-bar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1005;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.top-bar-custom.scrolled {
    transform: translateY(-38px);
    opacity: 0;
    pointer-events: none;
}

.topbar-link {
    color: var(--topbar-text) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.topbar-link:hover {
    color: var(--primary-color) !important;
}

.topbar-social-link {
    color: var(--topbar-text) !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--topbar-social-bg);
}

.topbar-social-link:hover {
    color: #ffffff !important;
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

/* --- Dynamic Pattern Background Utility (Dual-Theme Compatible) --- */
.pattern-bg {
    position: relative;
    overflow: hidden;
}

.pattern-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Layered premium circuit diagram SVG (45-degree paths, gray solder joints, colored micro-glow nodes) */
    background-image: 
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 20 H 40 L 60 40 V 80 L 80 100 H 120 M 60 0 V 20 L 40 40 H 0 M 120 40 H 100 L 80 60 V 100 M 0 100 H 20 L 40 120 M 80 0 L 100 20 V 40 L 120 60' stroke='rgba(128,128,128,0.05)' stroke-width='1' fill='none'/%3E%3Ccircle cx='40' cy='20' r='2' fill='rgba(128,128,128,0.12)'/%3E%3Ccircle cx='60' cy='40' r='2.5' fill='rgba(168,85,247,0.18)'/%3E%3Ccircle cx='80' cy='100' r='2' fill='rgba(128,128,128,0.12)'/%3E%3Ccircle cx='100' cy='20' r='2' fill='rgba(128,128,128,0.12)'/%3E%3Ccircle cx='80' cy='60' r='2' fill='rgba(236,72,153,0.18)'/%3E%3Ccircle cx='20' cy='60' r='1' fill='rgba(128,128,128,0.08)'/%3E%3Ccircle cx='100' cy='80' r='1' fill='rgba(128,128,128,0.08)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.04) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(var(--secondary-rgb), 0.04) 0%, transparent 60%);
    background-size: 120px 120px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

.pattern-bg > * {
    position: relative;
    z-index: 1;
}

/* --- Thematic Pattern backgrounds (Dual-Theme Compatible) --- */

/* 1. Creative Workspace (Fluid design waves and accent dots) */
.pattern-bg-creative {
    position: relative;
    overflow: hidden;
}
.pattern-bg-creative::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='120' height='60' viewBox='0 0 120 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 30 Q 30 10 60 30 T 120 30 M 0 40 Q 30 20 60 40 T 120 40' stroke='rgba(168,85,247,0.07)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M 0 15 Q 30 35 60 15 T 120 15' stroke='rgba(236,72,153,0.05)' stroke-width='1' fill='none'/%3E%3Ccircle cx='30' cy='20' r='2' fill='rgba(168,85,247,0.12)'/%3E%3Ccircle cx='90' cy='40' r='3' fill='rgba(236,72,153,0.1)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.04) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(var(--secondary-rgb), 0.04) 0%, transparent 60%);
    background-size: 120px 60px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}
.pattern-bg-creative > * {
    position: relative;
    z-index: 1;
}

/* 2. Expert Minds (Neural networks, logic flow nodes and brainwaves) */
.pattern-bg-minds {
    position: relative;
    overflow: hidden;
}
.pattern-bg-minds::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 10 30 L 30 10 H 70 L 90 30 V 70 L 70 90 H 30 L 10 70 V 30' stroke='rgba(128,128,128,0.04)' stroke-width='1' fill='none'/%3E%3Cpath d='M 50 10 L 50 90 M 10 50 L 90 50' stroke='rgba(128,128,128,0.03)' stroke-dasharray='2,2' fill='none'/%3E%3Ccircle cx='30' cy='10' r='3' fill='rgba(168,85,247,0.15)'/%3E%3Ccircle cx='70' cy='10' r='2' fill='rgba(128,128,128,0.12)'/%3E%3Ccircle cx='90' cy='30' r='3' fill='rgba(236,72,153,0.15)'/%3E%3Ccircle cx='90' cy='70' r='2' fill='rgba(128,128,128,0.12)'/%3E%3Ccircle cx='70' cy='90' r='3' fill='rgba(168,85,247,0.15)'/%3E%3Ccircle cx='30' cy='90' r='2' fill='rgba(128,128,128,0.12)'/%3E%3Ccircle cx='10' cy='70' r='3' fill='rgba(236,72,153,0.15)'/%3E%3Ccircle cx='10' cy='30' r='2' fill='rgba(128,128,128,0.12)'/%3E%3Ccircle cx='50' cy='50' r='4' fill='rgba(168,85,247,0.2)'/%3E%3Cpath d='M 30 10 Q 50 30 70 10 Q 90 50 70 90' stroke='rgba(168,85,247,0.05)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(var(--secondary-rgb), 0.05) 0%, transparent 60%);
    background-size: 100px 100px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}
.pattern-bg-minds > * {
    position: relative;
    z-index: 1;
}

/* 3. Our Capabilities (Interlocking gear cogs and code tags representation) */
.pattern-bg-capabilities {
    position: relative;
    overflow: hidden;
}
.pattern-bg-capabilities::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='12' stroke='rgba(128,128,128,0.06)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='20' cy='20' r='6' stroke='rgba(128,128,128,0.04)' stroke-width='1' fill='none'/%3E%3Cpath d='M 20 5 V 8 M 20 32 V 35 M 5 20 H 8 M 32 20 H 35 M 9 9 L 11 11 M 29 29 L 31 31 M 9 31 L 11 29 M 29 9 L 31 11' stroke='rgba(128,128,128,0.06)' stroke-width='2' fill='none'/%3E%3Ccircle cx='48' cy='48' r='8' stroke='rgba(168,85,247,0.06)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M 48 37 V 40 M 48 56 V 59 M 37 48 H 40 M 56 48 H 59 M 40 40 L 42 42 M 54 54 L 56 56 M 40 56 L 42 54 M 54 40 L 56 42' stroke='rgba(168,85,247,0.06)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M 60 10 L 56 14 L 60 18 M 68 10 L 72 14 L 68 18 M 65 9 L 63 19' stroke='rgba(236,72,153,0.06)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"),
        radial-gradient(circle at 80% 30%, rgba(var(--primary-rgb), 0.04) 0%, transparent 60%),
        radial-gradient(circle at 20% 70%, rgba(var(--secondary-rgb), 0.04) 0%, transparent 60%);
    background-size: 80px 80px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}
.pattern-bg-capabilities > * {
    position: relative;
    z-index: 1;
}

/* Minimal logo gradient background and animated shapes */
.minimal-logo-gradient {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary) !important;
}

.minimal-logo-gradient > * {
    position: relative;
    z-index: 1;
}

.minimal-logo-gradient::before,
.minimal-logo-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.minimal-logo-gradient::before {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    animation: driftLeft 18s ease-in-out infinite alternate;
}

.minimal-logo-gradient::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    animation: driftRight 22s ease-in-out infinite alternate;
}

@keyframes driftLeft {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 60px) scale(1.15); }
}

@keyframes driftRight {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -60px) scale(1.15); }
}

/* Dark mode text color override for Blog details page */
[data-theme="dark"] .blog-detail-section .text-secondary,
[data-theme="dark"] .blog-detail-section .text-tertiary,
[data-theme="dark"] .blog-detail-section .entry-content,
[data-theme="dark"] .blog-detail-section .entry-content p,
[data-theme="dark"] .blog-detail-section .entry-content span,
[data-theme="dark"] .blog-detail-section .entry-content li,
[data-theme="dark"] .blog-detail-section .entry-content h1,
[data-theme="dark"] .blog-detail-section .entry-content h2,
[data-theme="dark"] .blog-detail-section .entry-content h3,
[data-theme="dark"] .blog-detail-section .entry-content h4,
[data-theme="dark"] .blog-detail-section .entry-content h5,
[data-theme="dark"] .blog-detail-section .entry-content h6 {
    color: #ffffff !important;
}
