body {
    background-color: #333;
    /* Fallback */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    min-height: 100vh;
}

.mobile-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: url('../Images/background.webp') no-repeat center center;
    background-size: cover;
}

#home h1 {
    color: #795a5a;
    /* Darker color for visibility */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    /* Pop against background */
    font-weight: 800;
}

.section-blur {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.card-img-top {
    height: 200px;
    /* Fixed height for consistency */
    object-fit: contain;
    /* Prevents cropping */
    padding: 10px;
    /* Adds margin inside the card */
    background: rgba(255, 255, 255, 0.1);
    /* Subtle background to frame non-transparent images */
    border-radius: 10px;
}

.lead {
    color: #795a5a;
}

/* Smartwatch Optimization */
@media (max-width: 380px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .lead,
    p {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Make images smaller on very small screens to fit */
    .card-img-top {
        height: 150px;
    }
}

/* Ensure footer is always readable */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
}