html{
    scroll-behavior: smooth;
}
:root{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}
body{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}
/* Preloader background */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #08274d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}



/* Loader wrapper */
.loader {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo */
.logo {
  width: 80px; /* adjust size */
  border-radius: 50%;
  height: auto;
  z-index: 2;
  animation: pulse 2s infinite;
}

/* Rotating circle */
.circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid #00bcd4;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  z-index: 1;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}


header{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 4rem;
    background-color: #c0c0c0;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    margin: 1rem 3rem 1rem 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .5rem;
    font-family: Open Sans; 
    box-shadow: 0 0 10px #ffffff7e;
    transition: .5s ease-in-out;
}

.left-section{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: Montserrat;
    font-weight: lighter;
    padding-left: 1rem;
}

.left-section img{
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.left-section p{
    color: #265791;
    font-size: 2rem;
    cursor: pointer;
    font-weight: 500;
}

nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
}

nav ul{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
}

nav a{
    color: inherit;
    text-decoration: none;
    display: flex;
    transition: .5s ease-in-out;
    align-items: center;
    flex-direction: column;
}
.button{
    color: white;
    font-family: Open Sans;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background-color: #265791;
    border-radius: 1.5rem;
    width: fit-content;
    padding: 1rem;
    margin-right: -4rem;
}

.button:hover{
    color: #265791;
    background-color: white;
    transition: .5s ease-in-out;
    border: 1px solid #265791;
}

button{
    color: white;
    font-family: Open Sans;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background-color: #265791;
    border-radius: 1.5rem;
    width: fit-content;
    padding: 1rem;
}

button:hover{
    color: #265791;
    background-color: white;
    transition: .5s ease-in-out;
    border: 1px solid #265791;
}

nav a:hover{
    border-radius: 1rem;
    width: fit-content;
    padding: 1rem;
    background-color: #26569183;
    transition: .5s ease-in-out;
}

.intro{
    background-color: #265791;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: auto;
}
.intro p{
    font-family: Open Sans;
    font-size: 5rem;
    font-style: italic;
    font-weight: 500;
    color: #ffffff;
}

.intro div{
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-page{
    display: flex;
    gap: 5rem;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    margin-top: 5rem;
    flex-direction: row;
    padding: 1rem 3.5rem 1rem 3.5rem;
}

.profile-pic{
    margin-top: 4rem;
    background-color: #265791;
    border: 4px solid white;
    box-shadow: 0 0 10px #022b5cce;
    width: 25rem;
    border: 1px solid rgba(75, 75, 75, 0.822);
    height: 25rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic img{
object-fit: contain;
object-position: center;
width: 40rem;
}
.profile-pic img:hover{
cursor: pointer;
transition: .5s ease-in-out;
scale: 1.05;
}
.about-me{
max-width: 768px;
padding-top: 6rem;
text-align: right;
display: flex;
flex-direction: column;
font-family: Open Sans;
}
.about-me h1{
 font-family: Open Sans;
font-weight: 600;
font-size: 2rem;
color: #265791;
font-weight: 500;
}

.about-me .frr{
     font-family: Open Sans;
font-weight: 600;
font-size: 2rem;
color: #265791;
font-weight: 500;
text-align: right;
}

.about-me h2{
margin-top: -1rem;
font-family: Open Sans;
font-size: 3rem;
}
span{
color: #265791;
 font-family: Montserrat;
    font-weight: 500;
}


.about-me p{
font-family: Open Sans;
font-size: 1.5rem;
font-weight: 300;
text-align: justify;
margin-top: -1.5rem;
}

.social-icons{
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
text-align: left;
color: white;

}

.social-icons div{
cursor: pointer;
background-color: transparent; 
border: 1px solid #265791;
box-shadow: #176edaad 0px 2px 8px 0px;
cursor: pointer;
display: flex;
align-items: center;
border-radius: 50%;
padding: 1rem;
}

/* Styles For The Third Page */
.skills{
width: auto;
display: flex;
gap: 2rem;
padding: 1rem;
flex-direction: column;
height: fit-content;
background-color: #265791;
padding-bottom: 2rem;
}

.descrip-1{
padding-top: 3.5rem;
padding-left: 1rem;
padding-right: 1rem;
font-family: Open Sans;
display: flex;
flex-direction: column;
align-items: center;
color: white;
h2{
font-size: 3rem;
font-weight: 400;
}
p{
margin-top: -1rem;
font-size: 1.5rem;
font-weight: 200;

}
}
.card-container{
justify-content: center;
gap: 3rem;
display: flex;
flex-wrap: wrap;
/* padding: 0 3.5rem 0 3.5rem; */
.card{
max-width: 350px;
aspect-ratio: 16/9;
font-family: Open Sans;
border-radius: 1.5rem;
align-items: center;
justify-content: center;
display: flex;
flex-direction: column;
padding: 1rem;
color: white;
background-color: #00295a;
.f-class{
display: flex;
flex-direction: row;
align-items: center;
text-align: left;
gap: 1rem;
padding-left: 1rem;
font-size: 2rem;
svg{
font-size: 3rem;
}
}

}
.card:hover{
cursor: pointer;
}
}
.f-class p{
     font-family: Montserrat;
    font-weight: lighter;
}

.projects{
width: auto;
display: flex;
gap: 1rem;
margin-bottom: 2rem;
flex-direction: column;
height: fit-content;
background-color: #ffffff;

}

.text-intro{
font-family: Open Sans;
font-size: 2rem;
color: #011a38;
text-align: center;
font-weight: 600;
}

.projects-container{
justify-content: center;
gap: 3rem;
display: flex;
flex-wrap: wrap;
}
.project-card{
max-width: 350px;
background-color: rgb(10, 62, 126);
overflow: hidden;
box-shadow: 0 0 10px #022b5c7e;
aspect-ratio: 4/4;
font-family: Open Sans;
border-radius: 1.5rem;
align-items: center;
justify-content: top;
display: flex;
flex-direction: column;
padding-bottom: 1rem;
color:#ffffff;

}
.img-container{
top: 0;
aspect-ratio: 1/1;
max-width: 350px;
padding: .5rem;
object-fit: contain;
object-position: center;
overflow: hidden;
}
.img-container img{
width: 100%;
border-radius: 1rem;
}

.img-container 
img:hover{
scale: 1.01;
cursor: pointer;
transition: 0.1s ease-in-out;
}

.details{
padding: 1rem;
.top-de{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-top: -1rem;
}
.f-class-details{
padding:0 1rem 0 1rem ;
margin-top: -1rem;
}
.top-de h3, a{
width: fit-content;
padding: .5rem;
color: inherit;
text-decoration: none;
font-family: Open Sans;
cursor: pointer;
font-size: inherit;
align-items: center;
display: flex;
gap: 5px;
border-radius: .5rem;
background-color: #011a38;
}

}

.contact-me{
background-color: #011a38;
display: flex;
align-items: center;
justify-content: center;
padding: 0rem 2rem;
height: fit-content;
padding: 4rem 1rem;
}

.contact-me p{
 font-family: Montserrat;
    font-weight: lighter;
}

article{

display: flex;
color: #fff;
font-family: Open Sans;
justify-content: space-around;
flex-wrap: wrap;
gap: 1rem;
width: 100%;
}

article div:nth-child(2){
background-color: #0a3e7e;
border-radius: 2rem;
color: white;
width: 100%;
max-width: 800px;
padding: 20px;
p{
font-family: Open Sans;
font-weight: 600;
font-size: 2rem;
}
}

textarea{
font-family: Open Sans;
border-radius: 1rem;
padding: 2rem 1rem;
}

article button{
margin-top: 1rem;
}

article span {
color: #1c73dd;
font-family: Open Sans;
font-size: 2rem;
}


article form {
display: flex;
flex-direction: column;
gap: 2rem;
}

form button{
    border-radius: .5rem;
    box-shadow: 0 0 10px #0626b8a2;
}

article form input {
padding: 20px;
border: none;
outline: none;
border-radius: 1rem;
font-family: Open Sans;
}
footer{
width: auto;
color: #222222;
background-color: #6e6e6e;
display: flex;
flex-direction: row;
height: fit-content;
font-family: Open Sans;
padding: .5rem;
justify-content: space-around;
align-items: center;
}

@media (min-width: 200px) and (max-width: 950px){
header{
margin-left: 1rem;
margin-right: 1rem;
}
.left-section{
p{
font-size: 2rem;
margin-left: -.5rem;           
}

img{
width: 2.5rem;
height: 2.5rem;
}
}

nav button{
display: none;
}

.hamburger-menu {
display: block;
cursor: pointer;
padding: 10px;
}

.bar {
width: 25px;
height: 3px;
background-color: #265791;
margin: 5px 0;
transition: 0.4s;
position: relative;
}

.bar.active:nth-child(1) {
transform: rotate(-45deg) translate(-5px, 6px);
}

.button{
margin: 0 auto;
}

.bar.active:nth-child(2) {
opacity: 0;
}

.bar.active:nth-child(3) {
transform: rotate(45deg) translate(-5px, -6px);
}

nav ul {
display: none;
position: fixed;
top: 65px;
right: 0;
width: 70%;
height: fit-content;
background-color: white;
flex-direction: column;
align-items: center;
padding: 20px 0;
box-shadow: 0 2px 5px rgba(0, 41, 90, 0.459);
z-index: 1000;
}

nav ul.active {
display: flex;
}

nav ul li {
margin: 15px 0;
}

.welcome-page{
display: flex;
flex-direction: column;
padding-top: 4rem;
}

.profile-pic{
width: 20rem;
height: 20rem;

}

.profile-pic img{
width: 30rem;
}
.about-me{
max-width: 768px;
text-align: center;
display: flex;
margin-top: -4rem;
flex-direction: column;
font-family: Open Sans;
}
.about-me h4{
font-family: Open Sans;
font-size: 2rem;
color: #265791;
font-weight: 500;
}

.about-me h5{
margin-top: -2rem;
font-family: Open Sans;
font-size: 2rem;
}
span{
color: #265791;
}

.about-me h6{
font-family: Open Sans;
font-size: 1.5rem;
font-weight: 300;
text-align: justify;
margin-top: -1.5rem;
}


}
