/* Core Variables & Reset */
:root {
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --blue-light: #4A90E2; /* Gradient color 1 */
    --blue-dark: #003366;  /* Gradient color 2 */
    --card-bg: #f9f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.profile-container {
    margin-bottom: 1.5rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-white);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    /* Two-shade blue gradient text */
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Grids for Categories and Projects */
section {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 0.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Category Cards */
.category-card {
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-dark);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.1);
    /* Subtle gradient border effect on hover */
    border-image: linear-gradient(135deg, var(--blue-light), var(--blue-dark)) 1;
}

.category-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Recent Projects */
.project-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e0eaf5, #cce0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    font-weight: bold;
}

.project-item h4 {
    padding: 1rem;
}

/* Contact Footer */
.contact-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    color: var(--bg-white);
}

.contact-section h3 {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.contact-section p {
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--bg-white);
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #f0f0f0;
}

/* Background Image Overlays for Category Cards */

.church-bg {
    /* The linear-gradient acts as a dark blue tint over the image */
    background-image: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('images/childrensday.jpg');
    background-size: cover;
    background-position: center;
    border: none;
}

.political-bg {
    background-image: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('images/policies copy.jpg');
    background-size: cover;
    background-position: center;
    border: none;
}

.funeral-bg {
    background-image: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('images/sya_TV.jpg');
    background-size: cover;
    background-position: center;
    border: none;
}

/* Force text to white so it contrasts against the dark overlay */
.church-bg h4, .church-bg p,
.political-bg h4, .political-bg p {
    color: var(--bg-white);
}

.funeral-bg h4, .funeral-bg p{
  color: var(--bg-white);
}

/* Remove the gradient text effect on these specific cards */
.church-bg h4, .political-bg h4 {
    background: none;
    -webkit-text-fill-color: var(--bg-white);
}

/* Hover effect: makes the tint slightly lighter to indicate it is clickable */
.church-bg:hover {
    background-image: linear-gradient(rgba(74, 144, 226, 0.8), rgba(0, 51, 102, 0.9)), url('images/childrensday.jpg');
}

.political-bg:hover {
    background-image: linear-gradient(rgba(74, 144, 226, 0.8), rgba(0, 51, 102, 0.9)), url('images/policies copy.jpg');
}

/* About Me Section */
.about-me {
    text-align: center;
    max-width: 800px; /* Keeps the line length short for easy reading */
}

.about-me p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Update the existing .contact-section padding to minimize height */
.contact-section {
    text-align: center;
    padding: 2.5rem 1.5rem; /* Reduced from 4rem to 2.5rem to minimize height */
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    color: var(--bg-white);
}

/* New layout for grouping the buttons cleanly */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Primary Contact Button (Maintains hierarchy) */
.primary-btn {
    background-color: var(--bg-white);
    color: var(--blue-dark);
}

/* Secondary Social Buttons (Slightly transparent so they don't compete) */
.social-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white); /* Keeps text white on hover */
}

/* --- General/Desktop Styling (Keep this) --- */
.social-button-container {
    display: flex;
    justify-content: center; /* Centers the row on desktop */
    gap: 15px;               /* Spacing between buttons in the row */
    margin-top: 30px;
}

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #337ab7; /* Example blue color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* --- MOBILE FIX: Stacks buttons vertically on smaller screens --- */
/* Target screens smaller than 600px wide (standard mobile cutoff) */
@media screen and (max-width: 600px) {

    .social-button-container {
        flex-direction: column; /* Force the Flexbox to STACK VERTICALLY */
        align-items: center;    /* Center the stacked buttons horizontally */
        gap: 12px;               /* Add consistent spacing between stacked buttons */
    }

    .social-btn {
        width: 80%;             /* Make the buttons wider for easier mobile tapping */
        max-width: 300px;        /* Prevent them from getting too huge on large phones */
        text-align: center;      /* Center the text inside the button */
        padding: 12px 15px;      /* Slightly taller padding for better touch targets */
    }
}