/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #4cd3c1, #ffffff);
    color: #333;
    overflow-x: hidden;
}
h1, h2 {
    text-align: center;
    color: #00796b;
    text-transform: uppercase;
    margin-bottom: 0.5em;
    letter-spacing: 2px;
}

/* Results Section */
.results-section {
    padding: 4em 2em;
    background-color: #ffffff;
}

.results-title {
    font-size: 1.8em;
    color: #00796b;
    margin-bottom: 0.5em;
    margin-top: 0.5em; /* Reduced margin from the top */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.results-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    padding-top: 2em;
}

/* Card Styling */
.result-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* Darker and more intense shadow for normal state */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.result-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7); /* Darker and more intense shadow on hover */
}

.result-card:hover img {
    transform: scale(1.1);
}

/* Overlay Styling */
.result-card .result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #ffffff;
    text-align: center;
    padding: 1em;
}

.result-card:hover .result-overlay {
    opacity: 1;
}

/* Overlay Title and Description */
.result-overlay h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-overlay p {
    font-size: 1.2em;
    font-weight: 400;
}


/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox:target {
    display: flex;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: #ffffff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2em 0.5em;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Navigation Button */
.back-btn {
    display: inline-block;
    margin-top: 3em;
    padding: 0.7em 2em;
    background: linear-gradient(to right, #00796b, #4cd3c1);
    color: #ffffff;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 121, 107, 0.4);
    transition: all 0.6s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.back-btn:hover::before {
    width: 250%;
    height: 250%;
}

.back-btn:hover {
    background: linear-gradient(to right, #005f54, #3cbba1);
    box-shadow: 0 20px 40px rgba(0, 121, 107, 0.5);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 2em 1em;
    text-align: center;
    background-color: #00796b;
    color: #ffffff;
    font-size: 0.9em;
}
