@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMu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) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

body {
    font-family: 'Segoe UI', sans-serif;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #2faec7 !important;
}

footer {
    font-size: 0.9rem;
}


.sticky-appbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

    .sticky-appbar.scrolled {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        background-color: #1565c0; /* Darker blue when scrolling */
    }

body {
    padding-top: 70px; /* Prevent content from hiding behind navbar */
    scroll-behavior: smooth;
}
/* HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    background-attachment: scroll; /* Changed from fixed to prevent jitter/blur */
    min-height: 65vh;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
    /* Force GPU rendering for ultra-sharp text */
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

    .hero .highlight {
        color: #ffe082;
    }

    .hero h1, .hero p {
        animation-duration: 1.2s;
    }

/* FEATURE CARDS */
.feature-card {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

.icon-circle {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
}

/* ANIMATION LIBRARY */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

/* Glassmorphism AppBar */
.compilecare-appbar {
    backdrop-filter: blur(10px);
    background: rgba(100, 180, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Branding Title */
.compilecare-title {
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Hover animation for logo */
.logo-hover {
    transition: transform 0.25s ease;
}

    .logo-hover:hover {
        transform: scale(1.1);
    }

/* Desktop nav links */
.nav-item-link {
    margin: 0 12px;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: none;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}

    .nav-item-link:hover {
        color: #A8E0FF !important;
        border-bottom: 2px solid #A8E0FF;
    }

/* Mobile Drawer Style */
.compilecare-drawer {
    background: linear-gradient(180deg, #0a2341 0%, #0f3d65 100%);
}

    .compilecare-drawer .mud-nav-link {
        color: white !important;
    }

.btn-light-orange {
    background-color: #FFB77A;
    color: #000;
    border: none;
    transition: 0.25s ease-in-out;
}

    .btn-light-orange:hover {
        background-color: #FFA45F;
        color: white;
        transform: translateY(-2px);
    }
/* Background */
.features-section {
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
}

/* Highlight text */
.highlight {
    color: #007bff;
}

/* Section title */
.section-title {
    font-size: 2.4rem;
    letter-spacing: 0.5px;
}

/* Subtitle */
.section-subtitle {
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Modern Feature Card */
.modern-card {
    padding: 32px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
}

    /* Hover Effect */
    .modern-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }

/* Icon Wrapper */
.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    font-size: 28px;
    color: white;
}

/* Glow Colors */
.glow-blue {
    background: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.glow-green {
    background: #22c55e;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.glow-cyan {
    background: #06b6d4;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.features-section {
    background: linear-gradient(to bottom right, #f8fbff, #eef4ff);
}

.highlight {
    color: #0d6efd;
}

.modern-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

    .modern-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 35px rgba(0,0,0,0.1);
    }

/* ICON CIRCLES */
.icon-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Gradient Styles */
.gradient-blue {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.gradient-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.gradient-cyan {
    background: linear-gradient(135deg, #06beb6, #48b1bf);
}

.btn-gradient {
    background: linear-gradient(135deg, #4f93ff, #1c6be0);
    color: white !important;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-gradient:hover {
        transform: translateY(-3px);
        box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.2);
    }

.btn-orange {
    background: #ffb86c;
    border: none;
    color: #222 !important;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-orange:hover {
        background: #ff9e3d;
        transform: translateY(-3px);
    }

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);    
}


.feature-card {
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0px 10px 24px rgba(0,0,0,0.15);
        border: 1px solid rgba(0, 123, 255, 0.4);
    }

.features-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.cta-section {
    background: linear-gradient(135deg, #003a72, #006bb3);
}

body {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media(max-width: 768px) {
    .hero .btn {
        display: block;
        margin-bottom: 12px;
    }

    .software-mockup img {
        max-height: 280px !important;
    }
}

/* Darken background without blurring content */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 35, 65, 0.3); /* Uses your deep navy at low opacity */
    z-index: 1; /* Place below text */
}

.hero .container {
    position: relative;
    z-index: 2; /* Forces text to stay on top of the overlay and stay crisp */
}

/* Sharp Text */
.hero h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 700;
}

/* Sharp Mockup */
.software-mockup img {
    image-rendering: -webkit-optimize-contrast; /* Sharpens images */
    border: 1px solid rgba(255,255,255,0.3) !important;
}
