:root{
    --fontFamily-: "Playwrite DE Grund", serif;
    --primary-color-: #323232;
    --secondary-color-: #fafafa;
    --primarygradient-color-: 2px 3px 20px 1px rgba(250, 250, 250, 0.59);
    --secodarygradient-color-: 2px 3px 20px 1px rgba(50,50,50,0.35);
}


.theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

html{
    scroll-behavior: smooth;
    scrollbar-width: none;
}
svg path {
    fill:var(--secondary-color-);
}
body{
    background-color: var(--primary-color-);
    box-sizing: border-box;
    font-family: var(--fontFamily-);
    font-optical-sizing: auto;
    color: var(--secondary-color-) ;
    padding: 0;
    margin: 0;
    transition: all 1s ease;
}
body.dark-mode {
    --primary-color-: #fafafa;/* Dark mode primary color */
    --secondary-color-: #323232; /* Dark mode secondary color */
    --primarygradient-color-:2px 3px 20px 1px rgba(50,50,50,0.35);/* Dark mode gradient */
    --secodarygradient-color-:2px 3px 20px 1px rgb(249, 249, 249);
    transition: all 1s ease;
}

/* Navbar style */

header{
    /* background-color: rgb(182, 180, 180); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
}

ul li {
    list-style: none;
    list-style-type: none;  
 
}
a{
    text-decoration: none;
    color: var(--secondary-color-);
}
nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 25px;
}
ul li a{
    position: relative;
}
nav ul li a.nav-link::after{
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--secondary-color-);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}
nav ul li a.nav-link:hover::after{
    width: 100%;
}
.navLinksContainer{
    display: none;
    align-items: center;
}
.hamburgerMenu{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.line{
    background-color: var(--primary-color-);
    height: 3px;
    width: 25px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
/* Home section */
/* .Home{
    height: 800px;
} */
.homeMainContainer{
    /* background-image: url("./AssetsFolder/abbas-pic.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%; */
    /* background-color:  rgba(255, 128, 255, 0.5); */
    height: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* margin-top: -15px; */
}

/* projects cards */

.projectsContainer{
    width: 80%;
    margin: 0 auto;
}
.categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    font-family: inherit;
}

.category {
    margin: 0 auto;
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color-);
    color: var(--secondary-color-);
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.category.active {
    background-color: var(--secondary-color-);
    color: var(--primary-color-);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    /* background-color: white; */
    border-radius: 10px;
    background: linear-gradient(to bottom, var(--primarygradient-color-), transparent);
    box-shadow: var(--primarygradient-color-);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-description {
    font-size: 14px;
    color: #555;
}

/* categories */
.newSection h1 {
    position: relative; /* Required for positioning the ::after element */
    display: inline-block; /* Ensure the line is only as wide as the text */
    font-size: 2rem; /* Adjust font size as needed */
    color: var(--secondary-color-); /* Text color */
  }
  
  .newSection h1::after {
    content: ''; /* Required for pseudo-element */
    display: block; /* Make it a block-level element */
    width: 150px; /* Width of the line */
    height: 2px; /* Thickness of the line */
    background-color: var(--secondary-color-); /* Color of the line */
    margin: -10px auto 0; /* Add space below the text and center the line */
  }
/* .newSection h1{
    text-align: center;
    color: var(--secondary-color-);
} */
.newSectionnav h1::after{
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--primary-color-);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}
.longLine{
    height: 3px;
    background-color: var(--primary-color-);
    margin: 20px auto;
    width: 80%;
}
.categories{
    display: flex;
    width: 60%;
    align-items: center;
    justify-content: space-around;
    margin: 0 auto;
}

.categories button{
    padding: 5px;
    /* border: none; */
    cursor: pointer;
    font-family: var(--fontFamily-);
}


/* foam -- style */
form{
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 60%;
    margin: 0 auto;
    font-family: inherit;
    gap: 15px;
}
form input{
    height: 25px;
    font-family: var(--fontFamily-);
    font-size: 20px;
    padding: 10px;
    border: none;
    background-color: white;
    box-shadow: var(--primarygradient-color-);
}
form input:nth-child(4){
    height: 80px;
}
form input:nth-child(5){
    background-color: var(--primary-color-);
    color: var(--secondary-color-);
    height: 40px;
    padding: 0 auto;
}
.submitBtn{
    padding: 10px;
    background-color: var(--secondary-color-);
    color: var(--primary-color-);
    border: none;
    font-family: "Playwrite DE Grund", serif;
    box-shadow: var(--primarygradient-color-);
    cursor: pointer;
    transition: 0.5s;
}
.submitBtn:hover{
    background-color: var(--primary-color-);
    color: var(--secondary-color-);
}
#message {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}
.contactContainer{
    display: flex;
    align-items: center;
    flex-direction: row;   
    justify-content: space-between;
    gap: 10px;
    width: 70%;
    margin: 0 auto;
}
.socialContainer {
    padding: 20px;
    width: 50%;
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
}
/* .socialContainer {
} */
/* .socialContainer  div svg{
    display: flex;
    flex-direction: column;
} */
svg{
    width: 48px;
    height: 50px;
}

/* About me section */
.aboutContainer{
    display: flex;
    width: 80%;
    justify-content: space-between;
    margin: 0 auto;
}
.myPicContainer{
    margin: 0 auto;
}
.myPicContainer img{
    width: 400px;
    border-radius: 70%;
}
.sideAboutContainer{
    width: 50%;
}
.sideAboutContainer h5{
    opacity: 0.7;
}

.resumesDetails button{
    padding: 10px;
    background-color: var(--secondary-color-);
    color: var(--primary-color-);
    border: none;
    font-family: "Playwrite DE Grund", serif;
    box-shadow: var(--primarygradient-color-);
    cursor: pointer;
    transition: 0.5s;
}
.resumesDetails button:hover{
    background-color: var(--primary-color-);
    color: var(--secondary-color-);
}

/* clock and weather */
.linksFooter{
    color: #fafafa;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap: 20px;
    background: #323232;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: var(--primarygradient-color-); */
    color: #fafafa;
    width: 70%;
  }
  
  .clock {
    text-align: center;
  }
  
  #time {
    font-size: 3rem;
    font-weight: bold;
    color: #fafafa;
  }
  
  #date {
    font-size: 1rem;
    color: #fafafa;
  }
  
  .weather {
    text-align: center;
  }
  
  .weather h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  #location, #temperature, #description {
    font-size: 1.2rem;
    margin: 5px 0;
  }

/* footer  */
footer{
    margin:10px 0px 0px 0px;
    text-align: center;
    background-color: #323232;
    color: #fafafa; 

}


@media (max-width: 760px) {
    .headLinkContainer{
        position: fixed;
        display: flex;
        left: -100%;
        top: 99px;
        gap: 0px;
        flex-direction: column;
        background-color: var(--primary-color-);
        width: 100%;
        height: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 1;
    }
    .navLinksContainer{
        display: flex;
        align-items: center;
    }
    .hamburgerMenu.active .line:nth-child(2){
        opacity: 0;
    }
    .hamburgerMenu.active .line:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .hamburgerMenu.active .line:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
   
    .line{
        background-color: var(--secondary-color-);
    }
    nav ul {
        display: block;
    }
    .nav-link{
        margin: 0 36px;
    }
    li{
        margin-top: 20px;
    }
    .headLinkContainer.active{
        left: 0;
    }

    /* down-Line effect */
    
    nav ul li a.nav-link::after{
        content: '';
        width: 0;
        height: 1.5px;
        background-color: var(--secondary-color-);
        transition: width 0.3s ease;
        position: absolute;
        bottom: 3px;
        left: 50%;
        transform: translateX(-50%);
    }
    .categories {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        font-family: inherit;
    }
    .contactContainer{
        /* flex-direction: row; */
        display: inline;
        margin: 0 auto;
    }
    .aboutContainer{
        display: flex;
        flex-direction: column;
        width: 80%;
        justify-content: space-between;
        margin: 0 auto;
    }
    .sideAboutContainer{
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .myPicContainer img{
        width: 300px;
        border-radius: 70%;
    }
    #theme-toggle {
        position: fixed;
        cursor: pointer;
        /* border: none; */
        top: 90%;
        left: 90%;
        z-index: 1000;
        
     }
  
}

/* dark mode */

#theme-toggle {
    position: fixed;
    cursor: pointer;
    /* border: none; */
    border-radius: 50%;
    top: 90%;
    z-index: 1000;
    left: 90%;
    background-color: #323232;
 }

 /* body.no-overflow{
    overflow: hidden;
 } */
.homeMainContainer {
    text-align: center;
}
.newSection {
    text-align: center; 
    margin: 50px 0; 
}
input:focus {
    outline: none; 
    box-shadow: none; 
    border: none;
}