/* ============================================================
   suis.to — Design System CSS
   Supplements Tailwind CDN for things that require custom CSS:
   backdrop-filter, SVG animations, delta watermarks, scrollbar.
   ============================================================ */

/* --- BASE --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: #FAFAFA;
    color: #2D2D2D;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #FAFAFA; }
::-webkit-scrollbar-thumb { background: rgba(91,132,177,0.35); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91,132,177,0.65); }

/* --- TYPOGRAPHY --- */
.font-mono-logo {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- GLASS NAVBAR --- */
.glass-nav {
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    background: rgba(250, 250, 250, 0.55) !important;
    border-bottom: 1px solid rgba(91, 132, 177, 0.18);
    box-shadow: 0 1px 24px rgba(45, 45, 45, 0.04);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.glass-nav.scrolled {
    box-shadow: 0 2px 32px rgba(45, 45, 45, 0.10);
}

/* Nav link hover underline */
.nav-link-item {
    position: relative;
    padding-bottom: 2px;
}
.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #5B84B1;
    transition: width 0.25s ease;
}
.nav-link-item:hover::after { width: 100%; }

/* --- DELTA WATERMARKS --- */
.delta-mark {
    position: absolute;
    pointer-events: none;
    user-select: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1;
    color: rgba(91, 132, 177, 0.038);
    z-index: 0;
}

/* --- FLOWING GUIDE LINE --- */
/* Thin 1px vertical SVG path that meanders between sections */
.flow-line-path {
    fill: none;
    stroke: url(#lineGrad);
    stroke-width: 1;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: drawLine 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* --- SECTION SHARED --- */
.section-content { position: relative; z-index: 1; }

/* Subtle horizontal rule between sections */
.section-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, #5B84B1, #D4C7B0);
    margin: 0 auto;
}

/* --- EXPERTISE CARDS --- */
.expertise-card {
    background: #FFFFFF;
    border: 1px solid rgba(91, 132, 177, 0.12);
    border-radius: 12px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(91, 132, 177, 0.12);
    border-color: rgba(91, 132, 177, 0.30);
}

/* --- PROCESS STEP CONNECTOR --- */
.process-connector {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(91,132,177,0.30), rgba(212,199,176,0.50));
    margin-top: -1px;
}

/* --- CTA BUTTON --- */
.btn-nordic {
    background-color: #00A3E0;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.625rem 1.5rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-nordic:hover {
    background-color: #0093CC;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 163, 224, 0.28);
}

.btn-baltic {
    background-color: transparent;
    color: #5B84B1;
    border: 1px solid rgba(91, 132, 177, 0.45);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.625rem 1.5rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-baltic:hover {
    background-color: rgba(91, 132, 177, 0.06);
    border-color: #5B84B1;
    transform: translateY(-1px);
}

/* --- MOBILE MENU --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    opacity: 0;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(91, 132, 177, 0.10);
}
.mobile-menu.open {
    max-height: 360px;
    opacity: 1;
}

/* --- HERO PATTERN --- */
.hero-grid {
    background-image:
        linear-gradient(rgba(91, 132, 177, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 132, 177, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* --- JOURNEY SECTION --- */
.journey-city {
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    overflow: hidden;
}
.journey-city::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.045;
    border-radius: 16px;
}
.journey-hcmc::before { background: linear-gradient(135deg, #D4C7B0, #5B84B1); }
.journey-fin::before  { background: linear-gradient(135deg, #5B84B1, #00A3E0); }

/* --- CONTACT SECTION --- */
.contact-card {
    background: #FFFFFF;
    border: 1px solid rgba(91, 132, 177, 0.12);
    border-radius: 20px;
    box-shadow: 0 4px 40px rgba(45, 45, 45, 0.06);
}

/* ============================================================
   BLAZOR REQUIRED STYLES (do not remove)
   ============================================================ */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background: #b32121;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}
.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #5B84B1;
    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;
    font-family: 'Inter', sans-serif;
    color: #5B84B1;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.loading-progress-text::after { content: var(--blazor-load-percentage-text, "Loading"); }
