


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Alkatra:wght@500&family=Poppins:wght@300;400;500;600&display=swap');
:root[data-theme="light"]{
    --bg:white;
    --p-color:rgb(85, 85, 85);
    --a-color: black;
    --a-text-decoration:white;
    --a-hover:grey;
    --a-hover-text-decoration:rgb(181, 181, 181);

    --hamburger-icon-bg:black;
    --menu-links-bg:white;
    --btn-1-color:white;
    --btn-color-2-hover:rgb(255,255,255);
    --btn-bg:rgb(53,53,53);
    --details-container-border:rgb(53, 53, 53);
    --details-container-border-color:rgb(163,163,163);
    --icon-color:black;
    --color-container-bg:rgb(205,250,250);

    --footer-bg:rgb(37, 37, 37);

    --switch-bg: #F5F5F6;
    --switch-circle-bg:#ffd371;
    --icon-sun: #997f44;
    --icon-moon:#B1B0B5 ;
    --switch-circle-pos:0.28rem;
   --contact-info-container-bg:var(--btn-color-2-hover);
--switch-circle-pos-mob:0.25rem
    
}
:root[data-theme="dark"]{
    --bg:black;
    --p-color:rgb(184, 184, 184);
    --a-color: white;
    --a-text-decoration:white;
    --a-hover:grey;
    --a-hover-text-decoration:rgb(181, 181, 181);

    --hamburger-icon-bg:white;
    --menu-links-bg:#282828;
    --btn-1-color:white;
        --btn-bg:#212121;
        --btn-2-color:white;

    --btn-color-2-hover:rgb(255,255,255);
    --icon-color:rgb(231, 231, 231);
    --details-container-border:rgb(53, 53, 53);
    --details-container-border-color:rgb(163,163,163);

    --color-container-bg:rgb(205,250,250);
    --contact-info-container-bg:rgb(53, 53, 53);
    --footer-bg:rgb(37, 37, 37);

    --switch-bg: rgb(53,53,53);
    --switch-circle-bg:#7190ff;
    --icon-sun: grey;
    --icon-moon:#dce3ff ;
    --switch-circle-pos:3.1rem;
   --switch-circle-pos-mob:2.74rem;









    
}
:root{
    --default-border-radius:8px;
    --default-transition: color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out, fill .3s ease-in-out, transform .3s ease-in-out;
}
*{
    margin: 0;
    padding: 0;

}
body{
    font-family: "Poppins", sans-serif;
    background-color: var(--bg);
}
.logo{
    font-family: 'Poppins' , sans-serif ;
    margin-left:40px;
    color: var(--a-color);   
}
.header{
    font-family: 'Poppins' , sans-serif ;
}
html {
     scroll-behavior: smooth; /*so that when we click home it does not got directly to that , rather goes smoothly by scrolling */
}
p{
    color:var(--p-color);
}

a,
.btn{
    transition: all 300ms ease;
}
/*desktop nav*/

nav,.header{
    display: flex;
}
nav{
    width: 84%;
    margin: auto;
    
    /* padding: 20px 0; */
    align-items: center;
    justify-content: space-between;
    height: 17vh;
    
    /* justify-content: space-around;
    align-items: center;
    height: 17vh; */
}
.header{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;;
}
a{
    color: var(--a-color);
    text-decoration: none;
    text-decoration-color: var(--a-text-decoration);

}
a:hover{
  color: var(--a-hover);
  text-decoration: underline;
  text-underline-offset: 1rem; 
  text-decoration-color: var(--a-hover-text-decoration); 
}
.logo{
    font-size: 2rem;
    
}
.logo:hover{
    cursor: default;
}

/*Mobile navigation*/

#mobile-nav{
    display: none;
}
.menu{
   position: relative; 
   display: inline-block;

}
.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}
.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: var(--hamburger-icon-bg);
    transition: all 0.3 ease-in-out;
}
.menu-links{
    position: absolute;
    top:100%;
    right: 0;
    background-color: var(--menu-links-bg);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
    z-index: 1;
}
.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--a-color);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.menu-links a:hover{
    color: var(--a-hover);
  text-decoration: underline;
  text-underline-offset: 1rem; 
  text-decoration-color: var(--a-hover-text-decoration); 
}
.menu-links li{
    list-style: none;
/* removes bullet points */
}
.menu-links.open{
    max-height: 300px;

}
.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2){
   opacity: 0;
}
.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px,-5px);
}

.hamburger-icon span:first-child{
    transform: none;
}
.hamburger-icon span:first-child{
    opacity: 1;
}
.hamburger-icon span:first-child{
    transform: none;
}

/* Sections*/
section{
    padding-top:4vh ;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}
.section-container{
    display: flex;
}

/* PROFILE*/
#profile{
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;

}
.section_pic-container,.section_pic-container-1{
    display: flex;
    height: 400px;
    width: 400px;
    z-index: 0;
    
    margin: auto 0;
}
.section_pic-container img{
    
    border-radius: 50%;
    
}

.section_text{
    align-self: center;
    text-align: center;
}
.section_text p{
    font-weight: 600;
}
.section_text_p1{
    text-align: center;
}

.section_text_p2{
    font-size: 1.75rem;
margin-bottom: 1rem;
}

.title{
   font-size: 3rem;
   text-align: center; 
   color: var(--a-color);
}
#socials-container{
   display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS */

.fa-linkedin,.fa-github,.fa-award,.fa-book-open-reader{
  cursor: pointer;
    font-size: 2rem;
    color: var(--icon-color);
    
}

.icon{
    cursor: pointer;
    height: 2rem;
  }
/*BUTTONS*/
.btn-container{
    display: flex;
    justify-content: center;
    gap: 3rem;

}
.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}
.btn-color-1,
.btn-color-2{
    border: var(--btn-bg) 0.1rem solid;

}
.btn-color-1,
.btn-color-2:hover{
    background: var(--btn-bg);
    color: var(--btn-1-color);
}

.btn-color-1:hover{
    background: var(--a-color);
    color: var(--menu-links-bg);
}
.btn-color-2{
    background: none;
    color: var(--btn-2-color);
}
.btn-color-2:hover{
    border: var(--btn-color-2-hover) 0.1rem solid;
}
.btn-container{
    gap:1rem;

}

/* ABOUT SECTION*/
#About{
    position: relative;
}
.fa-award,.fa-book-open-reader,.fa-chevron-down,.fa-envelope{
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--icon-color);
      
  }
.about-containers{
    margin-bottom: 2rem;
    margin-top: 2rem;
    gap:2rem;

}
.about-details-container{
    justify-content: center;
    flex-direction: column;

}
.about-containers,
.about-details-container{
    display: flex;
}
.about-pic{
    border-radius: 2rem;
}
.fa-chevron-down{
    position:absolute;
   right: -5rem;
    bottom: 2.5rem;
    
}
#chevrondown{
    position:absolute;
    right: -5rem;
     bottom: 2rem;
}
.details-container{
    padding: 1.5rem;
    flex:1;
    background: var(--menu-links-bg);
    border-radius: 2rem;
    border: var(--details-container-border) 0.1rem solid;
    border-color: var(--details-container-border-color);
    text-align: center;

}
.details-container h3{
    color: var(--a-color);
}
.section-container{
    gap: 4rem;
    height:80% ;
}
.section_pic-container-1{
    height:400px ;
    width: 400px;
    margin: auto 0;
}
/* PROJECTS SECTION*/
#Projects{
    position: relative;
}

.color-container{
    border-color: var(--details-container-border-color);
    background: var(--color-container-bg);

}
.project-img,
.project3-img{
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}
.project3-img{
    border-radius: 2rem;
    width: 90%;
    height: 38vh;
}
.project-title {
    margin: 1rem;
    color: var(--a-color);
}
.project-btn{
   color: var(--a-color);
   border-color: var(--details-container-border-color); 
}
.project-btn:hover{
    background: var(--a-color);
    color: var(--menu-links-bg);
}
.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
  }
  
  /*CONTACT*/
  #Contact{
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
  }
  .contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: var(--details-container-border) 0.1rem solid;
    border-color: var(--details-container-border-color);
    background: var(--contact-info-container-bg);
    margin: 2rem auto;
    padding: 0.5rem;
  }
  .contact-info-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
  }
  .contact-info-container p{
    font-size: larger;
  }
  .fa-envelope{
    cursor: default;
    font-size: 1.8rem;
  }
  #linkedin{
    cursor: default;
  }

  /*FOOTER*/
  footer{
    height: 26vh;
    margin: 0.1rem ;
    background-color: var(--footer-bg);
    
  }
  footer p{
    text-align: center;
  }
  #footer-nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
  }
.Copyright{
    color: white;
}
.footer-menu a{
    color: rgb(227, 227, 227);
}

/* Theme changer  */

.theme-switcher{
    background-color: var(--switch-bg) ;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.33rem;
    cursor: pointer;
    padding: 0.66rem;
    position: relative;
    transform: var(--default-border-radius);
}

.theme-switcher::before{
    content: '';
    position: absolute;
    width: 2.28rem;
    height: 2.28rem;
    background-color: var(--switch-circle-bg);
    border-radius: 50px;
   z-index: 0;
   left: 0;
   transform: translateX(var(--switch-circle-pos));
   transition: var(--default-transition);
}
.theme-switcher svg{
    transition: var(--default-transition);
    z-index: 1;
}
#icon-sun{
    fill: var(--icon-sun);
}
#icon-moon{
    fill: var(--icon-moon);
}
.menu-theme,.mobile-theme{
    display: flex;
    align-items: center;
    gap: 1rem;
}
