﻿/* --- Subtle Background --- */

body {
    background-color: #ffffff;
    color: #172033;
}

/* Ensure MudBlazor backgrounds override body where needed */
.mud-paper, .mud-card {
    background-color: var(--mud-palette-surface); /* Use MudBlazor surface color for components */
}

.mud-layout .mud-main-content {
    padding-top: 0 !important;
}

/* Remove these if no longer needed with full-width sections or adjust: */
/*
.hero-section-paper {
    background: var(--mud-palette-background-grey) !important;
}

.contact-section-paper {
    background-color: var(--mud-palette-secondary) !important;
}
*/

/* Make sections without explicit backgrounds transparent to show body BG (useful for Elevation="0" MudPaper in non-full-width scenarios) */
.mud-paper[elevation="0"] {
    background-color: transparent;
}

/* --- Card Hover Effects --- */
.interactive-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.interactive-card:hover {
    transform: translateY(-6px); /* Lift effect */
    box-shadow: var(--mud-elevation-12); /* Increase shadow depth */
    z-index: 3; /* Ensure it lifts above other content */
}

/* --- Entrance Animations --- */
[data-animate-on-scroll] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    [data-animate-on-scroll].fade-in {
        /* Default state is opacity 0 above */
    }

    [data-animate-on-scroll].slide-in-bottom {
        transform: translateY(30px); /* Start slightly below */
    }

    [data-animate-on-scroll].slide-in-left {
        transform: translateX(-30px); /* Start slightly left */
    }

    [data-animate-on-scroll].slide-in-right {
        transform: translateX(30px); /* Start slightly right */
    }


    /* State when element becomes visible */
    [data-animate-on-scroll].is-visible {
        opacity: 1;
        transform: none; /* Reset transform */
    }


/* --- Full Width & Parallax Sections --- */
.full-width-section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    position: relative; /* Needed for overlay, content positioning, AND JS image cycler */
    overflow: hidden;
    background-color: var(--mud-palette-background-grey); /* Default for non-parallax */
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px; /* Adjust as needed per section via more specific rules or inline style */
    /* Basic CSS transition for background image, mainly a fallback if JS method is not used.
       JS based cross-fade (imageCycler.js) will look smoother. */
    transition: background-image 0.5s ease-in-out;
}

.section-content {
    position: relative; /* To sit above the overlay */
    z-index: 2;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Default light overlay */
    z-index: 1; /* Behind content, but above the actual parallax background image if a tempDiv is used by JS */
}

    .section-overlay.darker-overlay {
        background-color: rgba(0, 0, 0, 0.45);
    }


/* --- Specific Section Styles & Readability --- */

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(226, 232, 240, 0.24)) !important;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-grid {
    align-items: center;
}

.hero-title {
    color: #172033 !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.hero-subtitle {
    color: #334155 !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    text-shadow: none !important;
}

.hero-logo-wrapper {
    position: relative;
    isolation: isolate;
    z-index: 2;
}

    .hero-logo-wrapper::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 255px;
        height: 255px;
        border-radius: 28px;
        background:
            radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 46%, rgba(255, 255, 255, 0.04) 100%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(148, 163, 184, 0.12));
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 18px 55px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.42);
        backdrop-filter: blur(16px) saturate(135%);
        -webkit-backdrop-filter: blur(16px) saturate(135%);
        z-index: -2;
        transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    }

    .hero-logo-wrapper .mud-image {
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.18));
        transition: transform 0.35s ease, filter 0.35s ease;
    }

.hero-panel:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(226, 232, 240, 0.28)) !important;
    border-color: rgba(255, 255, 255, 0.58);
}

.hero-panel:hover .hero-logo-wrapper::before {
    transform: translate(-50%, -50%) scale(1.015);
}

.hero-panel:hover .hero-logo-wrapper .mud-image {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 22px 28px rgba(15, 23, 42, 0.22));
}

.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.site-footer-copy {
    color: #cbd5e1 !important;
    display: block;
    margin-top: 0.35rem;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.site-footer-links a {
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.site-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
}

.site-footer-actions .mud-icon-button {
    color: #ffffff !important;
}


.services-section {
    background-color: var(--mud-palette-background);
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .service-card .mud-icon-root {
        margin-bottom: 1rem;
    }

.cloud-section {
    min-height: 60vh; /* Or adjust as needed */
    display: flex;
    align-items: center;
}

/* Cloud card styling for readability */
.cloud-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--mud-palette-surface) !important; /* SOLID background for readability */
    backdrop-filter: none !important; /* Ensure no inherited blur */
}

.cloud-card .mud-icon-root {
    margin-bottom: 1rem;
}

/* Ensure text inside SOLID cloud cards uses appropriate theme colors */
.cloud-section .cloud-card .mud-typography-h6,
.cloud-section .cloud-card .mud-typography-body2 {
    color: var(--mud-palette-text-primary) !important;
}

.cloud-section .cloud-card .mud-card-header .mud-typography-h6 {
    color: var(--mud-palette-text-primary) !important;
}
/* Cloud Section General Sub-headline Text Readability */
.cloud-section > .section-content > .animate-on-scroll > .mud-typography-h6 {
    color: white !important; /* Make it fully white against dark parallax */
    font-weight: 500; /* Slightly bolder */
    text-shadow: 0 1px 8px rgba(0,0,0,0.7); /* STRONGER shadow for definition */
}

.why-us-section {
    background-color: var(--mud-palette-background-grey);
}

.why-us-section .mud-icon-root {
    font-size: 3rem !important; /* For icons directly in .why-us-section items */
}

.contact-section {
    min-height: 60vh; /* Or adjust */
    display: flex;
    align-items: center;
    /* Default BG if not parallax; if parallax, image is set inline */
    background-color: var(--mud-palette-secondary);
}

/* Contact section text if not using parallax or if text needs to be explicitly colored for a dark parallax */
.contact-section:not(.parallax-bg) .mud-text-root {
    color: var(--mud-palette-secondary-text) !important;
}

/* Sub-headline text readability for Contact Section */
.contact-section.parallax-bg .mud-paper .mud-typography-h6 {
    color: white !important; /* Make it fully white */
    font-weight: 500; /* Slightly bolder */
    text-shadow: 0 1px 8px rgba(0,0,0,0.7); /* STRONGER shadow */
}

/* General Padding for Inner Containers in Full-Width Sections */
.full-width-section > .mud-container-maxwidth-lg,
.full-width-section > .mud-container-maxwidth-md,
.full-width-section > .mud-container-maxwidth-xl, /* Added xl in case you use it */
.full-width-section > .mud-container-maxwidth-sm,
.full-width-section > .mud-container-maxwidth-xs {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .full-width-section > .mud-container-maxwidth-lg,
    .full-width-section > .mud-container-maxwidth-md,
    .full-width-section > .mud-container-maxwidth-xl,
    .full-width-section > .mud-container-maxwidth-sm,
    .full-width-section > .mud-container-maxwidth-xs {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem !important;
    }

    .hero-logo-wrapper::before {
        width: 225px;
        height: 225px;
        border-radius: 24px;
    }

    .site-footer-actions {
        justify-content: flex-start;
    }

    .cloud-section, .contact-section {
        min-height: auto; /* Let content dictate height more on mobile for parallax sections */
    }

    .parallax-bg {
        /* background-attachment: scroll; */ /* Consider un-commenting if parallax is janky on target mobile devices */
    }
}
