/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-y: scroll;
}

/* Background Video */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Navbar Styling */
.navbar {
  
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    z-index: 1;
    text-align: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin-bottom:20px ;
    
}

.navbar li a {
    color: rgb(237, 255, 121);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
    transition: all 0.31s linear ;
    font-size: 1.3em;
    
    
}

.navbar li a:hover {
    color: #00ff99;
    font-size: 1.4em;
}

.navbar button {
    background: #00d9ff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-weight: bolder;
  
    border-radius: 10px;
    font-size: 1em;
    
    
  transition: all 0.31s linear ;
}
.navbar button:hover {
    background: #e64a19;
    font-size: 1.4em;
}
a{
    text-decoration: none;
    
}
/* Card Container Styling */
.card-container {
    margin-top: 5rem; /* Ensure content is below the navbar */
    padding: 2rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    color: rgb(255, 0, 255);
    font-size: 2em;
    font-weight: bolder;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 100px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease-in-out;
    width: 300px;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    position: relative;
    padding: 1rem;
}

.card h3 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 1000;
    font-size: 1.5em;
    z-index: 2; /* Ensure heading is above description */
}

.card .description {
    display: block; /* Always show the description but with 0 opacity initially */
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1; /* Ensure description is below heading */
    font-size: 1.1em;
    font-weight: 1000;
    color: rgb(255, 0, 64);
}
.card .description span{
    color: #000000;
}


.card:hover .description {
    opacity: 1;
    transform: translateY(0); /* Slide up effect */
}

.card:hover {
    transform: translateY(-10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
        
    }

    .cards {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
    }
    .card{
        width: 300px;
        
    }
}
@media (max-width: 300px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
        
    }

    .cards {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
    }
    .card{
        width: 100px;
        
    }
}

