/* Global Custom CSS - Consolidating inline styles */

/* =========================================
   Portfolio Visibility Fix (from index.html)
   ========================================= */
.hidden-link-anim {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* =========================================
   Testimonials Cleanup (from index.html)
   ========================================= */
.Testimonials-module__ItA9Ha__section *::before,
.Testimonials-module__ItA9Ha__section *::after {
    content: none !important;
    background: none !important;
    display: none !important;
}

/* =========================================
   Contact Form Styles (from contact.html)
   ========================================= */

/* Glassmorphism Polish */
.contact-form-card,
.ContactForm-module__j1WgZG__formCard {
    background: rgba(24, 24, 27, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

/* Neon Focus Glow */
.contact-input:focus,
.contact-textarea:focus,
.ContactForm-module__j1WgZG__input:focus,
.ContactForm-module__j1WgZG__textarea:focus {
    border-color: #00D4FF !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

/* Response Badge */
.response-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

.response-badge svg {
    width: 1rem;
    height: 1rem;
}

/* Trust Icons Container */
.trust-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Mobile Padding Fix */
@media (max-width: 768px) {

    .contact-wrapper,
    .contact-module__swMWYG__contentWrapper {
        gap: 3rem !important;
        /* Increase gap between Info and Form */
    }

    .contact-form-card,
    .ContactForm-module__j1WgZG__formCard {
        margin-top: 2rem;
    }
}

.Testimonials-module__ItA9Ha__section [class*="Glow"],
.Testimonials-module__ItA9Ha__section [class*="glow"],
.Testimonials-module__ItA9Ha__section [class*="shape"] {
    display: none !important;
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ... existing styles ... */

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-menu-nav a:hover {
    color: #3b82f6;
}

/* Ensure Desktop Nav is Hidden on Mobile */
@media (max-width: 1024px) {

    div[class*="desktopNav"],
    div[class*="desktopCta"] {
        display: none !important;
    }

    button[aria-label="Toggle mobile menu"] {
        display: block !important;
    }
}

/* Fix: Prevent Start Project button cutoff on desktop */
@media (min-width: 1025px) {
    div[class*="desktopNav"] {
        gap: 0.75rem !important;
    }

    a[class*="navLink"] {
        font-size: 0.82rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    a[class*="ctaBtn"] {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.82rem !important;
        padding: 0.5rem 1.25rem !important;
    }
}

/* Related Articles Grid - Ensure 1 column on mobile */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.related-title {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #e4e4e7;
    /* Zinc 200 */
    line-height: 1.4;
    margin: 0;
}

.related-card:hover .related-title {
    color: #60a5fa;
    /* Blue 400 */
}

/* =========================================
   Testimonials Glow Animation
   ========================================= */
@keyframes testimonialGlow {
    0% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.4), 0 0 5px rgba(147, 51, 234, 0.3);
        border-color: rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.7), 0 0 20px rgba(147, 51, 234, 0.5);
        border-color: rgba(0, 212, 255, 0.9);
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.4), 0 0 5px rgba(147, 51, 234, 0.3);
        border-color: rgba(0, 212, 255, 0.5);
    }
}

/* Robust Selector for Testimonial Cards */
[class*="Testimonials"][class*="card"],
a[class*="Testimonials-module__ItA9Ha__card"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    /* Default visible glow */
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15) !important;
    display: block !important;
    text-decoration: none !important;
}

/* Hover State */
[class*="Testimonials"][class*="card"]:hover,
a[class*="Testimonials-module__ItA9Ha__card"]:hover {
    animation: testimonialGlow 1.5s infinite alternate !important;
    transform: translateY(-8px) scale(1.02) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-color: rgba(0, 212, 255, 0.8) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 212, 255, 0.3) !important;
}

/* Ensure the quote text is visible on top of any background */
[class*="Testimonials"][class*="card"] p {
    position: relative !important;
    z-index: 20 !important;
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.faq-subtitle {
    color: #a1a1aa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-item.active {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    color: #e4e4e7;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #00D4FF;
}

.faq-item.active .faq-question {
    color: #00D4FF;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #e4e4e7;
    transition: all 0.3s ease;
}

.faq-icon::before {
    width: 12px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 12px;
}

.faq-item.active .faq-icon {
    border-color: #00D4FF;
    transform: rotate(45deg);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background: #00D4FF;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 1.8rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }
}

/* =========================================
   Portfolio Enhancements
   ========================================= */

/* Enhanced hover overlay */
.portfolio-grid a.group::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
    pointer-events: none;
    border-radius: 1rem;
}

.portfolio-grid a.group:hover::after {
    opacity: 1;
}

/* Live badge */
.portfolio-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Portfolio card number */
.portfolio-grid a.group {
    counter-increment: portfolio;
}

/* =========================================
   Impact Stats Section
   ========================================= */
.impact-stats-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(0, 212, 255, 0.03) 50%, rgba(10, 10, 15, 0) 100%);
}

.impact-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.impact-stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
}

.impact-stats-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.impact-stats-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.impact-stats-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.impact-stats-subtitle {
    color: #a1a1aa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.impact-stat-card {
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.impact-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00D4FF, #9333EA);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}

.impact-stat-card:hover::before {
    opacity: 1;
}

.impact-stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #00D4FF;
    transition: all 0.3s ease;
}

.impact-stat-card:hover .impact-stat-icon {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.impact-stat-card:nth-child(2) .impact-stat-icon {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.2);
    color: #9333EA;
}

.impact-stat-card:nth-child(2):hover .impact-stat-icon {
    background: rgba(147, 51, 234, 0.2);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.impact-stat-card:nth-child(3) .impact-stat-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.impact-stat-card:nth-child(3):hover .impact-stat-icon {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.impact-stat-card:nth-child(4) .impact-stat-icon {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.impact-stat-card:nth-child(4):hover .impact-stat-icon {
    background: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.impact-stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-stat-label {
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .impact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-stats-title {
        font-size: 1.8rem;
    }

    .impact-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .impact-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Performance & CLS Enhancements
   ========================================= */

/* Fix CLS for Founder Image */
.FounderSpotlight-module__A0P4Kq__imageWrapper {
    aspect-ratio: 1 / 1;
    position: relative;
    width: 100%;
}

/* Fix CLS for Service Images */
.ServicesHighlight-module__eCRYQq__imageWrapper {
    aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
}

/* Ensure images fill the wrapper */
.FounderSpotlight-module__A0P4Kq__image,
.ServicesHighlight-module__eCRYQq__image {
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}

/* =========================================
   E-Commerce Pricing Cards
   ========================================= */

/* Allow 5 cards in the pricing grid (both pricing page and homepage) */
[class*="pricing-module"][class*="grid"],
[class*="PricingPreview-module"][class*="grid"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
}

/* E-commerce badge */
.ecom-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00D4FF, #9333EA);
    color: white;
    z-index: 2;
}

.ecom-card {
    position: relative !important;
    overflow: visible !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

/* Popular label needs to sit above the card border */
.ecom-card [class*="popularLabel"] {
    position: absolute !important;
    top: -1px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    padding: 6px 20px !important;
    border-radius: 0 0 8px 8px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
}

.ecom-card [class*="planName"] {
    margin-top: 2.5rem !important;
}

.ecom-card [class*="features"] {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.ecom-card [class*="features"]::-webkit-scrollbar {
    width: 4px;
}

.ecom-card [class*="features"]::-webkit-scrollbar-track {
    background: transparent;
}

.ecom-card [class*="features"]::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.ecom-card:hover {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15) !important;
}

/* E-commerce Pro special highlight */
.ecom-pro {
    border-color: rgba(147, 51, 234, 0.4) !important;
}

.ecom-pro .ecom-badge {
    background: linear-gradient(135deg, #9333EA, #EC4899) !important;
}

.ecom-pro:hover {
    border-color: rgba(147, 51, 234, 0.6) !important;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.2) !important;
}

@media (max-width: 768px) {
    [class*="pricing-module"][class*="grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   Fix 3: WCAG AA Color Contrast Fixes
   Ensuring 4.5:1 minimum contrast ratio
   ========================================= */

/* FounderSpotlight — feature descriptions were too faint */
[class*="FounderSpotlight"][class*="featureDesc"],
.FounderSpotlight-module__A0P4Kq__featureDesc {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* FounderSpotlight — section subtitle/description text */
[class*="FounderSpotlight"][class*="section"] p,
.FounderSpotlight-module__A0P4Kq__section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* PortfolioPreview — filter buttons WCAG AA contrast fix */
[class*="PortfolioPreview"][class*="filterBtn"],
.PortfolioPreview-module__f4MJQq__filterBtn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* PortfolioPreview — section subtitle text */
[class*="PortfolioPreview"][class*="section"] p,
.PortfolioPreview-module__f4MJQq__section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* PricingPreview — "Most Popular" label */
[class*="PricingPreview"][class*="popularLabel"],
.PricingPreview-module__hU5m1a__popularLabel {
    color: rgba(255, 255, 255, 0.95) !important;
    background: linear-gradient(135deg, #9333EA, #EC4899) !important;
}

/* =========================================
   Fix 8 & 10: Render Performance & Image Delivery
   content-visibility: auto defers rendering of
   below-fold sections until they're near viewport
   ========================================= */

/* Below-fold sections — defer rendering */
[class*="FounderSpotlight"][class*="section"],
[class*="TrustBadges"][class*="section"],
[class*="PortfolioPreview"][class*="section"],
[class*="PricingPreview"][class*="section"],
[class*="Testimonials"][class*="section"],
[class*="CTA-module"][class*="section"],
.impact-stats-section,
.faq-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* Ensure all images below fold use lazy rendering */
[class*="FounderSpotlight"] img,
[class*="PortfolioPreview"] img,
[class*="Testimonials"] img {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}