/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


/* --- Portfolio Page Template Styles --- */

:root {
    --primary-color: #007bff; /* A classic blue, adjust as desired */
    --secondary-color: #6c757d; /* Muted gray */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif; /* Or another elegant font loaded via Blocksy/plugin */
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Or another heading font */
    color: var(--text-color);
}

/* Hero Section */
.portfolio-hero {
    position: relative;
    width: 100%;
    min-height: 450px; /* Slightly taller hero */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Elegant overlay for better text readability */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    padding: 60px 20px; /* Add some padding */
}

.portfolio-hero .hero-content {
    max-width: 900px;
    z-index: 1;
}

.portfolio-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-hero .hero-description {
    font-size: 1.3em;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Developer Profile Image */
.developer-profile-img {
    margin-top: 30px;
    text-align: center;
}
.developer-profile-img img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-links a {
    color: #fff;
    font-size: 2em;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.social-links a:hover {
    color: var(--primary-color); /* Highlight on hover */
    transform: translateY(-3px);
}

/* General Content Area */
.entry-content.container {
    max-width: 1200px; /* Wider container */
    margin: 60px auto;
    padding: 0 30px;
}

/* Sections Styling */
section {
    margin-bottom: 80px; /* More spacing between sections */
}

section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Skills Section */
.portfolio-skills {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
    border-radius: 8px;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Increased gap */
}

.skills-list li {
    background-color: #fff;
    padding: 12px 25px;
    border-radius: 30px; /* Pill-shaped */
    font-weight: 600;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.skills-list li:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; /* More spacing */
}

.project-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Ensure image and content stack */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.project-image {
    width: 100%;
    height: 220px; /* Slightly taller image */
    background-size: cover;
    background-position: center center;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.03); /* Subtle zoom on hover */
}

.project-details {
    padding: 25px;
    flex-grow: 1; /* Allow details to fill space */
    display: flex;
    flex-direction: column;
}

.project-details h3 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.project-details p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.project-details .button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start; /* Aligns button to start of its flex container */
}

.project-details .button:hover {
    background-color: #0056b3; /* Darker primary color */
    transform: translateY(-2px);
}

/* Pagination Styles */
.pagination-controls {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-controls button {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    min-width: 40px; /* Give buttons a consistent width */
}

.pagination-controls button:hover:not(.active) {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
}

.pagination-controls button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    cursor: default;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .portfolio-hero {
        min-height: 350px;
    }
    .portfolio-hero h1 {
        font-size: 2.8em;
    }
    .portfolio-hero .hero-description {
        font-size: 1.1em;
    }
    section h2 {
        font-size: 2em;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 40px 20px;
        min-height: 300px;
    }
    .portfolio-hero h1 {
        font-size: 2.2em;
    }
    .portfolio-hero .hero-description {
        font-size: 1em;
    }
    .entry-content.container {
        padding: 0 20px;
        margin: 40px auto;
    }
    .skills-list {
        gap: 10px;
    }
    .skills-list li {
        padding: 10px 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr; /* Stack projects on smaller screens */
    }
    .project-image {
        height: 180px;
    }
    .project-details h3 {
        font-size: 1.5em;
    }
}