/* ===== AJT Solutions - Global Styles ===== */

/* --- Drawer fix: items at top --- */
.mud-drawer-content {
    justify-content: flex-start !important;
    height: auto !important;
}

.mud-drawer .mud-navmenu {
    margin-top: 0 !important;
}
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- AppBar --- */
.ajt-appbar {
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- Hero Section --- */
.ajt-hero {
    position: relative;
    min-height: 88vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 40%, #0F172A 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ajt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 48px 48px;
    pointer-events: none;
}

.ajt-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(6,182,212,0.12) 0%, transparent 60%);
    animation: hero-glow 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.ajt-hero-content {
    position: relative;
    z-index: 1;
}

@keyframes hero-glow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-8%, 8%) scale(1.1); opacity: 1; }
}

.ajt-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* --- Gradient Text --- */
.ajt-gradient-text {
    background: linear-gradient(135deg, #06B6D4, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Sections --- */
.ajt-section {
    padding: 80px 0;
}

.ajt-section-dark {
    background: #0F172A;
    color: #E2E8F0;
    padding: 80px 0;
}

.ajt-section-muted {
    background: #F1F5F9;
    padding: 80px 0;
}

.ajt-section-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #E2E8F0;
    padding: 80px 0;
}

/* --- Cards --- */
.ajt-feature-card {
    border: 1px solid #E2E8F0;
    border-radius: 16px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    background: white !important;
}

.ajt-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: #06B6D4;
}

.ajt-service-card {
    border: 1px solid #E2E8F0;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    height: 100%;
    background: white !important;
    overflow: hidden;
}

.ajt-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    border-color: #06B6D4;
}

/* --- Icon Box --- */
.ajt-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(124,58,237,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ajt-icon-box-left {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(124,58,237,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Pricing --- */
.ajt-pricing-card {
    border: 1px solid #E2E8F0;
    border-radius: 20px !important;
    transition: all 0.3s ease;
    height: 100%;
    background: white !important;
    position: relative;
    overflow: visible;
}

.ajt-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.ajt-pricing-featured {
    border: 2px solid #06B6D4 !important;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
}

.ajt-pricing-featured:hover {
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.2);
}

.ajt-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #06B6D4, #7C3AED);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* --- Process Steps --- */
.ajt-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06B6D4, #7C3AED);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ajt-step-line {
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(to bottom, #06B6D4, rgba(6,182,212,0.1));
}

/* --- Stats --- */
.ajt-stat-card {
    text-align: center;
    padding: 32px 16px;
}

.ajt-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #06B6D4, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* --- Tech Badge --- */
.ajt-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F172A;
    transition: all 0.2s ease;
}

.ajt-tech-badge:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.ajt-tech-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    color: #E2E8F0;
    transition: all 0.2s ease;
}

.ajt-tech-badge-dark:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}

/* --- Portfolio Card --- */
.ajt-portfolio-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.ajt-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.ajt-portfolio-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ajt-portfolio-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* --- About / Profile --- */
.ajt-avatar-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06B6D4, #7C3AED);
    padding: 4px;
    margin: 0 auto;
}

.ajt-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ajt-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contact --- */
.ajt-contact-info-card {
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    padding: 24px;
    background: rgba(6, 182, 212, 0.04);
    transition: all 0.2s ease;
}

.ajt-contact-info-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
}

/* --- Footer --- */
.ajt-footer {
    background: #0F172A;
    padding: 64px 0 32px;
}

.footer-link {
    color: #94A3B8 !important;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #06B6D4 !important;
}

/* --- CTA Section --- */
.ajt-cta-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.ajt-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(6,182,212,0.06) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* --- Value Card (About page) --- */
.ajt-value-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.ajt-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #06B6D4;
}

/* --- FAQ --- */
.ajt-faq-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #06B6D4;
    margin-bottom: 8px;
}

/* --- Utility --- */
.text-center {
    text-align: center;
}

.ajt-glow-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #06B6D4, #7C3AED);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* --- Blazor Error UI --- */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUw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
    }

/* --- Responsive --- */
@media (max-width: 600px) {
    .ajt-hero {
        min-height: 75vh;
    }

    .ajt-section,
    .ajt-section-dark,
    .ajt-section-muted,
    .ajt-section-gradient,
    .ajt-cta-section {
        padding: 48px 0;
    }

    .ajt-footer {
        padding: 40px 0 24px;
    }

    .ajt-stat-value {
        font-size: 2rem;
    }

    .ajt-avatar-wrapper {
        width: 140px;
        height: 140px;
    }
}