



#portfolio .portfolio-item .portfolio-link {
    display: block;
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background:#669264;
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    transition: all ease .5s;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover:hover {
    opacity: 0.70;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 20px;
    margin-top: -12px;
    text-align: center;
    font-size: 20px;
    color: #fff;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content i {
    margin-top: -12px;
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content h3,
#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content h4 {
    margin: 0;
}

#portfolio .portfolio-item .portfolio-caption {
    margin: 0 auto;
    padding: 25px;
    max-width: 400px;
    text-align: center;
   
}

#portfolio .portfolio-item .portfolio-caption h4 {
    margin: 0;
    text-transform: none;
}

#portfolio .portfolio-item .portfolio-caption p {
    margin: 0;
    font-family: "Droid Serif","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-style: italic;
}

#portfolio * {
    z-index: 2;
}

@media(min-width:767px) {
    #portfolio .portfolio-item {
        margin: 0 0 30px;
    }
}



.portfolio-modal .modal-content {
    padding: 100px 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    text-align: center;
    background-clip: border-box;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.portfolio-modal .modal-content h2 {
    margin-bottom: 15px;
    font-size: 2.5em;
}

.portfolio-modal .modal-content p {
    margin-bottom: 30px;
}

.portfolio-modal .modal-content p.item-intro {
    margin: 20px 0 30px;
    font-family: "Droid Serif","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    font-style: italic;
}

.portfolio-modal .modal-content ul.list-inline {
    margin-top: 0;
    margin-bottom: 30px;
}

.portfolio-modal .modal-content img {
    margin-bottom: 30px;
}

.portfolio-modal .close-modal {
    position: absolute;
    top: 80px;
    right: 1px;
    width: 70px; /* Adjust the width to make it smaller */
    height: 40px; /* Adjust the height to make it smaller */
    background-color: #669264;
    border: none; /* Remove default border */
    border-radius: 15px; /* Makes the button circular */
    padding: 0px; /* Space inside the button */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for background color */
}


.portfolio-modal .close-modal:hover {
    opacity: .3;
}

.portfolio-modal .close-modal .lr {
    z-index: 1051;
    width: 1px;
    height: 35px;
    margin-left: 35px;
    background-color: white;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.portfolio-modal .close-modal .lr .rl {
    z-index: 1052;
    width: 1px;
    height: 35px;
    background-color: white;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.portfolio-modal .modal-backdrop {
    display: none;
    opacity: 0;
}


/* General styling for all portfolio modals */
[id^="portfolioModal"] {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff; /* Clean white background */
    color: #444;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
    transform-origin: center;
}

/* Fade-in animation for the modal */
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Headings and text styles */
[id^="portfolioModal"] h2 {
    color: #669264; /* Updated color for heading */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: slideInDown 0.8s ease-out;
}

/* Sliding animation for headings */
@keyframes slideInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

[id^="portfolioModal"] .item-intro {
    color: #636e72; /* Muted grey for intro text */
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 1.2s ease-in-out forwards;
}

/* Image styling with zoom effects */
[id^="portfolioModal"] img.img-responsive {
    border: 3px solid #669264; /* Updated border color */
    border-radius: 10px;
    margin: 15px auto;
    display: block;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoomIn 1s ease-in-out;
}

/* Zoom-in effect on hover */
[id^="portfolioModal"] img.img-responsive:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Keyframe animation for image zoom */
@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Styling for list items */
[id^="portfolioModal"] ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

[id^="portfolioModal"] ul li {
    color: #669264; /* Updated list item color */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Fade-up animation */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Button styles with hover effects */
[id^="portfolioModal"] .btn-primary {
    background: linear-gradient(45deg, #7EA575, #669264); /* Gradient using updated color */
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: block;
    width: 150px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    animation: bounceIn 1s ease-out;
}

/* Bounce-in animation */
@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

[id^="portfolioModal"] .btn-primary:hover {
    background: linear-gradient(45deg, #669264, #7EA575); /* Reverse gradient */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* Close button styling */
[id^="portfolioModal"] .close-modal {
    position: absolute;
    top: 95px;
    right: 15px;
    background-color: #669264; /* Updated close button color */
    border-radius: 50%;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

[id^="portfolioModal"] .close-modal:hover {
    background-color: #587655; /* Slightly darker hover color */
    transform: rotate(90deg);
}

/* Gallery images with light hover animations */
[id^="portfolioModal"] section img {
    border: 2px solid #669264; /* Updated border color */
    border-radius: 6px;
    margin: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[id^="portfolioModal"] section img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



/* General styling for portfolio items */
.portfolio-item {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

/* Hover effect for scaling and shadow */
.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Styling for the hover overlay */
.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 146, 100, 0.85); /* Semi-transparent green overlay */
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

/* Make hover content visible on hover */
.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

/* Icon inside the hover overlay */
.portfolio-hover-content i {
    color: #10dc43;
    font-size: 3rem;
    transition: transform 0.3s ease;
}

/* Icon bounce effect on hover */
.portfolio-hover-content i:hover {
    transform: scale(1.2);
}

/* Image styling */
.portfolio-item img.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Slight zoom effect on hover */
.portfolio-item:hover img.img-responsive {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Caption container styling */
.portfolio-caption {
    text-align: center;
    padding: 15px 10px;
    background-color: #fff;
    border-top: 2px solid #669264; /* Green accent border */
    border-radius: 0 0 12px 12px;
}

/* Caption heading */
.portfolio-caption h4 {
    color: #333;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    animation: fadeIn 0.6s ease;
}

/* Caption text */
.portfolio-caption p {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
    animation: fadeIn 0.8s ease;
}

/* Fade-in animation for captions */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}



/* Style for WhatsApp and Call Links */
a[href*="whatsapp"], a[href*="tel"] {
    color: #669264;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a[href*="whatsapp"]:hover, a[href*="tel"]:hover {
    color: #4b724e;
    text-decoration: underline;
    transform: scale(1.05);
}
