/* imported Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* Base - Global CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, button, input, textarea {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

header,home {
    background: linear-gradient(
        54deg,
        rgba(45,45,45,0.95) 34%,
        rgba(45,45,45,0.95)
    );
    color: #555;
    line-height: 1.5em;
}

h1, h2, h3 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

textarea, input {
    background: none;
    border: none;
    outline: none;
}

/* Re-useable CSS */
.container{
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}
.grid{
    display: grid;
}

.section{
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}

#intro-title{
    font-size: 24px;
    line-height: 1.17em;
    font-weight: 500;
    margin-bottom: 1.12em;
}

.text-lg{
    font-size: 18px;
    line-height: 1.67em;
}
.text-sm{
    font-size: 12px;
    line-height: 1.43em;
}

/* Header */
#header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/*-----------------------nav---------------------------------*/
#nav{
  height: auto;
  display: flex;
  align-items: flex-end;  
}
#nav-list{
    display: flex;
    column-gap: 3.25rem;
}

#nav-link1,#nav-link2,
#nav-link3,#nav-link4,
#nav-link5,#nav-link6{
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Roboto Mono';
    text-transform: uppercase;
    position:relative;
    transition: 0.3s;
}
#nav-link1:hover,
#nav-link2:hover,
#nav-link3:hover,
#nav-link4:hover,
#nav-link5:hover,
#nav-link6:hover {
    opacity: 0.5;
}

#nav-link1::after,
#nav-link2::after,
#nav-link3::after,
#nav-link4::after,
#nav-link5::after,
#nav-link6::after {
    content:'';
    position: absolute;
    bottom: 0;
    right: -0.5rem;
    width: 7px;
    height: 2px;
    background-color: #fff;
    opacity: 0;
    transition: 0.3s; 
}
#nav-link1:hover::after,
#nav-link2:hover::after,
#nav-link3:hover::after,
#nav-link4:hover::after,
#nav-link5:hover::after,
#nav-link6:hover::after {
    opacity: 1;
}


#nav-close,
#nav-toggle{
    display: none;
}

/*  Home Page */
#home{
    background: url(img/shah-home-pg-bg.jpg);
    background-size: cover;
    background-position: 50%;
    padding-top: 5.5rem;
    position: relative;
    margin-bottom: 3.5rem;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background: linear-gradient(54deg, rgba(45,45,45,0.95) 34%, rgba(45,45,45,0.95));
}


#home__container{
    grid-template-columns: 4fr 8fr;
    column-gap: 1.875rem;
}
#home__img, 
#home__data{
    position: relative;
    z-index:10;
}

#home__name{
    padding-left: 1rem;
}

#home__img{
    width: 90%;
    height: 380px;
    object-fit: cover;
    border-radius: 0.3rem;
    transform: translateY(3.125rem);
    box-shadow: 0 0 27px rgb(96 96 96 / 34%);
}
/*name and work styles */
#home__name,
#home__work,
#home__list,
#home_social_link1,
#home_social_link2{
    color: #fff;
    font-family: 'Roboto Mono';
}

#home__name {
    font-size: 2.75rem;
    line-height: 1.14em;
    margin: 0.9em 0 0 0.23em;
}

#home__work {
    margin-bottom: 2.5em;
}
#home__name, #home__work {
    margin: 0;
    padding: 0;
}
/*for dynamic name and work span */
#home__name span, #home__work span {
    display: inline-block;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s;
}
/* home list style */
#home__list > div {
    width: 700px; 
}

#home__list dt {
    display: inline-block;
    width: 100px; 
    text-align: left; 
    margin-right: 15px;
    font-weight: 700; 
    opacity: 0.4;
}

#home__list dd {
    display: inline;
    margin: 0;
}

#home__list div:not(:last-child) {
    margin-bottom: 0.5em;
}

/*social links styles*/
#home_social_link1 i,
#home_social_link2 i {
    font-size: 2.5rem;
    line-height: 1.36em;
    margin-right: 0.25rem;
    opacity: 0.4;
}

#home_social_link1:hover i,
#home_social_link2:hover i {
    opacity: 1;
}

/* intro-details */
.intro-details{
    margin-bottom: 1.67em;
    text-align: justify;
    font-family: 'Roboto Mono';
}

.signature {
    font-family: 'Pacifico', cursive;  /* This is just an example, you can use other cursive fonts */
    font-size: 20px;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 1px;
    margin-top: 20px;
    color: white;
}


/* buttons */
.button {
    display: inline-block;
    background-color: rgba(45,45,45,0.95);
    padding: 1.1em 2.1em;
    border-radius: 0;
    font-weight: 600;
    color: #fff; 
    transition: 0.3s;
}

.button:hover {
    background-color: #fff;
    color: rgba(45,45,45,0.95); 
}

/* skills page */

.skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.skills-grid h3 {
    border-bottom: 2px solid rgba(45,45,45,0.95);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.skills-grid ul {
    margin: 0;
    padding-left: 1.5rem;
}

.skills-grid li {
    margin-bottom: 0.5rem;
}

.skill {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.skill-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    position: relative;
    border-radius: 4px;
}

.filled {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(45,45,45,0.95);
    border-radius: 4px;
    transition: width 1s;
}

/* Resume Page Styles */

.resume-container{
    grid-template-columns: repeat(2,1fr);
    column-gap: 3.75rem;
}

.resume-title{
    color: lightslategray;
    letter-spacing: 0.4em;
    margin-bottom: 2.8em;
}

.resume-item{
    border-left: 2px solid rgba(45,45,45,0.95);
    padding-left: 1.6rem;
    position: relative;
}

.resume-item:not(:last-child){
    padding-bottom: 3rem;
}

.resume-item::before{
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(45,45,45,0.95);
    position: absolute;
    left: -0.56rem;
    background-color: rgba(45,45,45,0.95);
}

.resume-subtitle{
    color: #000;
    margin-bottom: 0.36em;
}

.resume-date{
    font-family: 'Roboto Mono';
    color: #000;
    margin-bottom: 0.7em;  
}
.resume-description{
    font-family: 'Roboto Mono';
    text-align: justify;
}


/*--------------------------------------PORTFOLIO PAGE------------------------------*/
.text-lg-pc{
    font-size: 18px;
    line-height: 1em;
}

.project-categories{
    display: flex;
    column-gap: 3rem;
    margin-bottom: 1.875rem;
}

.category-btn{
    color:rgba(45,45,45,0.95);
    font-weight: bold;
    font-family: 'Roboto Mono';
    position: relative;
}

.category-btn:hover{
    color: lightgray;
}

.projects-container{
    row-gap: 2.5rem;
}

.project-item{
    grid-template-columns: 5fr 7fr;
}

.project-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-data{
    padding: 3rem 3rem 2.5rem 1.875rem;
    border: 1px solid lightgray;
}

.project-title{
    margin-bottom: 0.8em;
    text-align: justify;
}

.project-description{
    margin-bottom: 2.5em;
    text-align: justify;
}

.project-stack{
    margin-bottom: 1.25em;
}

.tags li{
    display: inline-block;
    margin-right: 0.6rem;
    box-shadow: 0 1px 4px rgb(0 0 0 / 14%);
    padding: 0.3rem 0.6rem;
    border-radius: 0.2rem;
}

.project-link{
    float: right;
    margin-top: 3.9em;
    color: #555;
    font-family: 'Roboto Mono';
}

/* ---------------------------------BLOG ------------------------------------------ */
.blog-details{
    /* margin-bottom: 0.2em; */
    text-align: justify;
    font-family: 'Roboto Mono';
}

.post-container{
    grid-template-columns: repeat(3,1fr);
    column-gap: 1.875rem;
    margin-bottom: 2.5rem;
}

.post-img{
    vertical-align: middle;
}

.post-content{
    border: 1px solid lightgray;
    padding: 1.25rem 1.875rem 2.5rem 1.25rem;
}
.post-date{
    text-transform: uppercase;
    color: lightgray;
    margin-bottom: 1em;
}

.post-title{
    margin-bottom: 1.1em;
    text-transform: uppercase;
}
.post-description{
    color: black;
    text-align: justify;
}

/*----------------------------------Contact--------------------------------------*/
.contact{
    background: url(img/bg-shah-portfolio.jpg);
    background-size: cover;
    background-position: 50%;
    position: relative;
}
.contact::before{
    content: '';
    background: #555;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.contact-content{
    z-index: 10;
    position: relative;
}

.contact-container{
    display: flex; /* Use Flexbox model */
    justify-content: space-between; /* This will add some space between the two sections */
    padding-top: 1.25rem;
}
.contact-info {
    flex: 1; /* This means it will take up 1 fraction of available space, .contact-form will take up the rest */
    margin-right: 20px; /* Some space between the info and form sections */
}

.contact-form {
    flex: 2; /* This means it will take up 2 fractions of available space, so it will be wider than .contact-info */
}


.contact .contact-title,
.contact-list,
.contact-social-link,
::placeholder,
.contact-input,
.contact-form-title{
    color: #fff;
    font-family: 'Roboto Mono';
}

.contact-list{
    margin-bottom: 3.25rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-item {
    margin-bottom: 10px; 
    text-decoration: none;
    color: #fff; 
    font-family: 'Roboto Mono';
    font-weight: bold;
}

.contact-item:hover {
    text-decoration: underline;
}

.contact-form{
    position: relative;
}

.contact-form-title{
    margin-bottom: 1.25em;
}

.contact-input-div{
    margin-bottom: 0.94em;
}
.contact-input{
    width: 100%;
    border: 2px solid lightgray;
    border-radius: 3px;
    padding: 0.625rem;
}

.textarea{
    height: 7.2rem;
    resize: none;

}

.contact-input:focus{
    box-shadow: inset 0 0 5px 0 #fff;
    background-color: #666; /* A slightly darker shade for focus */
    color: #E0E0E0; /* Light gray font color */
    box-shadow: inset 0 0 5px 0 #fff;
}

.button-container {
    display: flex;
    justify-content: space-between; /* This separates the two buttons */
    margin-top: 1.875rem;
}

.contact-button, .reset-button {
    flex: 1; /* This makes both buttons take up equal space */
    margin: 0 10px; /* Add some margin for spacing */
    width: calc(50% - 20px); /* This will ensure the buttons are half the width minus the margin */
}
.contact-form label {
    color: #E0E0E0;
}

.error-message {
    display: none;
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 15px;  /* Spacing between links */
    padding-left: 0;
}

.footer-links li a {
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #555;  /* Slightly darker on hover */
}

.footer-container p {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    width: 100%;
    margin-top: 20px; /* Additional space between the ul and the copyright */
}

/* Media queries for responsiveness */

/* header & navbar */ 
#header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

#nav {
    height: auto;
    display: flex;
    align-items: flex-end;
}

#nav-list {
    display: flex;
    column-gap: 1.25rem;
    flex-wrap: wrap;
}

@media screen and (min-width: 768px) {
    #nav-list {
        column-gap: 2.25rem;
    }
}

@media screen and (min-width: 992px) {
    #nav-list {
        column-gap: 2.5rem;
    }
}

@media screen and (min-width: 1200px) {
    #nav-list {
        column-gap: 3rem;
    }
}
@media (max-width: 768px) {
    #nav-list {
        flex-direction: column;
        margin-top: 3rem;
    }
    
    #nav-list li {
        margin-bottom: 1.5rem;
    }
    
    #nav-list a {
        font-size: 1.5rem;
    }
    
    #nav-link1,
    #nav-link2,
    #nav-link3,
    #nav-link4,
    #nav-link5,
    #nav-link6 {
        position: relative;
        font-size: 1.2rem;
    }
    
    #nav-link1::after,
    #nav-link2::after,
    #nav-link3::after,
    #nav-link4::after,
    #nav-link5::after,
    #nav-link6::after {
        display: none;
    }
}

/* media queries for contact page */

/* Media query for screens with a maximum width of 768px */
@media (max-width: 768px) {

    /* Adjustments for smaller screens */
    
    .contact-container {
        flex-direction: column; 
    }
    
    .contact-info {
        margin-right: 0; 
        margin-bottom: 1.25rem; 
    }
    
    .contact-form {
        margin-top: 1.25rem; 
    }
    
    .contact-button, .reset-button {
        width: 100%; 
    }
}

/* media query for blog page */


/* Media query for screens with a maximum width of 768px */
@media (max-width: 768px) {

    /* Adjustments for smaller screens */
    
    .post-container {
        grid-template-columns: repeat(1, 1fr); /* Stack posts in a single column */
        column-gap: 0; 
    }
    
    .post-content {
        padding: 1.25rem; 
    }
}

/* media queries for portfolio page */
/* Default styles for larger screens */

/* Your existing styles here... */

/* Media query for screens with a maximum width of 768px */
@media (max-width: 768px) {

    /* Adjustments for smaller screens */
    
    .project-categories {
        flex-direction: column; /* Stack the project categories vertically */
        column-gap: 0; 
        margin-bottom: 1.25rem; 
    }
    
    .project-item {
        grid-template-columns: 1fr; /* Change to a single column layout */
    }
    
    .project-data {
        padding: 1.875rem; 
    }
    
    .project-link {
        margin-top: 1.25em; 
    }
}

/* Media Queries for resume page */

@media (max-width: 768px) {

    /* Adjustments for smaller screens */
    
    .resume-container {
        grid-template-columns: 1fr; /* Change to a single column layout */
        column-gap: 0; 
    }
    
    .resume-item {
        border-left: none; 
        padding-left: 0; 
        padding-bottom: 1.875rem; 
    }
    
    .resume-item::before {
        display: none; /* Hide the circle before each item on smaller screens */
    }
}

/* media query for skills page */
/* Default styles for larger screens */

/* Your existing styles here... */

/* Media query for screens with a maximum width of 768px */
@media (max-width: 768px) {

    /* Adjustments for smaller screens */
    
    .skills-grid {
        grid-template-columns: 1fr; /* Change to a single column layout */
        gap: 1rem;
        margin-top: 1.5rem; 
    }
    
    .skills-grid h3 {
        margin-bottom: 0.5rem; 
        padding-bottom: 0.3rem; 
    }
    
    .skills-grid ul {
        padding-left: 1rem; 
    }
    
    .skill {
        margin-bottom: 5px; 
    }
}

/* media query for home page */

@media (max-width: 768px) {

    /* Adjustments for smaller screens */
    
    #home__container {
        grid-template-columns: 1fr; 
        column-gap: 1rem; 
        padding: 2rem; 
    }
    
    #home__name {
        font-size: 2rem; /* Adjust the font size for better readability */
    }
    
    #home__img {
        width: 100%; 
        height: auto; 
        transform: none; 
    }
    
    #home__data {
        text-align: left; /* left align the content */
    }
    
    #home__work,
    #home__list,
    #home__socials {
        margin-top: 1rem; 
    }
    
    .intro-details,
    .signature {
        font-size: 16px; 
    }
    
    .button {
        padding: 1em 1.5em; 
    }
}






































