/* Custom styling for DigitalHub Enterprise AI Tools & Services */

:root {
    --bg-dark: #f8fafc;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --primary-solid: #4f46e5;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.04) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.03) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
    background-attachment: fixed;
}

/* Background Glowing Orbs */
.glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: 5%;
    left: -10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0) 70%);
}

.orb-2 {
    bottom: 10%;
    right: -10%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, rgba(79, 70, 229, 0) 70%);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-custom {
    background: var(--primary-grad);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    -webkit-text-fill-color: white;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.2s ease;
    margin: 0 8px;
}

.nav-link:hover, .nav-link.active-nav {
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

.nav-link.active-nav {
    border-bottom: 2px solid var(--primary-solid);
    padding-bottom: 2px;
}

/* Credits Counter Badge */
.credits-badge {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    padding: 5px 12px;
}

.credits-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.credits-text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    color: #4f46e5 !important;
}

.btn-reset-custom {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-reset-custom:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    transform: rotate(45deg);
}

/* Hero block styles */
.hero-block {
    padding-top: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.badge-outline {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* AI Tool & General Layout Cards */
.tool-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.06), 0 0 20px rgba(99, 102, 241, 0.04);
}

.tool-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Icon specific background gradients for User's Services - Unified Indigo Theme */
.bg-web-dev { background: linear-gradient(135deg, #818cf8, #4f46e5); }      /* Web design and dev - Sunset */
.bg-design { background: linear-gradient(135deg, #c7d2fe, #6366f1); }       /* Graphic & Branding - Neon Dusk */
.bg-seo { background: linear-gradient(135deg, #4f46e5, #312e81); }          /* SEO & Content write - Velvet */
.bg-marketing { background: linear-gradient(135deg, #6366f1, #4338ca); }    /* Automated Bots - Electric */
.bg-security { background: linear-gradient(135deg, #4338ca, #3730a3); }     /* Bugs hunting & fixing - Cosmic */
.bg-android { background: linear-gradient(135deg, #818cf8, #3730a3); }      /* Android Application - Ultra Violet */

/* Kept for AI Tools backwards compatibility - Unified Indigo Theme */
.bg-img-gen { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.bg-bg-rem { background: linear-gradient(135deg, #c7d2fe, #6366f1); }
.bg-upscaler { background: linear-gradient(135deg, #4f46e5, #312e81); }
.bg-heatmap { background: linear-gradient(135deg, #4338ca, #3730a3); }
.bg-qr { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.bg-content { background: linear-gradient(135deg, #818cf8, #3730a3); }
.bg-logo { background: linear-gradient(135deg, #c7d2fe, #4f46e5); }

.tool-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-description {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.cost-badge {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
}

.btn-action-try {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary-solid);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-action-try:hover {
    background: var(--primary-grad);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transform: scale(1.03);
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

.modal-header {
    padding: 24px 30px 10px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
}

.control-panel {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.btn-generate {
    background: var(--primary-grad);
    border: none;
    color: white;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-generate:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

/* Outputs Box Frame */
.output-canvas-wrap {
    background: #070a12;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    height: 390px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.preview-box {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* Scanning Line Effect (BG Remover) */
#scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0), #6366f1, rgba(99, 102, 241, 0));
    box-shadow: 0 0 15px #6366f1;
    animation: scanAnim 2s infinite linear;
}

@keyframes scanAnim {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* Text Gradient Helpers */
.text-gradient-primary {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.alert-danger-custom {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-radius: 12px;
}

.form-label {
    font-weight: 600;
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 8px;
}

.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-solid) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Marketplace Elements */
.market-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(8, 11, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.btn-filter-pill {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 30px;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.btn-filter-pill:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-solid);
}

.btn-filter-pill.active {
    background: var(--primary-grad);
    border-color: transparent;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Premium Card CTA Button */
.btn-order-service {
    background: var(--primary-grad);
    border: none;
    color: white !important;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.22);
    font-size: 13px;
}

.btn-order-service:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
    opacity: 0.95;
    color: white !important;
}

/* Premium Footer */
.footer-custom {
    background: #f1f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 80px 0 40px;
    margin-top: 120px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-links a:hover, .hover-white:hover {
    color: var(--primary-solid) !important;
}

.social-icon-link {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.social-icon-link:hover {
    background: var(--primary-grad);
    color: white;
    transform: translateY(-2px);
}

.line-height-1-7 {
    line-height: 1.7;
}

/* General Page Styling Container */
.page-container {
    min-height: calc(100vh - 350px);
}

.progress-bar {
    background: var(--primary-grad) !important;
}

/* Functional Background Remover canvas backdrop */
.canvas-container {
    background-color: #070a12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect width='8' height='8' fill='%23111827'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23111827'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS SYSTEM (BREAKPOINTS)
   ========================================================================== */

/* Tablet Optimization (577px to 991px) */
@media (min-width: 577px) and (max-width: 991px) {
    .hero-headline {
        font-size: 2.8rem;
    }
    
    .hero-block {
        padding-top: 12px;
    }
    
    .tool-card {
        padding: 24px;
    }
    
    .modal-dialog {
        max-width: 90% !important;
        margin: 20px auto;
    }
    
    .output-canvas-wrap {
        height: 340px;
    }
}

/* Mobile Phone Optimization (under 576px) */
@media (max-width: 576px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .hero-headline {
        font-size: 2.1rem;
        line-height: 1.25;
        letter-spacing: -0.8px;
    }
    
    .hero-subtext {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-block {
        padding-top: 10px;
        margin-bottom: 25px !important;
    }
    
    .tool-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .tool-icon-wrap {
        width: 46px;
        height: 46px;
        font-size: 20px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    
    .tool-title {
        font-size: 19px;
    }
    
    .tool-description {
        font-size: 13.5px;
        line-height: 1.5;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .brand-text {
        font-size: 18px;
    }
    
    .badge-custom {
        font-size: 9px;
        padding: 3px 8px;
        margin-left: 5px;
    }
    
    .credits-badge {
        padding: 6px 14px;
    }
    
    .credits-text {
        font-size: 12px;
    }
    
    .credits-text strong {
        font-size: 13.5px;
    }
    
    /* Grid Spacings */
    .row {
        --bs-gutter-y: 1.25rem !important;
    }
    
    /* Playgrounds Modal responsive */
    .modal-content {
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 18px 20px 5px;
    }
    
    .modal-body {
        padding: 15px !important;
    }
    
    .control-panel {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .output-canvas-wrap {
        height: 310px;
        padding: 12px;
    }
    
    .footer-custom {
        padding: 50px 0 30px;
        margin-top: 70px;
    }
    
    .footer-title {
        margin-bottom: 15px;
        font-size: 15px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .btn-filter-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
}
