*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

a{
    cursor: pointer;
}

#navBar{
    width:100%;
    background-color: rgb(1, 29, 41); 
    height: auto;
    margin:0;
    padding: 12px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#navBar > div {
    width: 100%;
    display: flex;
    justify-content: center;
}

#navBar ul {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 10px 0 15px 0;
    width: 100%;
    background-color: rgb(1, 29, 41); 
}

#navBar ul.active {
    display: flex; 
}

#navBar ul li {
    padding: 8px 0;
    width: 100%;
    text-align: center;
}

#navBar ul li a {
    text-decoration: none;
    font-size: 20px;
    color: white;
    transition: box-shadow 0.3s ease; 
}

.menu-toggle {
    display: block; 
    font-size: 18px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 auto; 
    padding: 0;
}

#hero{
    width:100%;
}

#hero img{
    width:100%;
}

.hTwo {
    text-align: center;
    margin: 10px;
    padding: 2px;
}

#projects{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -30px;
}

#subProjects{
    width:90%;
    margin: 5px;
    padding: 10px;
    border-radius:10px;
}

.pSub {
    border-radius: 10px;
    padding: 10px;
}

.pCss {
    border: 2.2px solid gray;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    transition: transform 0.3s ease;
}

.pCss img{
    border: 1.5px solid black;
    border-radius: 10px;
    width: 100%;
    object-fit: cover;
}

.pCss div{
    text-align: center;
}

.pCss div button{
    padding:7px;
    color: white;
    background-color: rgb(1, 29, 41);
    border: none;
    border-radius: 8px; 
    font-weight: bold;
    cursor: pointer;
}

#about{
    width: 100%;
    display: flex;
    justify-content: center;
    padding:10px;
}

#subAbout{
    width:90%;
    border:3px solid black;
    margin: 10px;
    padding: 10px;
    border-radius:10px;
}

#subAbout div{
    margin: 7px 0 7px 0;
}

#event{
    width: 100%;
    text-align:center;
    padding:5px;
}

.time{
    margin:5px;
}

#event a{
    text-decoration: dashed underline;
}

#socialMedia{
    margin-top:10px;
    width: 100%;
    display:flex;
    align-items: center;
    justify-content: center;
    background-color:rgb(1, 29, 41);
    height:100px;
    gap: 20px; 
}

#fb i, #x i, #linkedin i, #youtube i, #instagram i {
  color: #708197;
  font-size: 40px;         
  transition: color 0.3s;
}
#fb:hover i { color: #1877f2; }
#x:hover i { color: #ffffff; }
#linkedin:hover i { color: #0077b5; }
#youtube:hover i { color: #ff0000; }
#instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(214, 36, 159, 0.3));
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

footer{
    background-color:rgb(1, 29, 41);
    color: white;
    text-align:center;
    padding: 20px;
}
footer a {
    color: white;
    text-decoration: none;
}

@media(min-width: 700px){
    /* Hides the toggle button and restores normal horizontal navbar on desktop */
    .menu-toggle {
        display: none;
    }
    
    #navBar {
        height: 60px;
        flex-direction: row;
        padding: 0;
    }

    #navBar ul {
        display: flex;
        flex-direction: row;
        padding: 0;
    }

    #navBar ul li {
        width: auto;
        text-align: left;
        padding: 10px;
    }

    #navBar ul li a:hover {
        font-size: 25px;
        border: 2px solid;
        border-radius: 10px;
        box-shadow: 0 0 15px rgb(240, 233, 233,1.0);
        padding: 5px;
    }
    
    #projects{
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0px;
    }
    #subProjects{
        width:90%;
        border:3px solid black;
        margin: 10px;
        padding: 10px;
        border-radius:10px;
    }
    .pSub{
        display: flex;
        justify-content: center;
        border: none;
    }
    .pCss:hover {
        transform: scale(1.1);
    }
    .pCss img{
        height: 200px;
        object-fit: cover;
    }
    #pLfr{
        text-align: center;
        width: 30%;
        margin:10px;
    }
    #pAiTutor{
        text-align: center;
        width: 30%;
        margin:10px;
    }
    #test{
        text-align: center;
        width: 30%;
        margin:10px;
    }

    #about{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    #subAbout{
        display:flex;
        justify-content: center;
    }
}