/* Home Page Styles */
body{
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #EDEDF4;
}

.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    background-color: #EDEDF4;
}
.navbar-brand{
    font-size: 24px;
    font-weight: 500; 
}


.navbar ul{
    font-weight: 450;
    font-size: 20px;
}
.nav-item a {
    position: relative;
}

.nav-item a::after {
    content: ''; 
    width: 0; 
    height: 1px; 
    background-color: black;
    position: absolute;
    bottom: -4px;
    left: 10px; 
    transition: width 0.4s ease; /* Smooth transition for the line */
}

/* final width the line should be at */
.nav-item a:hover::after,
.nav-item a.active::after {
    width: 90%; 
}

.nav-item:hover {
    transform: scale(1.05); 
    transition: transform 0.3s ease;
}

.header{
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    color: black;
    font-weight: 500;
    margin-top: 85px;
    
}
.text-box{
    flex-grow: 1; /* Allow the text box to take available space */
    display: flex; /* Use flex for centering */
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center; /* Center text */ 
    position: relative;
    background-image: url(images/pexels-tima-miroshnichenko-6010927.jpg);
}
.text-overlay {
    color: white; /* Change this based on your image color for visibility */
}

#title{
    font-size: 75px;
    text-wrap: nowrap;
}

#subtitle{
    font-size: 20px;
    font-weight: 500;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit; /* Use the same background as the parent */
    filter: blur(5px); /* Apply blur only to this overlay */
    z-index: 0; /* Place it behind the text */
}

.card{
    transition: ease 0.5s;
}

.card-link{
    text-decoration: none;
    color: black;
}

/* Section 2 Cards */
.card:hover{
    box-shadow: 0 0 20px 0px rgb(89, 1, 92);
    transform: scale(1.05)
}
.scroll-container {
    overflow-x: auto; /* Allows horizontal scrolling */
}

.grid-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

article.about{
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
    padding-bottom: 40px;
    padding-top: 40px;
}

article.about img {
    width: 100%;
    border-radius: 8px;
}

article p, article h3 {
    margin: 20px 10px;
}




/* For large screens */
@media (max-width: 2000px) {
    .navbar-nav {
        width: 70%;
        display: flex;
        justify-content: center;
    }

    .text-box {
        width: 90%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    #title {
        font-size: clamp(3vw, 5vw, 100px); /* Responsive font scaling */
        overflow: hidden;
    }

    .text-box p {
        font-size: clamp(1vw, 1.5vw, 16px);
    }
}

/* For medium-sized screens */
@media (max-width: 1590px) {
    .text-box {
        width: 90%;
    }

    #title {
        font-size: clamp(3vw, 4.85vw, 75px); /* Reduced size for medium screens */
        overflow: hidden;
    }

    .text-box p {
        font-size: clamp(0.9vw, 1.2vw, 15px);
        overflow: hidden;
    }
    .navbar .navbar-link{
        text-wrap: nowrap;
    }
}

/* For tablet-sized screens */
@media (max-width: 1024px) {
    .text-box {
        width: 95%;
        background-size: cover;
        background-position: center;
    }

    #title {
        font-size: clamp(2vw, 5.75vw, 35px); /* Smaller font size for tablet screens */
    }

    .text-box p {
        font-size: clamp(0.8vw, 1vw, 14px);
    }
    .navbar .navbar-link{
        text-wrap: nowrap;
    }
}


/* For mobile screens */
@media (max-width: 750px) {
    .text-box {
        width: 100%;
        padding: 15px;
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    #title {
        font-size: clamp(6vw, 3.5vw, 28px);
    }

    .text-box p {
        font-size: clamp(0.7vw, 1vw, 12px);
    }
    .navbar .navbar-link{
        text-wrap: nowrap;
    }
    article.about{
        display: block;
        margin: 0 20px;
        grid-template-columns: 1fr; /* Single column layout */
    }
}

/* For very small screens (like small smartphones) */
@media (max-width: 480px) {
    #title {
        font-size: clamp(5vw, 3vw, 24px);
    }

    .text-box p {
        font-size: clamp(0.5vw, 0.8vw, 10px);
    }
    article.about{
        display: block;
        margin: 0 20px;
        grid-template-columns: 1fr; /* Single column layout */
        text-align: center;
    }
}
