/* 
* Portfolio Website Styles
* Author: Fanidhar
* Description: Main stylesheet for personal portfolio website
*/



/* CSS Variables - Global theme settings */
:root {
    --lenImgMob: 200px;
    --lenImg: 440px;
    --primary-color: #ff6464;
    --text-color: #222;
    --bg-color: rgb(250, 250, 250);
    --border-radius: 6px;
    --box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
    --font-family: "Heebo", sans-serif;
    --secondary-font: "Fira Sans", sans-serif;
    --secondary-color: #8695a4;
    --border-color: #e0e0e0;
    --hover-color: #1ca7ec;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-style: normal;
}
::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-track{
    background: white;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb{
    background: rgb(63, 152, 211);
    border-radius: 5px;
}
/* Header Section Styles */
.head {
    background-color: var(--bg-color);
}

.navigation{
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--bg-color);
    
}
.navigation nav{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    width: 100%;
}
.navigation nav .nav-link{
    padding: 10px;
    border-radius: 10px;
    margin: 10px;   
}
.navigation nav .nav-link a{
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
}
.navigation nav .nav-link a:hover{
    color: rgb(134, 149, 164);
    transition: var(--transition);
}
.navigation-sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 300px;
    width: 200px;
    z-index: 1000;
    background-color: rgba(250, 250, 250, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.navigation-sidebar nav{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    background-color: transparent;
    width: 100%;
} 
.navigation-sidebar nav .nav-link{
    padding: 10px;
    border-radius: 10px;
    margin: 10px;   
}
.navigation-sidebar nav .nav-link a{
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
}
.navigation-sidebar nav .nav-link a:hover{
    color: rgb(134, 149, 164);
    transition: var(--transition);
}
#menubar{
    display: none;
}

/* Introduction/Hero Section */
.introduction {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.introduction .intro {
    padding: 150px;
}

.introduction .intro #intro-bold {
    font-weight: bold;
    font-size: 44px;
}

.introduction .intro #intro-bold,
.introduction .intro #intro-normal {
    padding: 10px;
}

/* Resume Download Button */
.introduction .intro button {
    background-color: var(--primary-color);
    border: transparent;
    border-radius: var(--border-radius);
    margin: 10px;
    padding: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.2s;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(33, 150, 243, 0.08);
}

.introduction .intro button a {
    background: transparent !important;
    text-decoration: none !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: inherit;
    text-transform: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

/* Profile Image Styles */
.image #image1 {
    position: relative;
    padding: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image #image1::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--lenImg);
    height: var(--lenImg);
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.25);
    z-index: 0;
    filter: blur(8px);
}

.image #image1 img {
    position: relative;
    z-index: 1;
    width: var(--lenImg);
    height: var(--lenImg);
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--text-color);
    box-shadow: var(--box-shadow);
    display: block;
    background: #fff;
}

/* Main Content Section - Recent Projects */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 300px;
    background-color: #d2f0fa !important;
    padding: 40px 0;
}

/* Project Section Header */
.main > .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 900px;
    margin-bottom: 24px;
}

.main > .header-container h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.main > .header-container a {
    color: var(--hover-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

/* Project Cards Container */
.posts-row {
    display: flex;
    gap: 24px;
    width: 90%;
    max-width: 900px;
    justify-content: center;
}

/* Individual Project Card */
.post-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    padding: 24px 20px;
    width: 100%;
    max-width: 400px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.post-card .meta {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 8px;
}

.post-card .divider {
    margin: 0 8px;
    color: #b0b0b0;
}

.post-card p {
    color: #444;
    font-size: 0.98rem;
    margin: 0;
}

/* Footer Section - Featured Works */
.foot {
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px 10%;
}

.foot h3 {
    padding: 10px 0px;
}

/* Featured Work Items */
.foot .works1,
.foot .works2,
.foot .works3 {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Featured Work Images */
.Image {
    width: 246px !important;
    min-width: 246px !important;
    max-width: 246px !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    background: #6d5c5c;
    display: block !important;
    flex: 0 0 246px !important;
    margin: 0 20px 0 0;
}

.Image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--border-radius) !important;
    display: block;
}

/* Featured Work Content */
.matter {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.matter .heading {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.matter .spans {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
}

.matter .spans .year {
    margin: 0px 5px 0px 0px;
    padding: 2px 10px;
    background-color: #142850;
    color: white;
    border-radius: 15px;
    font-weight: 900;
    font-size: 16px;
}

.matter .spans .title {
    padding: 0px 10px;
    color: var(--secondary-color);
    font-size: 20px;
}

.matter .extra-matter {
    font-size: 1rem;
    line-height: 1.5;
}

.foot hr {
    border: 1px solid var(--border-color);
    margin: 20px 0px;
}

/* Social Media Links */
.social {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
}

.social .links {
    margin: 10px;
}

/* Responsive Design Styles */

/* Large Screen Styles (1280px - 1090px) */
@media only screen and (max-width: 1280px) and (min-width: 1090px) {
    /* Adjust image size for large screens */
    .image #image1 {
        position: relative;
        padding: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image #image1::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: rgba(0, 123, 255, 0.25);
        z-index: 0;
        filter: blur(8px);
    }

    .image #image1 img {
        position: relative;
        z-index: 1;
        width: 350px;
        height: 350px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid var(--text-color);
        box-shadow: var(--box-shadow);
        display: block;
        background: #fff;
    }
}

/* Medium Screen Styles (1090px - 600px) */
@media only screen and (max-width: 1090px) and (min-width: 600px) {


    .introduction {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }

    .introduction .intro {
        padding: 50px 20px;
        text-align: center;
    }

    /* Adjust image size for medium screens */
    .image #image1 {
        position: relative;
        padding: 50px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image #image1::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(0, 123, 255, 0.25);
        z-index: 0;
        filter: blur(8px);
    }

    .image #image1 img {
        position: relative;
        z-index: 1;
        width: 300px;
        height: 300px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid var(--text-color);
        box-shadow: var(--box-shadow);
        display: block;
        background: #fff;
    }

    /* Adjust project cards layout */
    .main .posts-row {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .foot h3 {
        text-align: center;
    }


}

/* Mobile Styles (600px and below) */
@media only screen and (max-width: 600px) {
    #menubar{
        display: block;
    }
    #hideLinks{
        display: none;
    }
    /* Mobile Introduction Section */
    .introduction {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }

    .introduction .intro {
        padding: 50px 0 100px 0;
        text-align: center;
    }

    /* Mobile Button Styles */
    .introduction .intro button {
        background-color: var(--primary-color);
        border: transparent;
        border-radius: var(--border-radius);
        margin: 10px auto;
        padding: 10px;
        font-size: 18px;
        font-weight: 500;
        cursor: pointer;
        transition: box-shadow 0.2s;
        text-transform: uppercase;
        box-shadow: 0 1px 4px rgba(33, 150, 243, 0.08);
    }

    .introduction .intro button a {
        background: transparent !important;
        text-decoration: none !important;
        color: #fff !important;
        font-family: inherit;
        font-size: 15px;
        font-weight: inherit;
        text-transform: inherit;
        display: block;
        width: 100%;
        height: 100%;
    }

    /* Mobile Image Styles */
    .image #image1 {
        position: relative;
        padding: 50px 0 50px 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image #image1::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: var(--lenImgMob);
        height: var(--lenImgMob);
        border-radius: 50%;
        background: rgba(0, 123, 255, 0.25);
        z-index: 0;
        filter: blur(8px);
    }

    .image #image1 img {
        position: relative;
        z-index: 1;
        width: var(--lenImgMob);
        height: var(--lenImgMob);
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid var(--text-color);
        box-shadow: var(--box-shadow);
        display: block;
        background: #fff;
    }

    /* Mobile Project Cards */
    .main .posts-row {
        flex-direction: column;
        width: 100%;
        gap: 0;
        max-width: none;
    }

    .post-card {
        width: 96%;
        max-width: none;
        min-width: 0;
        padding: 16px;
        gap: 8px;
        margin: 8px auto;
        box-sizing: border-box;
    }

    .post-card h5 {
        font-size: 1rem;
    }

    .post-card .meta {
        font-size: 0.85rem;
    }

    .post-card p {
        font-size: 0.9rem;
    }

    /* Mobile Featured Works */
    .foot .works1,
    .foot .works2,
    .foot .works3 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .Image {
        width: 90% !important;
        height: auto !important;
        max-width: 246px;
        margin: 0 0 20px 0 !important;
    }

    .Image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: var(--border-radius) !important;
    }

    .matter {
        width: 90%;
        max-width: 246px;
        text-align: center;
    }

    .matter .spans {
        justify-content: center;
    }

    .foot h3 {
        text-align: center;
    }
}

/* Small Mobile Styles (480px and below) */
@media only screen and (max-width: 480px) {


    /* Small Mobile Introduction Section */
    .introduction {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }

    .introduction .intro {
        padding: 50px 0 100px 0;
        text-align: center;
    }

    /* Small Mobile Button Styles */
    .introduction .intro button {
        background-color: var(--primary-color);
        border: transparent;
        border-radius: var(--border-radius);
        margin: 10px auto;
        padding: 10px;
        font-size: 18px;
        font-weight: 500;
        cursor: pointer;
        transition: box-shadow 0.2s;
        text-transform: uppercase;
        box-shadow: 0 1px 4px rgba(33, 150, 243, 0.08);
    }

    .introduction .intro button a {
        background: transparent !important;
        text-decoration: none !important;
        color: #fff !important;
        font-family: inherit;
        font-size: 15px;
        font-weight: inherit;
        text-transform: inherit;
        width: 100%;
        height: 100%;
    }

    /* Small Mobile Image Styles */
    .image #image1 {
        position: relative;
        padding: 50px 0 50px 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image #image1::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: var(--lenImgMob);
        height: var(--lenImgMob);
        border-radius: 50%;
        background: rgba(0, 123, 255, 0.25);
        z-index: 0;
        filter: blur(8px);
    }

    .image #image1 img {
        position: relative;
        z-index: 1;
        width: var(--lenImgMob);
        height: var(--lenImgMob);
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid var(--text-color);
        box-shadow: var(--box-shadow);
        display: block;
        background: #fff;
    }

    /* Small Mobile Project Cards */
    .main .posts-row {
        flex-direction: column;
        width: 100%;
        gap: 0;
        max-width: none;
    }

    .post-card {
        width: 96%;
        max-width: none;
        min-width: 0;
        padding: 16px;
        gap: 8px;
        margin: 8px auto;
        box-sizing: border-box;
    }

    .post-card h5 {
        font-size: 1rem;
    }

    .post-card .meta {
        font-size: 0.85rem;
    }

    .post-card p {
        font-size: 0.9rem;
    }

    /* Small Mobile Featured Works */
    .foot .works1,
    .foot .works2,
    .foot .works3 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .Image {
        width: 90% !important;
        height: auto !important;
        max-width: 246px;
        margin: 0 0 20px 0 !important;
    }

    .Image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: var(--border-radius) !important;
    }

    .matter {
        width: 90%;
        max-width: 246px;
        text-align: center;
    }

    .matter .spans {
        justify-content: center;
    }

    .foot h3 {
        text-align: center;
    }
}


