/* ============================================================
   PLANXETA — Global Design System
   Clean, professional consultancy aesthetic
   ============================================================ */

:root {
    --px-bg: #0a0a0f;
    --px-bg-card: #111118;
    --px-bg-card-hover: #16161f;
    --px-surface: #1a1a24;
    --px-border: rgba(255,255,255,0.06);
    --px-border-hover: rgba(255,255,255,0.12);
    --px-text: #e8e8ed;
    --px-text-muted: #8a8a9a;
    --px-text-subtle: #5a5a6e;
    --px-accent: #6366f1;
    --px-accent-hover: #818cf8;
    --px-accent-glow: rgba(99,102,241,0.15);
    --px-gradient-start: #6366f1;
    --px-gradient-end: #a855f7;
    --px-success: #22c55e;
    --px-radius: 12px;
    --px-radius-lg: 20px;
    --px-radius-sm: 8px;
    --px-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --px-shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --px-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --px-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--px-font);
    background: var(--px-bg);
    color: var(--px-text);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

a { color: var(--px-accent); text-decoration: none; transition: color var(--px-transition); }
a:hover { color: var(--px-accent-hover); }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

/* ---- NAVBAR ---- */
.px-navbar {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--px-border);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: background var(--px-transition);
}

.px-navbar .navbar-brand {
    padding: 0.25rem 0;
}

.px-navbar-logo {
    height: 140px;
    width: auto;
    margin: -50px 0;
}

.px-footer-logo {
    height: 120px;
    width: auto;
    margin: -40px 0 -30px -20px;
}

.px-navbar .nav-link {
    color: var(--px-text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--px-radius-sm);
    transition: all var(--px-transition);
    letter-spacing: 0.01em;
}

.px-navbar .nav-link:hover,
.px-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}

.px-navbar .navbar-toggler {
    border: 1px solid var(--px-border);
    padding: 0.35rem 0.65rem;
}

.px-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.px-nav-cta {
    background: linear-gradient(135deg, var(--px-gradient-start), var(--px-gradient-end)) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0.45rem 1.25rem !important;
    border-radius: var(--px-radius-sm) !important;
    font-size: 0.85rem !important;
    transition: all var(--px-transition) !important;
    box-shadow: 0 2px 12px var(--px-accent-glow);
}

.px-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99,102,241,0.3) !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--px-accent-hover), #c084fc) !important;
}

/* ---- HERO ---- */
.px-hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
}

.px-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--px-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.px-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out 2s infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.px-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--px-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.px-hero-badge i { color: var(--px-accent); }

.px-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.px-hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--px-gradient-start), var(--px-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.px-hero-sub {
    font-size: 1.15rem;
    color: var(--px-text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ---- BUTTONS ---- */
.px-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--px-gradient-start), var(--px-gradient-end));
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--px-radius);
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--px-transition);
    box-shadow: 0 4px 16px var(--px-accent-glow);
    font-family: var(--px-font);
}

.px-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.35);
    color: #fff;
}

.px-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--px-surface);
    color: var(--px-text);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: var(--px-radius);
    border: 1px solid var(--px-border);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--px-transition);
    font-family: var(--px-font);
}

.px-btn-secondary:hover {
    background: var(--px-bg-card-hover);
    border-color: var(--px-border-hover);
    transform: translateY(-1px);
    color: #fff;
}

/* ---- SECTIONS ---- */
.px-section {
    padding: 6rem 0;
    position: relative;
}

.px-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.px-section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.px-section-header p {
    color: var(--px-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.px-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--px-accent);
    margin-bottom: 0.75rem;
}

/* ---- SERVICE CARDS ---- */
.px-card {
    background: var(--px-bg-card);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.px-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--px-gradient-start), var(--px-gradient-end), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.px-card:hover {
    border-color: var(--px-border-hover);
    background: var(--px-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--px-shadow-lg);
}

.px-card:hover::before { opacity: 1; }

.px-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--px-radius);
    background: var(--px-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--px-accent);
    transition: all var(--px-transition);
}

.px-card:hover .px-card-icon {
    background: linear-gradient(135deg, var(--px-gradient-start), var(--px-gradient-end));
    color: #fff;
    transform: scale(1.05);
}

.px-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.px-card p {
    color: var(--px-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* ---- WHY CHOOSE US ---- */
.px-why-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.px-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--px-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.3rem;
    color: var(--px-accent);
}

.px-stat {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--px-gradient-start), var(--px-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

/* ---- CONTACT FORM ---- */
.px-form-control {
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    color: var(--px-text);
    border-radius: var(--px-radius-sm);
    padding: 0.75rem 1rem;
    font-family: var(--px-font);
    font-size: 0.9rem;
    transition: all var(--px-transition);
    width: 100%;
}

.px-form-control:focus {
    outline: none;
    border-color: var(--px-accent);
    box-shadow: 0 0 0 3px var(--px-accent-glow);
    background: var(--px-bg-card);
}

.px-form-control::placeholder {
    color: var(--px-text-subtle);
}

.px-form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--px-text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

textarea.px-form-control {
    resize: vertical;
    min-height: 140px;
}

.px-contact-info-card {
    background: var(--px-bg-card);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    padding: 2rem;
}

.px-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.px-contact-item:not(:last-child) {
    border-bottom: 1px solid var(--px-border);
}

.px-contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--px-radius-sm);
    background: var(--px-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--px-accent);
    flex-shrink: 0;
}

.px-contact-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.px-contact-item p {
    color: var(--px-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ---- FOOTER ---- */
.px-footer {
    background: var(--px-bg-card);
    border-top: 1px solid var(--px-border);
    padding: 3rem 0 2rem;
}

.px-footer-brand {
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--px-gradient-start), var(--px-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.px-footer p {
    color: var(--px-text-muted);
    font-size: 0.85rem;
}

.px-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.px-footer-links a {
    color: var(--px-text-muted);
    font-size: 0.85rem;
    transition: color var(--px-transition);
}

.px-footer-links a:hover { color: #fff; }

.px-footer-bottom {
    border-top: 1px solid var(--px-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--px-text-subtle);
    font-size: 0.8rem;
}

/* ---- CTA BANNER ---- */
.px-cta-banner {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--px-radius-lg);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.px-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.06), transparent 50%);
    pointer-events: none;
}

.px-cta-banner h2 { margin-bottom: 1rem; }
.px-cta-banner p { color: var(--px-text-muted); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---- TECH BADGES ---- */
.px-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: 100px;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    color: var(--px-text-muted);
    font-weight: 500;
}

/* ---- DIVIDER ---- */
.px-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--px-gradient-start), var(--px-gradient-end));
    border-radius: 100px;
    margin: 0 auto 1.5rem;
}

/* ---- PAGE HEADER ---- */
.px-page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.px-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top, var(--px-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.px-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.px-page-header p {
    color: var(--px-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.fade-in-up:nth-child(6) { animation-delay: 0.5s; }
.fade-in-up:nth-child(7) { animation-delay: 0.6s; }
.fade-in-up:nth-child(8) { animation-delay: 0.7s; }
.fade-in-up:nth-child(9) { animation-delay: 0.8s; }

/* ---- LOADING ---- */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #1a1a24;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--px-accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--px-text-muted);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ---- ERROR UI ---- */
#blazor-error-ui {
    background: var(--px-bg-card);
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--px-text);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary { padding: 1rem; color: white; background: #b32121; }
.blazor-error-boundary::after { content: "An error has occurred."; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--px-success); }
.invalid { outline: 1px solid #ef4444; }
.validation-message { color: #ef4444; font-size: 0.8rem; margin-top: 0.25rem; }

/* ---- PROBLEM CARDS ---- */
.px-problem-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--px-surface);
    border: 1px solid rgba(251,191,36,0.15);
    border-radius: var(--px-radius);
    padding: 1rem 1.25rem;
    transition: all var(--px-transition);
    height: 100%;
}

.px-problem-card:hover {
    border-color: rgba(251,191,36,0.3);
    background: rgba(251,191,36,0.05);
    transform: translateY(-2px);
}

.px-problem-card i {
    color: #fbbf24;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.px-problem-card span {
    color: var(--px-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- INDUSTRY CARDS ---- */
.px-industry-card {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--px-surface);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    transition: all 0.3s ease;
    height: 100%;
}

.px-industry-card:hover {
    border-color: var(--px-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--px-shadow-lg);
}

.px-industry-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--px-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--px-accent);
    transition: all var(--px-transition);
}

.px-industry-card:hover .px-industry-icon {
    background: linear-gradient(135deg, var(--px-gradient-start), var(--px-gradient-end));
    color: #fff;
}

.px-industry-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--px-text);
}

/* ---- CASE STUDY CARDS ---- */
.px-case-card {
    background: var(--px-bg-card);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.px-case-card:hover {
    border-color: var(--px-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--px-shadow-lg);
}

.px-case-badge {
    display: inline-block;
    background: var(--px-accent-glow);
    color: var(--px-accent);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.px-case-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.px-case-card p {
    color: var(--px-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .px-hero { padding: 7rem 0 4rem; }
    .px-section { padding: 4rem 0; }
    .px-cta-banner { padding: 2rem; }
    .px-page-header { padding: 7rem 0 3rem; }
    .px-industry-card { padding: 1.25rem 0.75rem; }
}
