/* --- Global Reset & Base Styles --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2d3436;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- Layout Container --- */
/* This fix ensures that the header and main content stack vertically.
   Standard Blazor templates often use a horizontal flex for the sidebar, 
   which we are overriding here. */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

main {
    flex: 1;
    width: 100%;
    display: block;
}

/* --- Navigation Header --- */
.top-row {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* --- Brand/Logo --- */
.navbar-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

    .navbar-brand .main-title {
        color: #1a202c;
        font-weight: 800;
        font-size: 1.75rem;
        letter-spacing: -0.5px;
        line-height: 1;
    }

    .navbar-brand .logo-text {
        font-size: 1.8rem;
        color: black;
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 2px;
        margin-top: 4px;
    }

    .navbar-brand .tagline {
        font-size: 0.75rem;
        color: #007bff;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 2px;
        margin-top: 4px;
        line-height: 2;
    }

/* --- Nav Links --- */
.main-nav {
    display: flex;
    gap: 12px;
}

    .main-nav .nav-link {
        font-weight: 600;
        color: #4a5568;
        padding: 10px 20px;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }

        .main-nav .nav-link:hover {
            color: #007bff;
            background-color: #f7fafc;
        }

        /* Blazor active route class */
        .main-nav .nav-link.active {
            background-color: #007bff;
            color: #ffffff !important;
        }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.7);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    color: white;
    text-align: center;
    max-width: 700px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 0 20px;
}

    .hero-overlay h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        margin-bottom: 1rem;
        font-weight: 800;
    }

/* --- Buttons --- */
.btn-primary-custom {
    display: inline-block;
    background-color: #007bff;
    color: white !important;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

    .btn-primary-custom:hover {
        background-color: #0056b3;
    }

/* --- Features Section --- */
.features-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* --- Footer --- */
.footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 2rem 0;
    text-align: center;
    flex-shrink: 0;
}

/* --- Blazor Loading UI --- */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: 0 314.15;
            animation: loading-progress-circle 2s linear infinite;
        }

@keyframes loading-progress-circle {
    0% {
        stroke-dasharray: 0 314.15;
    }

    50% {
        stroke-dasharray: 157 314.15;
    }

    100% {
        stroke-dasharray: 314.15 314.15;
    }
}


/* --- Global Reset & Base Styles --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2d3436;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- Layout Container --- */
/* This fix ensures that the header and main content stack vertically.
   Standard Blazor templates often use a horizontal flex for the sidebar, 
   which we are overriding here. */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

main {
    flex: 1;
    width: 100%;
    display: block;
}

/* --- Navigation Header --- */
.top-row {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* --- Brand/Logo --- */
.navbar-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

    .navbar-brand .main-title {
        color: #1a202c;
        font-weight: 800;
        font-size: 1.75rem;
        letter-spacing: -0.5px;
        line-height: 1;
    }

    .navbar-brand .tagline {
        font-size: 0.75rem;
        color: #007bff;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 2px;
        margin-top: 4px;
    }

/* --- Nav Links --- */
.main-nav {
    display: flex;
    gap: 12px;
}

    .main-nav .nav-link {
        font-weight: 600;
        color: #4a5568;
        padding: 10px 20px;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }

        .main-nav .nav-link:hover {
            color: #007bff;
            background-color: #f7fafc;
        }

        /* Blazor active route class */
        .main-nav .nav-link.active {
            background-color: #007bff;
            color: #ffffff !important;
        }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.7);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    color: white;
    text-align: center;
    max-width: 700px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 0 20px;
}

    .hero-overlay h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        margin-bottom: 1rem;
        font-weight: 800;
    }

/* --- Buttons --- */
.btn-primary-custom {
    display: inline-block;
    background-color: #007bff;
    color: white !important;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

    .btn-primary-custom:hover {
        background-color: #0056b3;
    }

/* --- Features Section --- */
.features-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* --- Footer --- */
.footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 2rem 0;
    text-align: center;
    flex-shrink: 0;
}

/* --- Blazor Loading UI --- */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: 0 314.15;
            animation: loading-progress-circle 2s linear infinite;
        }

@keyframes loading-progress-circle {
    0% {
        stroke-dasharray: 0 314.15;
    }

    50% {
        stroke-dasharray: 157 314.15;
    }

    100% {
        stroke-dasharray: 314.15 314.15;
    }
}
/* --- Global Reset & Base Styles --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2d3436;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- Layout Container --- */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

main {
    flex: 1;
    width: 100%;
    display: block;
}

/* --- Navigation Header --- */
.top-row {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* --- Nav Links --- */
.main-nav {
    display: flex;
    gap: 12px;
}

    .main-nav .nav-link {
        font-weight: 600;
        color: #4a5568;
        padding: 10px 20px;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }

        .main-nav .nav-link:hover {
            color: #007bff;
            background-color: #f7fafc;
        }

        .main-nav .nav-link.active {
            background-color: #007bff;
            color: #ffffff !important;
        }

/* --- Contact Form Layout Fixes --- */
.mb-3 {
    margin-bottom: 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #4a5568;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    display: block;
    width: 100% !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #007bff;
        outline: 0;
        box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* --- Blazor Validation Support --- */
.form-control.invalid {
    border-color: #e53e3e;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23e53e3e' viewBox='0 0 16 16'%3e%3cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3e%3cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validation-message, .text-danger.small {
    color: #e53e3e;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
    display: block;
}

/* --- Form Buttons --- */
.btn-primary.btn-lg {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 10px;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

    .btn-primary.btn-lg:hover:not(:disabled) {
        background-color: #0056b3;
        transform: translateY(-1px);
    }

    .btn-primary.btn-lg:active {
        transform: translateY(1px) scale(0.99);
    }

/* --- Feedback UI --- */
.bg-light.shadow.rounded {
    background-color: #ffffff !important;
    padding: 2.5rem !important;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.alert-success {
    background-color: #f0fff4;
    color: #2f855a;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c53030;
}

/* --- Footer --- */
.footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 2rem 0;
    text-align: center;
    flex-shrink: 0;
}