/* ECM Digital - Shared Styles for Service Subpages */

:root {
    /* Apple Dark Mode Colors */
    --primary: #007AFF;
    --primary-dark: #0056CC;
    --primary-light: #409CFF;
    --accent: #30D158;
    --accent-orange: #FF9F0A;
    --accent-purple: #BF5AF2;
    --accent-pink: #FF2D92;
    
    /* Dark Theme Colors */
    --bg-primary: #000000;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;
    --bg-quaternary: #3A3A3C;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #EBEBF5;
    --text-tertiary: #EBEBF599;
    --text-quaternary: #EBEBF54D;
    
    /* System Colors */
    --separator: #38383A;
    --overlay: rgba(0, 0, 0, 0.4);
    
    /* Glass Effect */
    --glass-bg: rgba(28, 28, 30, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global Styles */
html, body {
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.1) 0%, rgba(0, 0, 0, 0.9) 70%), 
                linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
    color: #EBEBF5 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.font-display { 
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* Hero Section */
.hero {
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.15) 0%, rgba(0, 0, 0, 0.8) 70%), 
                linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
    color: #FFFFFF !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    padding: 120px 0 !important;
}

.hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at 30% 20%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(191, 90, 242, 0.1) 0%, transparent 50%) !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 2rem !important;
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-subtitle {
    font-size: 1.3rem !important;
    color: #EBEBF599 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 700px !important;
    margin: 0 auto 3rem auto !important;
}

/* Section Styles */
.section-title {
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    font-size: 3rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
}

.section-subtitle {
    font-size: 1.2rem !important;
    color: #EBEBF599 !important;
    max-width: 600px !important;
    margin: 0 auto 3rem auto !important;
    text-align: center !important;
}

/* Cards */
.feature-card, .service-card, .pricing-card, .contact-card, .tech-card {
    background: rgba(28, 28, 30, 0.95) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 2.5rem 2rem !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.feature-card::before, .service-card::before, .pricing-card::before, .contact-card::before, .tech-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(191, 90, 242, 0.1) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: -1 !important;
}

.feature-card:hover::before, .service-card:hover::before, .pricing-card:hover::before, .contact-card:hover::before, .tech-card:hover::before {
    opacity: 1 !important;
}

.feature-card:hover, .service-card:hover, .pricing-card:hover, .contact-card:hover, .tech-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.2), 0 8px 30px rgba(191, 90, 242, 0.1) !important;
    border-color: rgba(0, 122, 255, 0.3) !important;
}

.feature-card h4, .service-card h4, .pricing-card h4, .contact-card h4, .tech-card h4 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    z-index: 2 !important;
}

.feature-card p, .service-card p, .pricing-card p, .contact-card p, .tech-card p {
    color: #EBEBF599 !important;
    line-height: 1.6 !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Process Timeline */
.process-timeline {
    position: relative !important;
}

.timeline-line {
    position: absolute !important;
    top: 80px !important;
    left: 8.33% !important;
    right: 8.33% !important;
    height: 2px !important;
    background: linear-gradient(90deg, #007AFF 0%, #BF5AF2 100%) !important;
    z-index: 1 !important;
}

.process-step-wrapper {
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 3rem !important;
}

.process-step {
    background: rgba(28, 28, 30, 0.95) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 2.5rem 1.5rem !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    height: 100% !important;
    overflow: hidden !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
}

.process-step::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(191, 90, 242, 0.1) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: -1 !important;
}

.process-step:hover::before {
    opacity: 1 !important;
}

.process-step:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.2), 0 8px 30px rgba(191, 90, 242, 0.1) !important;
    border-color: rgba(0, 122, 255, 0.3) !important;
}

.step-number {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin: 0 auto 1rem auto !important;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.4) !important;
    position: relative !important;
    z-index: 3 !important;
}

/* Detailed Timeline Styles */
.process-timeline::before {
    content: '' !important;
    position: absolute !important;
    left: 30px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 2px !important;
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
}

.process-step {
    position: relative !important;
    margin-bottom: 3rem !important;
    padding-left: 80px !important;
    text-align: left !important;
}

.step-number {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.step-content {
    background: rgba(28, 28, 30, 0.95) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.step-content:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.15) !important;
    border-color: rgba(0, 122, 255, 0.2) !important;
}

.step-content h4 {
    color: #FFFFFF !important;
    margin-bottom: 1rem !important;
    font-size: 1.3rem !important;
}

.step-content ul {
    margin: 1rem 0 !important;
    padding-left: 1.5rem !important;
}

.step-content li {
    margin-bottom: 0.5rem !important;
    color: #EBEBF599 !important;
}

.step-deliverables {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.step-deliverables .badge {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    border: none !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 20px !important;
    }
    
    .process-step {
        padding-left: 60px !important;
    }
    
    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .step-content {
        padding: 1.5rem !important;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3) !important;
    color: white !important;
}

.btn-cta {
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 0.875rem 2rem !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.btn-cta::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.6s ease !important;
}

.btn-cta:hover::before {
    left: 100% !important;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.4), 0 6px 20px rgba(191, 90, 242, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
}

.btn-cta i {
    transition: transform 0.3s ease !important;
}

.btn-cta:hover i {
    transform: translateX(3px) !important;
}

/* Navigation */
.navbar {
    background: rgba(28, 28, 30, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar-brand {
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.nav-link {
    color: #EBEBF5 !important;
}

.nav-link:hover {
    color: #007AFF !important;
}

/* Text Colors */
.text-muted {
    color: #EBEBF599 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF !important;
}

p {
    color: #EBEBF5 !important;
}

/* Sections */
section {
    background: transparent !important;
    padding: 100px 0 !important;
}

/* Contact Section with White Background */
.contact-section,
section:has(#hubspot-form) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
    border-radius: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.contact-section::before,
section:has(#hubspot-form)::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at 30% 20%, rgba(0, 122, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(191, 90, 242, 0.03) 0%, transparent 50%) !important;
    z-index: 1 !important;
}

.contact-section .container,
section:has(#hubspot-form) .container {
    position: relative !important;
    z-index: 2 !important;
}

.contact-section .section-title,
section:has(#hubspot-form) .section-title {
    color: #1a202c !important;
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.contact-section .section-subtitle,
section:has(#hubspot-form) .section-subtitle {
    color: #4a5568 !important;
}

.contact-section .contact-card,
section:has(#hubspot-form) .contact-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 122, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.08), 0 8px 30px rgba(191, 90, 242, 0.05) !important;
}

/* HubSpot Form Styles for White Background */
.contact-section #hubspot-form,
.contact-section #hubspot-form *,
section:has(#hubspot-form) #hubspot-form,
section:has(#hubspot-form) #hubspot-form * {
    color: #2d3748 !important;
}

.contact-section #hubspot-form input,
.contact-section #hubspot-form textarea,
.contact-section #hubspot-form select,
section:has(#hubspot-form) #hubspot-form input,
section:has(#hubspot-form) #hubspot-form textarea,
section:has(#hubspot-form) #hubspot-form select {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 122, 255, 0.2) !important;
    color: #2d3748 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.contact-section #hubspot-form input:focus,
.contact-section #hubspot-form textarea:focus,
.contact-section #hubspot-form select:focus,
section:has(#hubspot-form) #hubspot-form input:focus,
section:has(#hubspot-form) #hubspot-form textarea:focus,
section:has(#hubspot-form) #hubspot-form select:focus {
    border-color: #007AFF !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important;
    outline: none !important;
}

.contact-section #hubspot-form label,
section:has(#hubspot-form) #hubspot-form label {
    color: #2d3748 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.contact-section #hubspot-form .hs-button,
section:has(#hubspot-form) #hubspot-form .hs-button {
    background: linear-gradient(135deg, #007AFF 0%, #BF5AF2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.875rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.contact-section #hubspot-form .hs-button:hover,
section:has(#hubspot-form) #hubspot-form .hs-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3) !important;
}

.contact-section #hubspot-form .hs-form-field > label,
section:has(#hubspot-form) #hubspot-form .hs-form-field > label {
    color: #2d3748 !important;
}

.contact-section #hubspot-form .hs-error-msg,
section:has(#hubspot-form) #hubspot-form .hs-error-msg {
    color: #e53e3e !important;
}

.contact-section #hubspot-form .hs-form-required,
section:has(#hubspot-form) #hubspot-form .hs-form-required {
    color: #e53e3e !important;
}

/* Footer */
.footer {
    background: rgba(28, 28, 30, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 !important;
        min-height: 80vh !important;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .timeline-line {
        display: none !important;
    }
    
    .process-step {
        margin-bottom: 1.5rem !important;
    }
    
    section {
        padding: 60px 0 !important;
    }
}
