/* ==========================================
   1. RESET & BASE SETTINGS
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; /* Keeps the landing page sharp and screen-fit without scrolling */
}

/* ==========================================
   2. SPLIT LAYOUT CONTAINER
   ========================================== */
.split-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.split {
    position: relative;
    flex: 1; /* Splits screens 50/50 exactly by default */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Handles the elegant expansion physics on hover */
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

/* Semi-dark mask layer for ultimate text readability over imagery */
.split::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.5s ease;
    z-index: 1;
}

/* Background Image Assignments */
.church { 
    background: url('church2.jpeg') center/cover no-repeat; 
}
.construction { 
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1200') center/cover no-repeat; 
}

/* ==========================================
   3. INNER TEXT CONTENT & TITLES
   ========================================== */
.content {
    position: relative;
    z-index: 2; /* Forces contents over the dark mask layer */
    color: #ffffff;
    text-align: center;
    padding: 20px;
    transition: transform 0.5s ease;
}

.content h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.95;
}

/* ==========================================
   4. INTERACTIVE ACTIONS & BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 35px;
    color: #ffffff;
    border: 2px solid #ffffff;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* --- HOVER MAGIC EFFECTS --- */

/* Expands the width dynamically when pointed at */
.split:hover { 
    flex: 1.5; 
}

/* Gently lights up the layout on hover */
.split:hover::before { 
    background: rgba(0, 0, 0, 0.25); 
}

/* Tiny forward layout swell */
.split:hover .content {
    transform: scale(1.03);
}

/* Church Button Interaction */
.church:hover .btn { 
    background: #ffffff; 
    color: #2c3e50; 
}

/* Construction Button Interaction */
.construction:hover .btn { 
    background: #f39c12; 
    border-color: #f39c12; 
    color: #ffffff; 
}

/* ==========================================
   5. SMART PHONE RESPONSIVENESS
   ========================================== */
@media (max-width: 768px) {
    /* Changes columns into a top-and-bottom row layout for mobile devices */
    .split-container { 
        flex-direction: column; 
    }
    
    .split:hover { 
        flex: 1.3; 
    }
    
    .content h1 { 
        font-size: 2.2rem; 
    }
    
    .content p { 
        font-size: 1rem; 
    }
}
