/* Basic reset */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Removed 'overflow: hidden;' to prevent cutting off content */
}

/* Main container for the split */
.container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Styling for both splits */
.split {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Left side (Your image) */
.split.left {
    background: url('https://raw.githubusercontent.com/ZappaDappa/website-assets/refs/heads/main/AcadiaBroadcasting_August-Caleb5004.jpg') no-repeat center center;
    background-size: cover;
    transition: width 0.5s ease; /* Smooth transition for collapsing */
}

/* Right side (Links) */
.split.right {
    background-color: #f4f4f4; /* Fallback for blurry background */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    overflow: hidden; 
    overflow-y: auto; /* Allows this pane to scroll ONLY if content is too tall */
}

/* Blurry Background on the right side */
.blurry-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://raw.githubusercontent.com/ZappaDappa/website-assets/refs/heads/main/AcadiaBroadcasting_August--Caleb13.jpg') no-repeat center center; 
    background-size: cover;
    filter: blur(8px) grayscale(80%); 
    -webkit-filter: blur(8px) grayscale(80%); 
    z-index: 1; 
}

.right .content {
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: center; /* Center horizontally */
    justify-content: center;
    position: relative; 
    z-index: 2; 
    padding: 40px 20px; /* Added more vertical padding */
}

/* Styling for the links */
.link-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-decoration: none;
    color: #333; 
    padding: 10px; /* Reduced padding */
    transition: transform 0.3s ease;
}

.link-item:first-child { 
    /* --- CHANGED --- */
    margin-bottom: 20px; /* Reduced space between the two logos */
}

.link-item:last-child { 
    /* No changes needed */
}

.link-item:hover {
    transform: scale(1.05); /* Reduced hover effect slightly */
}

.link-item img {
    /* --- CHANGED --- */
    width: 270px; /* Larger logo */
    height: 270px; /* Larger logo */
    margin-bottom: 15px; /* Reduced space between logo and text */
    object-fit: contain; 
}

/* --- NEW RULE ADDED --- */
.link-item:first-child img {
    transform: scale(1.2); /* Zooms the first logo by 20% */
}


.link-item h2 {
    /* --- CHANGED --- */
    font-size: 1.6rem; /* Smaller text */
    margin: 0;
    font-weight: 800; 
    text-align: center;
    color: white; 
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; 
}

.separator {
    display: none; /* Hide the slash */
}

/* "About" Link */
nav {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100; 
}

#about-link {
    background: white;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

#about-link:hover {
    background: #333;
    color: white;
}

/* The Modal (Pop-up Box) */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    line-height: 1.6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}

.modal-content h2 {
    margin-top: 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

/* --------------------------------------------------
RESPONSIVENESS (Media Queries)
-------------------------------------------------- 
*/

@media (max-width: 768px) { 
    .split.left {
        width: 0; 
        min-width: 0; 
    }

    .split.right {
        width: 100%; 
        justify-content: flex-start; /* Aligns content to the top on mobile */
        padding-top: 60px; /* Pushes content down from the top */
    }

    .right .content {
        flex-direction: column; 
        padding: 40px 20px; 
        transform: translateY(0); 
    }

    .link-item {
        padding: 25px 0; 
        align-self: center !important; 
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important; 
        margin-top: 0 !important;
    }
    
    .link-item:first-child {
        margin-bottom: 20px !important; 
    }


    .link-item img {
        width: 180px; 
        height: 180px;
        margin-bottom: 15px;
    }

    /* --- NEW RULE ADDED --- */
    .link-item:first-child img {
        transform: none; /* Resets the zoom on mobile */
    }

    .link-item h2 {
        font-size: 1.8rem; /* Kept mobile text a bit larger for readability */
    }

    .separator {
        display: none; 
    }

    nav {
        top: 15px;
        right: 15px;
    }

    .modal-content {
        width: 90%; 
        padding: 25px;
    }
}

@media (max-width: 480px) { 
    .link-item img {
        width: 150px; 
        height: 150px;
    }

    .link-item h2 {
        font-size: 1.6rem;
    }

    .modal-content {
        padding: 20px;
        font-size: 0.95rem;
    }