:root {
    --deep-burgundy: #710912;
    --midnight-black: #0D0D0D;
    --antique-gold: #C28D39;
    --dark-espresso: #362822;
    --warm-champagne: #EFE5D2;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--midnight-black);
    color: var(--warm-champagne);
    font-family: Georgia, 'Times New Roman', serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    min-height: 100vh;
    line-height: 1.65;
}

/* Header Navigation Bar */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--dark-espresso);
    margin-bottom: 2.5rem;
}

#logo1 {
    height: 110px;
    width: auto;
    display: block;
    transition: transform 0.25s ease;
}

#logo1:hover {
    transform: scale(1.03);
}

/* Company About Section */
.company-about {
    background-color: var(--dark-espresso);
    border: 1.5px solid var(--antique-gold);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.company-about h1 {
    margin: 0 0 0.85rem 0;
    color: var(--antique-gold);
    border-bottom: 2px solid var(--deep-burgundy);
    padding-bottom: 0.4rem;
    font-size: 2rem;
}

.company-about p {
    margin: 0;
    color: var(--warm-champagne);
    font-size: 1rem;
}

/* Meet the Team Heading */
h3 {
    color: var(--antique-gold);
    border-bottom: 2px solid var(--deep-burgundy);
    padding-bottom: 0.35rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Individual Team Cards Table */
.indiv-about {
    width: 100%;
    overflow-x: hidden;
}

.indiv-about table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1.25rem;
    table-layout: fixed;
}

.indiv-about td {
    background-color: var(--dark-espresso);
    border: 1.5px solid var(--antique-gold);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    vertical-align: top;
    width: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.indiv-about td:hover {
    transform: translateY(-4px);
    border-color: var(--warm-champagne);
}

.indiv-about td h1 {
    margin: 0 0 1rem 0;
    font-size: 1.35rem;
    color: var(--warm-champagne);
}

.indiv-about td h1 a {
    color: var(--warm-champagne);
    text-decoration: none;
}

.indiv-about td h1 a:hover {
    color: var(--antique-gold);
}

.indiv-about img,
.head-img {
    width: 145px;
    height: 145px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--antique-gold);
    outline: 3px solid var(--deep-burgundy);
    display: inline-block;
    transition: transform 0.25s ease;
}

.indiv-about img:hover,
.head-img:hover {
    transform: scale(1.04);
}

/* Moving Ladybug generated purely in CSS */
body::after {
    content: "";
    position: fixed;
    right: 22px;
    bottom: 5vh;
    width: 22px;
    height: 24px;
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;

    background:
        linear-gradient(to right, transparent 47%, var(--midnight-black) 47%, var(--midnight-black) 53%, transparent 53%),
        radial-gradient(circle at 32% 30%, var(--midnight-black) 2.2px, transparent 2.5px),
        radial-gradient(circle at 68% 30%, var(--midnight-black) 2.2px, transparent 2.5px),
        radial-gradient(circle at 28% 62%, var(--midnight-black) 2.2px, transparent 2.5px),
        radial-gradient(circle at 72% 62%, var(--midnight-black) 2.2px, transparent 2.5px),
        var(--deep-burgundy);

    border: 1.5px solid var(--antique-gold);
    box-shadow:
        0 -8px 0 -6px var(--midnight-black),
        0 -8px 0 -5px var(--antique-gold),
        -4px -13px 0 -9px var(--antique-gold),
        4px -13px 0 -9px var(--antique-gold),
        0 4px 10px rgba(0, 0, 0, 0.75);

    animation: crawlLadybugCSS 18s ease-in-out infinite;
}

@keyframes crawlLadybugCSS {
    0% {
        right: 22px;
        bottom: 5vh;
        transform: rotate(0deg);
    }
    15% {
        right: 26px;
        bottom: 30vh;
        transform: rotate(-7deg);
    }
    30% {
        right: 18px;
        bottom: 58vh;
        transform: rotate(6deg);
    }
    45% {
        right: 24px;
        bottom: 84vh;
        transform: rotate(-4deg);
    }
    52% {
        right: 24px;
        bottom: 84vh;
        transform: rotate(180deg);
    }
    70% {
        right: 18px;
        bottom: 52vh;
        transform: rotate(173deg);
    }
    88% {
        right: 26px;
        bottom: 22vh;
        transform: rotate(187deg);
    }
    96% {
        right: 22px;
        bottom: 5vh;
        transform: rotate(180deg);
    }
    100% {
        right: 22px;
        bottom: 5vh;
        transform: rotate(360deg);
    }
}

/* Mobile responsiveness */
@media (max-width: 650px) {
    .indiv-about table {
        border-spacing: 0;
        margin: 0;
    }

    .indiv-about td {
        display: block;
        width: 100%;
        margin-bottom: 1.25rem;
    }

    body::after {
        right: 10px;
    }
}