/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #333333;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    background-color: rgba(169, 169, 169, 0.3);
    padding: 0 1.2rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: background-color 0.3s;
}
.navbar:hover {
    background-color: rgba(169, 169, 169, 1);
}

.brand-title {
    font-size: 1.5rem;
    color: #fff;
    white-space: nowrap;
    font-weight: normal;
    margin-right: 0.5rem;
}

.navbar-expanded-links {
    display: flex;
    gap: 0.7rem;
}
.navbar-expanded-links a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    opacity: 0.3;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.navbar-expanded-links a:hover {
    opacity: 1;
    color: purple;
}

/* Left & Right Vertical Rectangles */
.left-rectangle,
.right-rectangle {
    position: fixed;
    top: 0;
    width: 18%;
    height: 100%;
    background-image: url('https://fluid-pixel.com/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}
.left-rectangle { left: 0; }
.right-rectangle { right: 0; }

/* Main content area */
.content-area {
    width: 64%;
    margin: 50px auto;
    padding: 40px;
    max-width: 1200px;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* Services grid: 2 columns, 3 rows */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 3rem;
    align-items: start;
}

.services-column {
    background-color: transparent;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.services-column h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.services-column ul {
    margin: 0;
    padding-left: 1.5rem;
}

.services-column li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

/* ↓↓↓ MOBILE tweaks only ↓↓↓ */
@media screen and (max-width: 768px) {
    /* Narrow & center content area */
    .content-area {
        width: 90%;
        padding: 20px;
        margin: 60px auto;
    }
    /* Stack services vertically */
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    /* Shrink & center text */
    .services-column {
        font-size: 0.75rem;
        text-align: center;
        max-width: 100%;
    }
    .services-column h2 {
        font-size: 1rem;
    }
    /* Remove bullets on mobile */
    .services-column ul {
        list-style: none;
        padding-left: 0;
    }
    .services-column li {
        margin-left: 0;
        list-style: none;
        margin-bottom: 0.5rem;
    }

    /* 1) Shrink brand */
    .brand-title {
        font-size: 0.75rem !important;
    }
    /* 2) Beef up nav opacity */
    .navbar {
        background-color: rgba(169, 169, 169, 0.45);
    }
    /* 3) Expand tappable area */
    .navbar-expanded-links a {
        font-size: 0.6rem;
        opacity: 0.6;
        color: #f5f5f5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        padding: 0 0.5rem;
        margin: 0 -0.5rem;
        /* override native blue flash with purple */
        -webkit-tap-highlight-color: purple;
    }
    /* 4) Keep ‘Services’ tab purple on mobile */
    .navbar-expanded-links a[href="services.html"] {
        color: purple !important;
        opacity: 1 !important;
    }
}
