/* Portfolio Grid Styles */
.portfolio-category {
    margin-bottom: 60px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-height: 400px;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.portfolio-category:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.portfolio-category-title {
    font-family: 'Sacramento', cursive;
    font-size: 2.8em;
    color: #333;
    margin-bottom: 35px;
    text-align: center;
    padding-bottom: 15px;
    position: relative;
    text-decoration: none;
}

.portfolio-category-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #88c9c9;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.portfolio-category:hover .portfolio-category-title:after {
    width: 100px;
}

.portfolio-category-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for categories */
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 25px;
    padding: 10px 5px;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-item {
    transition: all 0.4s ease;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 1/1; /* Square aspect ratio */
    height: 0;
    padding-bottom: 100%; /* This creates a square */
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.portfolio-item:hover .portfolio-image-container img {
    transform: scale(1.05);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* View All Button */
.view-all-button {
    margin-top: 15px;
    text-align: center;
}

.view-all-button a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #88c9c9;
    color: #fff;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #88c9c9;
    text-decoration: none;
}

.view-all-button a:hover {
    background-color: #fff;
    color: #88c9c9;
}

/* Portfolio section overall styling */
.portfolio-section.float-style {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.portfolio-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-weight: 700;
    letter-spacing: 1px;
}

.center-button {
    margin-top: 40px;
    text-align: center;
}

.center-button a {
    display: inline-block;
    padding: 12px 35px;
    background-color: #88c9c9;
    color: #fff;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #88c9c9;
    text-decoration: none;
}

.center-button a:hover {
    background-color: #fff;
    color: #88c9c9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.0);
    text-decoration: none;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-header h1 {
    font-size: 46px;
    color: #333;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.portfolio-header h1:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: #88c9c9;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.portfolio-description {
    font-size: 18px;
    line-height: 1.8;
    color: #777;
    margin-top: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .portfolio-category-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on smaller screens */
        gap: 15px;
    }
    
    .portfolio-category-title {
        font-size: 2.2em;
    }
    
    .portfolio-category-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Switch to 1 column on very small screens */
    }
} 