/**
 * Glassmorphism Override - Site-Wide Conversion
 * Converts old developed-by-appwt-llc-* classes to glassmorphism styling
 * © 2025 AppWT LLC
 */

/* ============================================
   OVERRIDE OLD CLASS VARIABLES
   ============================================ */

/* Override old color variables with glassmorphism theme */
:root {
    --primary-color: #D4AF37 !important;
    --secondary-color: #C0C0C0 !important;
    --accent-color: #8B5CF6 !important;
    --text-light: rgba(255, 255, 255, 0.85) !important;
    --text-dark: #0A0A0A !important;
    --success-green: #51cf66 !important;
    --error-red: #ff6b6b !important;
}

/* ============================================
   CONTAINER OVERRIDES
   ============================================ */

.developed-by-appwt-llc-responsive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION OVERRIDES
   ============================================ */

.developed-by-appwt-llc-hero-section {
    background: rgba(139, 92, 246, 0.05) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    padding: 4rem 2rem !important;
    text-align: center;
    position: relative;
    overflow: visible;
}

.developed-by-appwt-llc-hero-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #8B5CF6, #C0C0C0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
}

.developed-by-appwt-llc-hero-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.125rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 700px;
    margin: 0 auto 2rem !important;
    line-height: 1.7 !important;
}

/* ============================================
   SECTION OVERRIDES
   ============================================ */

.developed-by-appwt-llc-section {
    padding: 3rem 2rem !important;
    position: relative;
}

/* ============================================
   CARD OVERRIDES - Convert to Glass Cards
   ============================================ */

.developed-by-appwt-llc-card {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(192, 192, 192, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 2rem !important;
    position: relative;
    overflow: visible !important;
    transition: all 0.3s ease !important;
}

.developed-by-appwt-llc-card:hover {
    background: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.2) !important;
    transform: translateY(-4px) !important;
}

/* Glass edge highlight */
.developed-by-appwt-llc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
}

/* Pricing cards with gradient border effect */
.pricing-card {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(192, 192, 192, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

.pricing-card:hover {
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-4px) !important;
}

/* ============================================
   BUTTON OVERRIDES - Convert to Glass Buttons
   ============================================ */

.developed-by-appwt-llc-btn {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #D4AF37, #8B5CF6) !important;
    border: none !important;
    color: #FFFFFF !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none !important;
    text-align: center;
}

.developed-by-appwt-llc-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4) !important;
}

.developed-by-appwt-llc-btn-secondary {
    background: transparent !important;
    border: 2px solid #8B5CF6 !important;
    color: #8B5CF6 !important;
}

.developed-by-appwt-llc-btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

/* ============================================
   TYPOGRAPHY OVERRIDES
   ============================================ */

.developed-by-appwt-llc-responsive-heading-2 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    color: #D4AF37 !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
}

.developed-by-appwt-llc-responsive-heading-3 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: #C0C0C0 !important;
    line-height: 1.2 !important;
}

.developed-by-appwt-llc-responsive-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   GRID OVERRIDES
   ============================================ */

.developed-by-appwt-llc-grid {
    display: grid !important;
    gap: 2rem !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.developed-by-appwt-llc-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ============================================
   FORM OVERRIDES
   ============================================ */

.developed-by-appwt-llc-input,
.developed-by-appwt-llc-textarea,
.developed-by-appwt-llc-select {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1rem !important;
    padding: 16px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(192, 192, 192, 0.15) !important;
    background: rgba(10, 10, 10, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF !important;
    width: 100%;
    transition: all 0.3s ease !important;
}

.developed-by-appwt-llc-input:focus,
.developed-by-appwt-llc-textarea:focus,
.developed-by-appwt-llc-select:focus {
    outline: none !important;
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

/* ============================================
   PRICING PREVIEW OVERRIDE
   ============================================ */

.pricing-preview {
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px !important;
}

/* ============================================
   VERIFICATION BANNER OVERRIDE
   ============================================ */

.appwt-verification-banner {
    background: rgba(139, 92, 246, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2) !important;
    border-bottom: 1px solid rgba(192, 192, 192, 0.15) !important;
}

/* ============================================
   LIST STYLING
   ============================================ */

.developed-by-appwt-llc-card ul li,
.developed-by-appwt-llc-section ul li {
    color: rgba(255, 255, 255, 0.85) !important;
}

.developed-by-appwt-llc-card ol li,
.developed-by-appwt-llc-section ol li {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   PROBLEM/SOLUTION/TECHNICAL BLOCKS
   ============================================ */

/* Override problem blocks */
div[style*="rgba(220, 20, 60"] {
    background: rgba(220, 53, 69, 0.15) !important;
}

/* Override solution blocks */
div[style*="rgba(34, 139, 34"] {
    background: rgba(40, 167, 69, 0.15) !important;
}

/* Override technical blocks */
div[style*="rgba(70, 130, 180"] {
    background: rgba(139, 92, 246, 0.15) !important;
    border-left-color: #8B5CF6 !important;
}

/* ============================================
   ANIMATIONS FOR OLD CLASSES
   ============================================ */

/* Add fade-in animation to sections */
.developed-by-appwt-llc-section {
    animation: glassFadeIn 0.6s ease forwards;
}

.developed-by-appwt-llc-card {
    animation: glassFadeIn 0.6s ease forwards;
}

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

/* Stagger animations for grid items */
.developed-by-appwt-llc-grid > *:nth-child(1) { animation-delay: 0.1s; }
.developed-by-appwt-llc-grid > *:nth-child(2) { animation-delay: 0.2s; }
.developed-by-appwt-llc-grid > *:nth-child(3) { animation-delay: 0.3s; }
.developed-by-appwt-llc-grid > *:nth-child(4) { animation-delay: 0.4s; }
.developed-by-appwt-llc-grid > *:nth-child(5) { animation-delay: 0.5s; }
.developed-by-appwt-llc-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 768px) {
    .developed-by-appwt-llc-hero-section {
        padding: 3rem 1.5rem !important;
    }

    .developed-by-appwt-llc-section {
        padding: 2rem 1.5rem !important;
    }

    .developed-by-appwt-llc-card {
        padding: 1.5rem !important;
    }

    .developed-by-appwt-llc-btn {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
    }

    .developed-by-appwt-llc-grid {
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .developed-by-appwt-llc-grid {
        grid-template-columns: 1fr !important;
    }

    .developed-by-appwt-llc-btn-group {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .developed-by-appwt-llc-section,
    .developed-by-appwt-llc-card {
        animation: none !important;
    }

    .developed-by-appwt-llc-btn,
    .developed-by-appwt-llc-card {
        transition: none !important;
    }
}

/* ============================================
   SITE-WIDE INLINE STYLE OVERRIDES
   ============================================ */

/* Override ALL inline backgrounds with dark colors */
[style*="background: #0A0A0A"],
[style*="background:#0A0A0A"],
[style*="background: #0a0a0a"],
[style*="background:#0a0a0a"] {
    background: transparent !important;
}

[style*="background: #1a1a1a"],
[style*="background:#1a1a1a"],
[style*="background: #1A1A1A"],
[style*="background:#1A1A1A"] {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Override linear gradients with old colors */
[style*="linear-gradient(135deg, #0A0A0A"],
[style*="linear-gradient(135deg, #1a1a1a"] {
    background: rgba(139, 92, 246, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Override any element with these gradient patterns */
[style*="linear-gradient(135deg, #1a1a1a 0%, #333"] {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(192, 192, 192, 0.15) !important;
}

/* ============================================
   TEAM PAGE GLASSMORPHISM OVERRIDES
   ============================================ */

/* Override old team page color variables */
:root {
    --deep-navy: #0A0A0A !important;
    --surface-dark: rgba(139, 92, 246, 0.08) !important;
    --surface-medium: rgba(139, 92, 246, 0.12) !important;
    --text-primary: rgba(255, 255, 255, 0.85) !important;
    --contrast-black: #0A0A0A !important;
    --contrast-white: #FFFFFF !important;
    --eco-green: #51cf66 !important;
}

/* Team page main container */
div[style*="background: var(--deep-navy)"] {
    background: transparent !important;
}

/* Team page header/hero */
header[style*="background: linear-gradient"] {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(192, 192, 192, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Team cards - glassmorphism effect */
.team-card {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(192, 192, 192, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
}

.team-card:hover {
    background: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.2) !important;
    transform: translateY(-4px) !important;
}

/* Team grids */
.team-grid,
.team-grid-3 {
    display: grid !important;
    gap: 2rem !important;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
}

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

/* AAA heading styles - convert to glassmorphism */
.aaa-heading {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    color: #D4AF37 !important;
    line-height: 1.2 !important;
}

.aaa-subheading {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    color: #C0C0C0 !important;
}

.aaa-body-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
}

.aaa-highlight {
    color: #D4AF37 !important;
    font-weight: 600 !important;
}

/* Eco badge - glassmorphism style */
.eco-badge {
    background: rgba(81, 207, 102, 0.15) !important;
    color: #51cf66 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    display: inline-block !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(81, 207, 102, 0.3) !important;
}

/* AAA buttons - convert to glass buttons */
.aaa-button {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #D4AF37, #8B5CF6) !important;
    border: none !important;
    color: #FFFFFF !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block;
}

.aaa-button:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4) !important;
}

.aaa-button-secondary {
    background: transparent !important;
    border: 2px solid #8B5CF6 !important;
    color: #8B5CF6 !important;
    padding: 14px 30px !important;
    border-radius: 12px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block;
}

.aaa-button-secondary:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

/* FAQ section glassmorphism */
section[style*="background: var(--surface-medium)"] {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(192, 192, 192, 0.15) !important;
}

/* Details/accordion items */
details {
    background: rgba(10, 10, 10, 0.6) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

details summary {
    color: #D4AF37 !important;
}

/* CTA section override */
section[style*="background: linear-gradient(135deg, var(--luxury-gold)"] {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(139, 92, 246, 0.8)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Team member image containers */
.team-card div[style*="border: 4px solid var(--luxury-gold)"],
.team-card div[style*="border: 3px solid var(--luxury-gold)"],
.team-card div[style*="border-radius: 50%"] {
    border-color: #D4AF37 !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3) !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
}

/* Team member images - zoom in on face (top center) on hover */
.team-card div[style*="border-radius: 50%"] img,
.team-card picture img {
    transition: transform 0.4s ease !important;
    object-position: top center !important;
}

.team-card:hover div[style*="border-radius: 50%"] img,
.team-card:hover picture img {
    transform: scale(1.3) !important;
    object-position: top center !important;
}

.team-card:hover div[style*="border-radius: 50%"],
.team-card:hover div[style*="border: 4px solid"],
.team-card:hover div[style*="border: 3px solid"] {
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5) !important;
    border-color: #F4D03F !important;
}

/* ============================================
   LOCATION PAGE GLASSMORPHISM OVERRIDES
   ============================================ */

.location-page {
    background: transparent !important;
}

.location-page .developed-by-appwt-llc-card,
.location-page .developed-by-appwt-llc-section {
    background: rgba(139, 92, 246, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* ============================================
   PREMIUM TEAM EXPERTISE DISPLAY
   ============================================ */

/* Hide emoji text and replace with elegant format */
.team-card .aaa-body-text {
    text-align: left !important;
    padding: 1rem !important;
    background: rgba(10, 10, 10, 0.4) !important;
    border-radius: 12px !important;
    border-left: 3px solid var(--glass-purple) !important;
    margin-top: 1rem !important;
}

/* Premium expertise format */
.team-card .aaa-body-text strong {
    color: #D4AF37 !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-right: 0.5rem !important;
}

/* Style the Problem/Solution/Technical as elegant blocks */
.team-card .aaa-body-text br {
    display: block !important;
    content: "" !important;
    margin: 0.75rem 0 !important;
}

/* Premium badge styling */
.eco-badge {
    background: rgba(81, 207, 102, 0.1) !important;
    color: #51cf66 !important;
    border: 1px solid rgba(81, 207, 102, 0.3) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.03em !important;
}

/* Premium section headers - replace emoji with SVG-style pseudo elements */
.aaa-heading[style*="font-size: 2.8rem"]::before {
    display: none !important;
}

/* Hide emojis in headings and badges, show text only */
h1.aaa-heading,
h2.aaa-heading {
    font-family: 'Space Grotesk', sans-serif !important;
}

/* Premium accent line for section headers */
section h2.aaa-heading {
    position: relative !important;
    padding-bottom: 1rem !important;
}

section h2.aaa-heading::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #D4AF37, #8B5CF6) !important;
    border-radius: 2px !important;
}

/* Premium team card expertise icons */
.team-card .aaa-body-text::before {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 0.75rem !important;
    background: linear-gradient(135deg, #D4AF37, #8B5CF6) !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E") !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E") !important;
    mask-size: contain !important;
    -webkit-mask-size: contain !important;
}

/* Mobile responsive team */
@media (max-width: 768px) {
    .team-grid,
    .team-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .team-card {
        padding: 1.5rem !important;
    }

    .team-card .aaa-body-text {
        padding: 0.75rem !important;
    }
}
