/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes up at least the full viewport height */
}

header {
    background-color: #a8d5f7; /* Light blue */
    padding: 5px;
    padding-bottom: 15px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 
    100% 80%, 90% 75%,  80% 60%, 60% 90%, 50% 95%, 40% 90%,30% 70%, 25% 55%, 15% 60%, 0 100%); /* Creating a curve */
}

.header-title {
    color: #333;
    text-decoration: none; /* Remove underline from the title */
    font-size: 24px;
}

.header-title:hover {
    text-decoration:underline; /* Underline on hover */
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    width: 100%;
    margin-top: auto; /* Push footer to bottom of viewport */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px;
    flex: 1; /* Grow to fill remaining space */
}
p {
    margin-left: 15%;
    margin-right: 15%;
    font-size: 20px;
    line-height: 1.6;
}
h1 {
    margin-left: 10%;
    margin-right: 10%;

}
h2 {
    margin: 5px;

}
h4 {
    font-size: 20px;
    margin: 0;
    padding:0%;
}
iframe {
    margin: 5px;
}
.profile-picture{
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.profile-picture:hover {
    transform: scale(1.05); /* Scale up the card on hover */
}

/* Card Styling */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-left: 5%;
    margin-right: 5%;
}

.card {
    width: 30%; /* Set the initial width of each card */
    margin: 10px;
    text-align: center;
    position: relative; /* Add position relative for absolute positioning */
    overflow: hidden; /* Hide overflowing content */
    border-radius: 10px; /* Add rounded corners */
    transition: transform 0.25s ease; /* Add transition effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Add rounded corners to the image */
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    pointer-events: none; /* Allow clicks to go through the overlay */
}

.card h3 {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    margin: 0;
    color: black;
    font-size: 20px;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 1); /* Add shadow for better readability */
    z-index: 1;
}

/* Hover effect */
.card:hover {
    transform: scale(1.05); /* Scale up the card on hover */
}
/* Image slider */


@media screen and (max-width: 600px) {
    .card {
        width: 100%; /* Change the width to full width on smaller screens */
    }
    header {
        clip-path: polygon(0 0, 100% 0, 
        100% 80%, 90% 75%,  80% 77%, 69% 90%, 50% 95%, 40% 95%,30% 89%, 25% 66%, 15% 70%, 0 100%); /* Creating a curve */
    }
    p {
        margin-left: 10%;
        margin-right: 10%;
        font-size: 20px;
    }
    .card-container {
        margin-left: 30px;
        margin-right: 30px;
    }
}