body {
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    background-image: url("images/background.jpg");

}

section{
    background-image: url("images/background.jpg");
    background-size: cover;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    z-index: -1;

}   

hr{
    color: white;
    border-radius:80%;
    width:30%;
    justify-content: center;
}

.heading{
	text-align: center;
	justify-content: center;
	color: white;
	font-size: 2rem;
	padding-top:50px;

    i{margin-right: 1.2rem;}
}


/* --------------------------------------------------- HEADER ---------------------------------------------------*/

/* Header Base Styles */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100vw;
    color: white;
    justify-content: center;
    align-items: center;
    overflow-X: hidden;
}

header h1 {
    margin:15% 0 17% 0;
    font-size: 5rem;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
    font-family: "Philosopher", sans-serif;
    padding:2rem;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-image: url("images/headerbg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    filter: blur(6px);
    z-index: -1;
}

/* Links (Navbar) */
#links {
    width:80%;
    position: absolute;
    top: 55px;
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 2;
}

#links li a {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    text-decoration: none;
    text-transform: uppercase;
    font-family: math;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
}

#links li a:hover {
    border-bottom: 2px solid darkgrey;
    font-weight: bolder;
    border-radius: 20%;
}

/* Hamburger Button */
.hamburger {
    display: none;
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 2rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 3;
}

/* --------------------------------------------------- ABOUT ---------------------------------------------------*/

#About{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin:0;
}

#photo {
    display: flex;
    width: 100%;
    justify-content: center; 
    position: relative;
    z-index: 2; 
    margin-top: -12vw;
}

#photo img {
    border-radius: 50%;
    box-shadow: 0px 0px 6px 6px white;
    width: 20%;
}

#intro{
	position: relative;
	color: white;
	font-size: 1.3rem;
    width:50%;
	line-height: 2.7rem;
    margin: 3rem;
	text-align: center;
	font-family: "Rokkitt", serif;
}

/* --------------------------------------------------- EDUCATION ---------------------------------------------------*/
#education{
    justify-content: center;
}
#edu-container{
    position: relative;
    height: 100vh; 
    left:4.5%;
    /* border: 1px solid rgb(255, 255, 255); For visualization */
    width:80%;
    display: flex;
    justify-content: space-evenly;
    margin: 0rem 5rem;
    overflow: visible; /* Ensure no overflow restrictions */

}

#leftcol, #rightcol{
    /* border: 1px solid rgb(255, 255, 255); For visualization */

    display:flex;
    justify-content: space-evenly;
    flex-direction: column;
    /* flex-wrap: wrap; */
    width: 35%;
}

.prog {    
    display: flex;
    flex-direction: column;
    /* border: 1px solid rgb(255, 255, 255); For visualization */
    margin-bottom: 6rem;

}

.marks{
    /* border: 5px solid palevioletred; */
    display: flex;
    align-items: center;
}

.studygroup{
    justify-content: flex-end;
    /* border: 1px solid rgb(255, 255, 255); For visualization */
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    width: 60%;
    height:10rem;
}

.percentile{
    display: flex;
    align-items:flex-end;
    img{
        border-radius: 50%;
        width: 60%;
        margin-bottom: 1rem;
    }

    img:hover{
        width: 63%;
    }
}

.timeline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 90%; /* Ensure sufficient height for scrolling */
    overflow: visible;
}

.fa-rocket {
    color: red;
    transform: rotate(135deg);
    position: sticky;
    top: 50px; /* This ensures sticky works */
    font-size: 2rem;
}

#study{
    color:#ff9800;
    font-size: 1.2rem;
    margin-bottom: 1%;
}

#institute, #time{
    color:#ff9797;
    font-size: 1rem;
    margin-bottom:1%;
}

#content{
    color:#b48aff;
    font-size: 1rem;
}

/* --------------------------------------------------- SKILLS ---------------------------------------------------*/

#Skills{
    display: flex;
}


#skills-container{
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 5rem;
    justify-content: space-evenly;
}

#skills-container>div {
    width: 14rem;
    height: 14rem;
    background-color: #9bacb773;
    margin:1rem;
    border-radius: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
}

#skills-container div:hover {

	background-color: lightblue;

	span{
		color: black;
	}
}

#skills-container div{

    i{
	font-size: 7.5rem;
	}

    span{
    margin-top:5%;
    padding:2%;
    text-align: center;
    font-size: 1.5rem;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    text-shadow: 0px 2% 5% black; }

    img{
        width:60%;
    }
 }

#plus{
    margin-left:0.8rem;
    font-size: 0.4rem;
    flex-grow: 2;
}

.fa-microchip{
    width:40%;
    color: #6fbe13;
}

.fa-code
{   
    margin-top:-5%;
    color:#7b0000;
}

/* --------------------------------------------------- CERTIFICATES ---------------------------------------------------*/

/* Section Styling */
#certificates {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   
}

#certificate-container {
    width: 90%;
    margin:2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem; /* Adds consistent spacing */
}

/* Animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 25px lightblue;
    }
    50% {
        box-shadow: 0 0 10px lightblue;
    }
    100% {
        box-shadow: 0 0 25px lightblue;
    }
}

/* Certificate Container */
.certificate-image-container {
    animation: glow 7s infinite;
    width: 40%;
    min-width: 200px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease-in-out;
}

.certificate-image-container:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}

.certificate-image-container img {
    width: 100%;
    height: auto;
    display: block;
}



/* --------------------------------------------------- PROJECTS ---------------------------------------------------*/

#projects-section{
  padding: 2rem;
}

#projects-section .heading{
  margin-top:-5%;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-item {
    background-color: #2a2a2a;
    padding: 1rem;
    margin: 10px;
    border-radius: 10px;
    width: 30%;
    min-width: 250px;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #cccccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.image-wrapper {
    width: 100%;
    height: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.image-wrapper img {
    width: 100%;
    height: auto;
}

.project-item h3 {
    color: #03a9f4;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-item p {
    font-size: 1rem;
    overflow: auto; /* Allows scrolling if text overflows */
    max-height: 100px;
}
/* Custom scrollbar for the project description */
.project-item p {
    font-size: 1rem;
    overflow: auto;
    max-height: 100px;
}

/* Scrollbar track */
.project-item p::-webkit-scrollbar {
    width: 10px;
}

/* Scrollbar thumb */
.project-item p::-webkit-scrollbar-thumb {
    background-color: #6db5fd; /* Custom color for the scrollbar thumb */
    border-radius: 10px;
    border: 2px solid #2a2a2a; /* Matching border with background */
}

/* Scrollbar track */
.project-item p::-webkit-scrollbar-track {
    background-color: #444; /* Custom color for the scrollbar track */
    border-radius: 10px;
}

/* Scrollbar corner */
.project-item p::-webkit-scrollbar-corner {
    background-color: #444; /* Custom color for the scrollbar corner */
}

/* Scrollbar hover effect */
.project-item p::-webkit-scrollbar-thumb:hover {
    background-color: #8dbbff; /* Lighter shade on hover */
}


/* --------------------------------------------------- CONTACT ---------------------------------------------------*/

#contact {
    background-image: url("https://wallpaperbat.com/img/750305-desktop-beautiful-wallpaper-hd-download-black-wallpaper-1080p-hd-wallpaper-background-download.jpg");
    background-size: cover;
    background-attachment: fixed;
    color: white;
    font-size: 1rem;
    padding-top:1%;
    padding-left: 2%;
    display: flex;
}

#contact .section-heading {
    text-align: center;
    color: white !important;
    margin: 4rem 0;
    font-size: 2.5em;
}


.contact-container {
    width: 90%;
    margin-bottom: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    font-size: 1.25em;
}

.contact-form-container, .address-container {
    flex-basis: 40%;
    overflow-x: hidden;
}

.input-field {
    width: 100%;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border: none;
    height: 2.5rem;
    font-size: 1em;
    color: white;
    border-bottom: 3px solid white;
    background-color: #0000;
}

textarea.input-field {
    height: 4rem;
    resize: none;
}

.input-field:focus {
    outline: none;
    border-bottom: 3px solid #bebebe;
}

.input-field::placeholder {
    color: #bebebe;
}

#submit {
    display: block;
    margin: 0 auto;
    font-size: 0.75em;
    padding: 0.5rem 1rem;
}

#submit:hover {
    color: #1262b3;
}

.address-container div {
    margin: 0.8rem 0;
    i{
    margin-right:1rem;
    }
}

.address-container p {
    font-size: 0.85em;
}

.white-border-transparent-button {
    background-color: #0000;
    color: white;
    border: 3px solid white;
    text-decoration: none;
}

.white-border-transparent-button:hover, form a {
    font-weight: bold;
    cursor: pointer;
    background-color: white;
    transition: 0.3s;
    text-decoration: none;

}

.oval-button {
    position: relative;
    background: linear-gradient(to bottom, #d3d3d3, #a9a9a9);
    border: none;
    border-radius: 25px; 
    padding: 15px 30px;
    box-shadow: 0 4px 8px #050202e0;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
    float:right;
    right: 4rem;
    bottom: 4rem;
}
.oval-button:hover {
    transform: translateY(-2px);
}
.oval-button:active {
    transform: translateY(1px);
}
