/* General styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f0f4f8, #e8eff6);
    color: #333;
}

/* Hero section */
.hero {
    background: linear-gradient(to right, #0077b6, #00b4d8);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 600px;
}

/* Project grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 20px;
    padding: 20px;
}

/* Individual project card */
.project-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Image overlay */
.image-overlay {
    position: relative;
    height: 0;
    padding-top: 56.25%; /* Aspect ratio 16:9 */
    overflow: hidden;
    cursor: pointer;
    border-bottom: 2px solid #0077b6;
}

.image-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fit perfectly within the container */
    transition: opacity 0.5s ease-in-out;
}

.image-overlay img.after {
    opacity: 0;
}

.image-overlay:hover img.before {
    opacity: 0;
}

.image-overlay:hover img.after {
    opacity: 1;
}

/* Project info */
.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h2 {
    font-size: 1.5rem;
    color: #0077b6;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 1rem;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .project-info h2 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }
}


/* General slider styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; /* Full height for a dramatic effect */
}

.slides {
    display: flex;
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Creative bounce effect */
    width: 300%; /* 3 slides */
}

.slide {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Ensures full-width images maintain aspect ratio */
}

.caption {
    position: absolute;
    bottom: 20%;
    left: 5%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-align: left;
}

.caption h2 {
    font-size: 2.5rem;
    margin: 0 0 10px;
}

.caption p {
    font-size: 1.2rem;
    margin: 0;
}

/* Navigation buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .caption h2 {
        font-size: 2rem;
    }
    .caption p {
        font-size: 1rem;
    }
    .prev, .next {
        font-size: 1.2rem;
        padding: 8px 16px;
    }
}

