/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Bangers&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Oswald:wght@200..700&family=Vina+Sans&display=swap");
body {
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Index styling */
.image-container {
    position: relative;
    height: 100vh; 
    overflow: hidden; /* Ensure no overflow on the image */
}

/* Background image styling */
.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-out; /* Smooth opacity change */
}

/* Dark overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 0;
}

.text-overlay {
    font-family: "Archivo Black", sans-serif;
    font-weight: 400;
    font-style: normal;
    position: absolute;
    top: 10%; 
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8); 
    text-align: center;
    z-index: 1;
    margin-top: 0px; 
    font-size: 30px;
}

.text-overlay h1 {
    font-family: "Archivo Black", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #0BAAEE;
    font-size: 230px; 
    margin-top: 500px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); 
}

.button-overlay {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; 
}

.button-overlay .button-link {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(45deg, #0BAAEE, #A1C6EA);  /* Gradient from blue to light blue */
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.button-overlay .button-link:hover {
    background: linear-gradient(45deg, #0BAAEE, #005f8c);  /* Darker blue hover effect */
    color: white;
    transform: scale(1.1); /* Slight zoom effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.card-container {
    display: flex;                   /* Enables Flexbox */
    justify-content: space-between;   /* Evenly distributes the cards */
    flex-wrap: wrap;                  /* Allows cards to wrap if necessary */
    gap: 20px;                        /* Space between cards */
    padding: 20px;
   
  }
  
    .card{
    flex: 1 1 22%;                    /* Each card takes up about 22% of the container width */
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 20px;
    width: 250px;
    color: white;
    text-align: center;
    font-family: arial;
    box-sizing: border-box;
    background: linear-gradient(145deg, #2c2c2c, #3a3a3a);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2); 
  text-align:center;
}
     
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5); 
}
.card-container img{
    width:100%;
    height: 220px;
    border-radius: 20px;
    object-fit: cover; /* Ensures the image covers the area while maintaining aspect ratio */
    border-radius: 20px 20px 0 0;
   }
.card-container{
     background-color: #232222; /* Dark grey background */
     padding: 80px;
     text-align: center;
     color: white;
    }

@media (max-width: 768px) {
    .rectangles-grid {
        grid-template-columns: 1fr;
    }

    .rectangle {
        max-width: 90%;
    }
}

/* Fade out effect on image */
.image-container.scroll-fade .background-image {
    opacity: 0.2; /* Fade out as you scroll */
}

/* Scroll event listener to trigger the fade effect */
body.scrolled .image-container.scroll-fade .background-image {
    opacity: 0.2;
}

