/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Container uses CSS Grid for a 2x2 layout over the full viewport */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Quadrant links styling */
.quadrant {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    padding: 1rem;
}

/* Override alignment for right-hand quadrants */
.top-right {
    align-items: flex-end;
}

.bottom-left {
    justify-content: flex-end; /* Bottom aligned, left aligned (default) */
}

.bottom-right {
    justify-content: flex-end; /* Bottom aligned */
    align-items: flex-end; /* Right aligned */
}

/* Background images for each quadrant (images located in the public directory) */
.top-left {
    background: url("./../public/resumeimage.jpeg") center center / cover
        no-repeat;
    background-position: center 65%;
}
.top-right {
    background: url("./../public/willbyrnesailing.jpg") center center / cover
        no-repeat;
    background-position: center 25%;
}
.bottom-left {
    background: url("./../public/kaiphoto.jpg") center center / cover no-repeat;
    background-position: center 30%;
}
.bottom-right {
    background: url("./../public/bikephoto.JPG") center top / cover
        no-repeat;
    background-position: center 72%;
}

/* Text block container for headings and subtext */
.text-block {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    max-width: 300px;  
}

/* Heading style */
.text-block .heading {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    color: #000000; 
}

/* Subtext style */
.text-block .subtext {
    font-size: 0.9rem;
    display: block;
    color: #000000;  
}

/* Center container for headshot and social buttons */
.center-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    z-index: 10;
}

/* Headshot image styling */
.headshot {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Social buttons styling */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-buttons a {
    background-color: #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    height: 40px;
    width: 40px;
}

/* Social icon image styling */
.social-icon {
    width: 40px;
    height: 40px;
}

/* Add a black overlay over each quadrant */
.quadrant::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Fade the overlay on hover */
.quadrant:hover::before {
    opacity: 0;
}

/* Ensure text appears above the overlay */
.text-block {
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 600px) {
    /* Increase the center container's padding */
    .center-container {
        padding: 3rem;
    }

    /* Enlarge the headshot */
    .headshot {
        width: 150px;
        height: 150px;
    }

    /* Enlarge social buttons and icons */
    .social-buttons a {
        height: 40px;
        width: 40px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    /* Optionally, adjust font sizes for clarity */
    .text-block .heading {
        font-size: 1.4rem;
    }

    .text-block .subtext {
        font-size: 1rem;
    }
}
