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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100vw;
}

h1:focus { outline: none; }

/* ===== UTILITIES ===== */
.fw-bold { font-weight: 700 !important; }
.text-gradient {
    background: linear-gradient(135deg, #2E7D32, #00897B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-white { color: #fff !important; }
.text-white-70 { color: rgba(255,255,255,0.75) !important; }
.text-secondary { color: #616161 !important; }
.bg-surface { background: #F8FAF8; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded-xl { border-radius: 16px !important; }
.rounded-lg { border-radius: 12px !important; }

/* ===== NAVBAR ===== */
.navbar-transparent {
    background: transparent !important;
    transition: all 0.3s ease;
}
.navbar-transparent .navbar-brand-link {
    color: #fff !important;
}
.navbar-transparent .nav-link-btn {
    color: rgba(255,255,255,0.9) !important;
}
.navbar-transparent .nav-link-btn:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}

.navbar-scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.navbar-scrolled .navbar-brand-link {
    color: #212121 !important;
}
.navbar-scrolled .nav-link-btn {
    color: #424242 !important;
}
.navbar-scrolled .nav-link-btn:hover {
    color: #2E7D32 !important;
}

.nav-link-btn {
    text-transform: none !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    border-radius: 8px !important;
}
.nav-cta-btn {
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* ===== LOGO ===== */
.navbar-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}
.navbar-scrolled .navbar-logo {
    filter: none;
}
.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #00695C 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(76,175,80,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0,137,123,0.1) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    color: rgba(255,255,255,0.9) !important;
    letter-spacing: 2px !important;
    font-weight: 500;
    font-size: 0.75rem;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0;
}
.hero-title .text-gradient {
    background: linear-gradient(135deg, #A5D6A7, #E8F5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btn {
    border-radius: 10px !important;
    padding: 12px 28px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    background: #fff !important;
    color: #2E7D32 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}
.hero-btn-outline {
    border-radius: 10px !important;
    padding: 12px 28px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    border-color: rgba(255,255,255,0.5) !important;
    color: #fff !important;
}
.hero-btn-outline:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #fff !important;
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 80px 0;
}
.page-header {
    padding: 140px 0 60px;
    background: #F8FAF8;
}

/* ===== STATS ===== */
.stats-section {
    padding: 60px 0;
    background: #fff;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.stat-card {
    padding: 24px 16px;
    border-radius: 16px;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    border: 1px solid #E8EDF2;
    border-radius: 16px !important;
    transition: all 0.3s ease;
    background: #fff;
}
.service-card:hover {
    border-color: #2E7D32;
    box-shadow: 0 8px 30px rgba(46,125,50,0.08);
    transform: translateY(-4px);
}
.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(0,137,123,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ===== SERVICE VISUAL ===== */
.service-visual {
    background: linear-gradient(135deg, #E8F5E9, #E0F2F1) !important;
    border: 1px solid #E8EDF2;
}

/* ===== FEATURE LIST ===== */
.service-feature-list .mud-list-item {
    padding-left: 0 !important;
}

/* ===== TECH VISUAL ===== */
.tech-visual {
    position: relative;
}
.tech-card {
    background: linear-gradient(135deg, #E8F5E9, #E0F2F1) !important;
    border: 1px solid #E8EDF2;
    border-radius: 20px !important;
}
.tech-chip {
    background: #fff !important;
    border: 1px solid #E8EDF2;
    transition: all 0.2s;
}
.tech-chip:hover {
    border-color: #2E7D32;
    box-shadow: 0 4px 12px rgba(46,125,50,0.08);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1B5E20, #00695C);
    position: relative;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(76,175,80,0.15) 0%, transparent 70%);
}
.cta-section > * {
    position: relative;
    z-index: 1;
}
.cta-btn {
    background: #fff !important;
    color: #1B5E20 !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
}

/* ===== 404 ===== */
.not-found-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 60px 0 30px;
    background: #1A2E1A;
    color: #94A3B8;
}
.site-footer .mud-typography {
    color: #CBD5E1;
}
.site-footer .text-secondary {
    color: #94A3B8 !important;
}
.site-footer .mud-icon-button {
    color: #94A3B8 !important;
}
.site-footer .mud-icon-button:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08) !important;
}
.footer-link {
    display: block;
    color: #94A3B8 !important;
    text-decoration: none !important;
    padding: 4px 0;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #fff !important;
}
.site-footer .mud-divider {
    border-color: rgba(255,255,255,0.08) !important;
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
    width: 280px !important;
    max-width: 80vw;
}
.mobile-drawer.mud-drawer--closed {
    transform: translateX(100%) !important;
    visibility: hidden !important;
    position: fixed !important;
}

/* ===== BLAZOR ERROR ===== */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZW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3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An error has occurred."
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .page-header {
        padding: 120px 0 40px;
    }
    .stats-section {
        margin-top: -30px;
    }
    .flex-row-reverse {
        flex-direction: column !important;
    }
}

@media (max-width: 600px) {
    .hero-section {
        min-height: 90vh;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-btn, .hero-btn-outline, .cta-btn {
        width: 100%;
    }
    .stat-card {
        padding: 16px 8px;
    }
}
