:root {
    --mainColor: #eaeaea;
    --secondaryColor: #fff;
    --borderColor: #c1c1c1;
    --mainText: black;
    --secondaryText: #4b5156;
    --themeDotBorder: #24292e;
    --previewBg: rgb(251, 249, 243, 0.8);
    --previewShadow: #f0ead6;
    --buttonColor: rgb(46, 34, 34);
    --buttonColor2: rgba(109, 116, 105, 0.527);
}

html,
body {
    padding: 0;
    margin: 0;
    scroll-behavior:smooth;
}

body * {
    transition: 0.6s;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    color: var(--mainText);
    font-family: 'Russo One', sans-serif;
    font-weight: 500;
}

p,
li,
span,
label,
input,
textarea {
    color: var(--secondaryText);
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
    color: #17a2b8;
}

ul {
    list-style: none;
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 16px;
}

.s1 {
    background-color: var(--mainColor);
    border-bottom: 1px solid var(--borderColor);
    overflow: auto;
    padding-bottom: 50px;
}

.s2 {
    background-color: var(--secondaryColor);
    border-bottom: 1px solid var(--borderColor);
    overflow: auto;
}

.main-container {
    width: 1200px;
    margin: 0 auto;
}

.greeting-wrapper {
    display: grid;
    text-align: center;
    align-content: center;
    min-height: 10em;
}

.intro-wrapper {
    background-color: var(--secondaryColor);
    border: 1px solid var(--borderColor);
    display: grid;
    border-radius: 5px 5px 0 0;
    -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'nav-wrapper nav-wrapper' 'left-column right-column';
}

.nav-wrapper {
    grid-area: nav-wrapper;
    border-bottom: 1px solid var(--borderColor);
    display: flex;
    border-radius: 5px 5px 0 0;
    justify-content: space-between;
    align-items: center;
    background-color: var(--mainColor)
}

#navigation a {
    color: var(--mainText);
}

#navigation {
    margin: 0;
    padding: 10px;
}

#navigation li {
    display: inline-block;
    margin-right: 5px;
    margin-left: 5px;
}
#navigation a:hover{
    color:#17a2b8;
}

.dots-wrapper {
    display: flex;
    padding: 10px;
}

#dot-1 {
    background-color: #fc6058;
}

#dot-2 {
    background-color: #fec02f;
}

#dot-3 {
    background-color: #2aca3e;
}

.browser-dots {
    background-color: black;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin: 5px;
    -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
}

.left-column {
    grid-area: left-column;
    padding-top: 50px;
    padding-bottom: 50px;
}

#profile_pic {
    display: block;
    margin: 0 auto;
    height: 200px;
    width: 200px;
    object-fit: cover;
    border: 2px solid var(--borderColor);
}

#theme-option-wrapper {
    display: flex;
    justify-content: center;
}

.theme-dot {
    height: 30px;
    width: 30px;
    background-color: black;
    border-radius: 50%;
    margin: 5px;
    border: 2px solid var(--themeDotBorder);
    -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.theme-dot:hover {
    border-width: 5px;
}

#light-mode {
    background-color: #fff;
}

#blue-mode {
    background-color: #192734;
}

#green-mode {
    background-color: #78866b;
}

#purple-mode {
    background-color: #7e4c74;
}

#settings-note {
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

.right-column {
    grid-area: right-column;
    display: grid;
    align-content: center;
    padding-top: 50px;
    padding-left: 30px;
    padding-bottom: 50px;
}

#preview-shadow {
    background-color: var(--previewShadow);
    width: 463px;
    height: 185px;
    padding-left: 30px;
    padding-top: 30px;
    margin-right: 20px;
    border: 1.8px solid var(--borderColor);
    border-top-left-radius: 37px 120px;
    border-top-right-radius: 0px 40px;
    border-bottom-left-radius: 0px 40px;
    border-bottom-right-radius: 37px 120px;
}

#preview {
    width: 400px;
    height: 120px;
    border: 1.8px solid #17a2b8;
    background-color: var(--previewBg);
    padding: 30px 0 0 30px;
    position: relative;
    border-top-left-radius: 37px 120px;
    border-top-right-radius: 0px 40px;
    border-bottom-left-radius: 0px 40px;
    border-bottom-right-radius: 37px 120px;
}

#preview h3{
    font-size:22px;
}
#corner-tl {
    /*it is top right dot of shadow*/
    width: 7px;
    height: 5px;
    border: 2px solid var(--borderColor);
    top: -36px;
    left: 456px;
}

#corner-br {
    /*it is bottom left dot of shadow*/
    width: 7px;
    height: 5px;
    border: 2px solid var(--borderColor);
    bottom: -37px;
    left: -36px;
}

.corner {
    width: 7px;
    height: 7px;
    border-radius: 25%;
    border: 1.5px solid #17a2b8;
    background-color: #fff;
    position: absolute;
}

#corner-tr {
    top: -5px;
    right: -5px;
}

#corner-bl {
    bottom: -5px;
    left: -5px;
}
.innerDiv{
    margin: -20px 10px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding-top: 50px;
    padding-bottom: 50px;
    gap: 100px;
}

.about-wrapper hr {
    border: 2px solid var(--borderColor);
}

#skills {
    display: flex;
    justify-content: space-evenly;
    background-color: var(--previewShadow);
}

.social-links {
    display: flow-root;
    font-size: 20px;
    align-content: center;
    text-align: center;
}


/* .social-links a {
    margin: 0;
    padding: 6px;
    border-radius: 70%;
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    text-align: center;
    margin: 0 10px;
    border-radius: 50%;
    box-sizing: border-box;
    text-decoration: none;
    background: linear-gradient(0deg, #fff, #ddd);
} */

.social-links a {
    padding: 10px;
}

.fab {
    width: 35px;
    height: 35px;
    background: linear-gradient(0deg, #ddd, #fff);
    border-radius: 50%;
    padding: 12px;
    font-size: 35px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transition: 0.5;
}

.fab.fa-github:hover {
    color: #6e5494;
    box-shadow: 0 0 10px #6e5494, 0 0 20px #6e5494, 0 0 40px #6e5494, 0 0 80px #6e5494, 0 0 120px #6e5494, 0 0 160px #6e5494;
}

.fab.fa-instagram:hover {
    color: #bc2a8d;
    box-shadow: 0 0 10px #bc2a8d, 0 0 20px #bc2a8d, 0 0 40px #bc2a8d, 0 0 80px #bc2a8d, 0 0 140px #bc2a8d, 0 0 180px #bc2a8d;
}

.fab.fa-facebook-f:hover {
    color: #4267B2;
    box-shadow: 0 0 10px #4267B2, 0 0 20px #4267B2, 0 0 40px #4267B2, 0 0 80px #4267B2, 0 0 120px #4267B2, 0 0 160px #4267B2;
}

.fab.fa-google:hover {
    color: #ee210a;
    box-shadow: 0 0 10px #ee210a, 0 0 20px #ee210a, 0 0 40px #ee210a, 0 0 80px #ee210a, 0 0 120px #ee210a, 0 0 180px #ee210a;
}

.fab.fa-linkedin:hover {
    color: #0e76a8;
    box-shadow: 0 0 10px #0e76a8, 0 0 20px #0e76a8, 0 0 40px #0e76a8, 0 0 80px #0e76a8, 0 0 120px #0e76a8, 0 0 160px #0e76a8;
}

#social_img {
    width: 95%;
}

.post-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    gap: 20px;
    justify-content: center;
    padding-bottom: 50px;
}

#past-projects:hover {
    letter-spacing: 5px;
    transition: 0.65s;
}

.post {
    border: 1px solid var(--borderColor);
    opacity: 0.7;
    background-color:#fff;
    -webkit-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
    box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
}

.post:hover {
    opacity: 1;
    transition: 0.6s;
    box-shadow: 0 0 400px 30px rgba(0, 0, 0, 0.75);
}

.thumbnail {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: cover;
}

.post-preview {
    background-color: #fff;
    padding: 15px;
}

.post-title {
    font-size: 14px;
    color: black;
    margin: 0;
}

.post-intro {
    color: #4b5156;
    font-size: 14px;
}

.input-field {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--secondaryColor);
    border-radius: 5px;
    border: 1px solid var(--borderColor);
    font-size: 14px;
}

.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondaryColor);
    background-size: cover;
    background-position: center;
    perspective: 1000px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.form-container form {
    height: 580px;
    width: 600px;
    background: var(--mainColor);
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.form-container form h3 {
    font-size: 32px;
    letter-spacing: 6px;
}

.form-container form h3:hover {
    letter-spacing: 0px;
    transition: 0.6s;
}

.form-container form input,
textarea {
    outline: none;
    line-height: 1.4em;
    border: none;
    height: 40px;
    width: 82%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mainText);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) inset;
    font-size: 17px;
    padding: 0 10px;
    margin: 15px 0;
    letter-spacing: 1px;
    border-radius: 15px;
    border: 1.3px solid var(--borderColor);
}

::placeholder {
    color: var(--mainText);
    text-align: center;
    align-items: center;
    justify-content: center;
}

textarea::placeholder {
    padding: 32px;
}

.form-container form input[type="submit"] {
    width: 90%;
    height: 40px;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(90deg, var(--buttonColor), var(--buttonColor2));
    margin-top: 30px;
    border-radius: 50px;
}

.form-container form input[type="submit"]:hover {
    font-size: 26px;
    transition: 0.65s;
    -webkit-mask-image: linear-gradient(-75deg, rgba(0, 0, 0, .6) 30%, #000 50%, rgba(0, 0, 0, .6) 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    from {
        -webkit-mask-position: 150%;
    }
    to {
        -webkit-mask-position: -50%;
    }
}

@media screen and (max-width: 1200px) {
    .main-container {
        width: 95%;
    }
}

@media screen and (max-width:800px) {
    .intro-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: 'nav-wrapper' 'left-column' 'right-column';
    }
    .right-column {
        justify-content: center;
    }
}

@media screen and (max-width:560px){
    #preview-shadow {
        max-width: 280px;
        height: 180px;
        padding-left: 10px;
        padding-top: 10px;
    }
    #preview {
        width: 280px;
    }
    #preview p {
        font-size: 15px;
    }
}

@media screen and (max-width: 400px) {
    #preview-shadow {
        max-width: 280px;
        height: 180px;
        padding-left: 10px;
        padding-top: 10px;
    }
    #preview {
        width: 280px;
    }
    #preview p {
        font-size: 15px;
    }
}
