#container{
    z-index: -1;
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
}

#loader{
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    font-size: 30px;
    font-family: monospace;
    background-color: #030012;
}

#loader p{
    color: aliceblue;
    padding-top: 250px;
}

/*--------------------------------------------------------- 
-----------------------Scene CSS starts------------------ 
----------------------------------------------------------- */
#scene{
    height: 100%;
    padding-top: 0;
    width: 100%;
}

#home {
    display: block; /* Text is visible by default */
    opacity: 1; /* Fully opaque initially */
    transition: opacity 2s ease-in-out; /* Transition opacity over 2 seconds */

}
#project {
    display: none; /* Text is visible by default */
    opacity: 0;
    transition: opacity 2.5s ease-in-out; /* Transition opacity over 2 seconds */

}



.text h1{
    display: block;
    cursor: pointer;
    color: #ffffff;
    opacity: 1.0;
    font-size: 3rem;
}
.text h2{
    display: block;
    cursor: pointer;
    color: #ffffff;
    opacity: 1.0;
    font-size: 1.2rem;
}
.text h3{
    display: block;
    cursor: pointer;
    color: #ffffff;
    opacity: 1.0;
    font-size: 1rem;
}
.text p{
    display: block;
    cursor: pointer;
    padding: 5px 5px 5px 5px;
    color: #ffffff;
    font-size: 16px;
    opacity: 0.85;
}






#project {
    height: 650px;
    overflow-y: auto;
    overflow-x: auto;
    padding-right: 30px;
}


#project a:link{
    color: #e5e5e5;
    font-style: italic;
}

#project a:visited{
    color: #e5e5e5;
    font-style: italic;
}

#project-container{
    margin-bottom: 50px;
}


#project::-webkit-scrollbar {
    width: 6px;
}

#project::-webkit-scrollbar-track {
    background: transparent;
}


/* REMOVE default horizontal buttons */
#project::-webkit-scrollbar-button:horizontal {
    display: none;
}
#project::-webkit-scrollbar-thumb {
    background: var(--thumb-gradient, linear-gradient(180deg, #021256, #5048bf)); /* Default gradient fallback */
    border-radius: 10px;
}

#spans {
	display: flex;
	flex-direction: row; 
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	padding: 20px;
	box-sizing: border-box;
	flex-wrap: wrap;
	gap: 40px;
    
}

.text {
	flex: 1;
	min-width: 300px;
    max-width: 600px;
    margin-top: 5%;
	color: white;
	background-color: rgba(0, 0, 0, 0.0); /* visibility only */
	padding: 20px;
	border-radius: 10px;
    margin-right: 5%;
}

.triggers {
    display: flex;
    flex-direction: column; /* Default: stacked on large screens */
    gap: 10px; /* spacing between elements */
    align-items: flex-start;
    margin-top: 25%;
    margin-bottom: auto;
    margin-left: 10%;
  }

.triggers p{
    display: block;
    cursor: pointer;
    padding: 2px 22px 20px 20px;
    color: #ffffff;
    opacity: 0.5;
}
.triggers span{
    display: block;
    cursor: pointer;

    padding: 10px 12px 10px 10px;
    color: #ffffff;
    opacity: 0.5;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.triggers .active {
    border-right: thin solid white; 
    opacity: 1;
}

@media (max-width: 668px) {
    .triggers {
      flex-direction: row; /* Side-by-side on small screens */
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      margin-top: 5%;
      margin-left: 5%;
      gap: 10px;
    }
    .text h1 {
        font-size: 2.5rem; /* smaller size for phones */
      }
    .text h2 {
        font-size: 1.3rem;
    }
    .text h3 {
        font-size: 1rem;
    }
    .triggers {
        margin-left: auto;
        margin-right: auto;
    }

    .triggers span{
        display: block;
        cursor: pointer;
    
        padding: 10px 12px 10px 10px;
        color: #ffffff;
        opacity: 0.5;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
  }

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent side-to-side scroll */
    width: 100%;
  }