@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700;800;900&family=Poppins:ital,wght@0,200;0,400;0,600;0,700;1,500&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gabarito', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding: 4.4rem;
    color: var(--text-color);
    }
html, body{
    width: 100%;
    background: var(--body-color);
    user-select: none;
    }
::-webkit-scrollbar{
    width: 5px;
    background: var(--main-text-color);
}
::-webkit-scrollbar-thumb{
    background: #66666669;
    height: 10rem;
}
::-webkit-scrollbar-thumb:hover{
    background-color: #999;
}
::-webkit-scrollbar-track{
    border-radius: 10px;
}
:root{
    --clip-size: 93%;
    --text-color: #1d1d1f;
    --body-color: #fff;
    --main-text-color: #fff;
    --transition1: all .4s ease;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    --link: #1877f2;
    --link-hover-bg: #166fe5;
    --border:#dddfe2;
    --btn-color: #1877f2;
    --gray: #6e6e73;
    --black-box: #000;
    --box-color: #fff;
    --header: rgba(251,251,253,0.8);
    --header-border: #dddfe2;
    --footer: #f5f5f7;
}
.dark-Mode{
    --text-color: #fff;
    --body-color: #101010;
    --box-color: #000;
    --header: rgba(0, 0, 0, 0.95);
    --header-border: transparent;
    --black-box: #212335;
    --footer: rgba(0, 0, 0, 0.95);
}
.darkmode {
    display: inline-block;
}
.darkmode svg{
    position: relative;
    top: 4px;
    width: 22px;
    height: 22px;
    transition: all .3s ease;
    cursor: pointer;
    transform: scaleX(-1);
}
.darkmode svg:active{
    scale: .2;
}
/* Navbar */
#navbar{
    position: fixed;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    background: var(--header);
    height: 11vh;
    padding-inline: 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    flex-wrap: wrap;
}
.logo a {
    font-weight: 700;
    font-size: 28px;
    cursor: pointer;
}
.logo a::before{
    color: var(--link);
    content: '<';
    padding-right: 2px;
}
.logo a::after{
    content: '/>';
    color: var(--link);
    padding-left: 2px;
}
.navIcon{
    right: 36px;
    position: absolute;
    display: none;
    cursor: pointer;
    height: 30px;
    width: 30px;
    overflow: hidden;
    border-radius: 5px;
}
.navIcon svg{
    position: relative;
    padding-inline: 2px;
    top: 1px;
    width: 30px;
    height: 30px;
    transition: var(--transition1);
}
.navIcon svg:active{
    scale: .1;
}
.navmenu a{
    font-weight: 700;
    font-size: 20px;
    margin-inline: 12px;
    color: var(--text-color);
    transition: all .3s ease-in-out;
}
.navmenu a:nth-child(9){
    background: var(--btn-color);
    padding-inline: 10px;
    padding-block: 6px;
    border-radius: 32px;
    font-size: 20px;
    color: var(--main-text-color) !important;
    border: rgba(0,0,0,0);
    transition: all 0.2s ease 0s;
}
.navmenu a:nth-child(9):hover{
    color: #fff;
    background: var(--link-hover-bg);
    border: transparent;
}
.active {
    color: var(--link) !important;
}
.navmenu a:hover{
    color: var(--link);
}
.clsoebtn svg{
    display: none;
    cursor: pointer;
    position: absolute;
    fill: var(--text-color);
    height: 25px;
    width: 25px;
    top: 25px;
    right:38px;
    transition: var(--transition1);
    opacity: 1;
}

.header-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
}
/* home section */
.home-section{
    height: calc(100vh - 11vh);
    width: 100%;
    margin-top: 1px;
    background: black;
    position: relative;
    overflow: hidden;
}
.dashed-img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.dashed-img img{
    height: 100px;
    height: 702px;
    filter: invert(95) opacity(.3) blur(4px);
    transform: rotate(270deg);
}
.content-wrapper{
    position: relative;
    background: var(--body-color);
    z-index: 5;
    padding-top: 0; /* No padding - br tags provide spacing */
    margin-top: 0; /* Space for fixed navbar */
}
.author-name{
    display: block;
}
#author-name-area{
    color: var(--link);
    font-size: 30px;
}
#author-name-area span{
    color: white;
}
.animatedHand, .Portfolio {
    display: inline-block;
}
#main {
    height: 100%;
    width: 100%;
}
.imgbox {
    position: relative;
    float: right;
    height: 100%;
    width: 50%;
    overflow: hidden;
}
.imgPosition {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 420px;
    width: 300px;
    border-radius: 12px;
    z-index: 0;
}
.imgPosition img {
    filter: brightness(0.6);
    object-fit:contain;
    height: 100%;
    width: 100%;
    transition: var(--transition1);
    cursor: pointer;
    scale: 1.9;
    transform: translate(-14px, 9px);
}
.textbox {
    position: relative;
    width: 60%;
    height: 100%;
}
.textcenter {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 70%;
}
.textcenter h1, h2 {
    font-weight: 700;
    font-size: 30px;
    line-height: 47px;
    color: var(--main-text-color);
}
#hello-text {
    color: var(--link) !important;
    font-size: 45px;
}
#greeting-anime {
    color: var(--link);
}
.textcenter p {
    font-size: 20px;
    line-height: 31px;
    font-weight: 400;
    color: #b8b8b8;
    margin-block: 8px;
}
.textcenter h1, p{
    margin-bottom: -2px;
}
.intro-text {
    font-size: 20px;
    line-height: 31px;
    font-weight: 400;
    color: #b8b8b8;
    margin-block: 12px;
}
.intro-text .highlight {
    color: #d4d4d4;
    font-weight: 700;
}
.animated-bio {
    font-size: 20px;
    line-height: 31px;
    font-weight: 400;
    color: #b8b8b8;
    margin-block: 12px;
    min-height: 31px;
}
.about-text {
    font-size: 20px;
    line-height: 31px;
    font-weight: 400;
    color: #b8b8b8;
    margin-block: 12px;
}
.textcenter svg{
    position: relative;
    top: 4px;
}
#meta-icon{
    fill: #0264d3;
    color: #b8b8b8;
    padding-bottom: 2px;
    transition: var(--transition1);
}
#meta-icon:hover{
    color: var(--link);
}
#fcc-icon{
    padding-bottom: 2px;
    fill: #fff;
    color: #b8b8b8;
    transition: var(--transition1);
}
#fcc-icon:hover{
    color: var(--link);
}
.textcenter button {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.5s ease;
    padding-inline: 12px;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
    margin-block: 12px;
}
.textcenter button a{
    z-index: 2;
    font-size: 23px;
    color: var(--main-text-color);
    font-weight: 800;
    transition: var(--transition1);
}
.textcenter button:hover{
    width: 155px;
    padding-inline: 16px;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
}
.textcenter button:hover a{
    font-size: 18px;
}
.textcenter button::before{
    position: absolute;
    z-index: 1;
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 0;
    border-radius: 50%;
    background-color: var(--btn-color);
    transition: width 0.3s ease-in;
}
.textcenter button:hover::before{
    width: 300%;
}
/* main-wrapper */
.main-wrapper{
    width: 90%;
    max-width: 1200px;
    margin-inline: auto;
}
/* footer */
/* footer */
footer{
    width: 100%;
    min-height: 14vh;  /* ✅ Changed to min-height */
    height: auto;       /* ✅ Allow it to grow */
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--footer);
    border-top: 1px solid transparent;
    padding: 8px 0;    /* ✅ Add padding */
    margin: 0;
}
footer p{
    font-size: 16px;
    width: 100%;
    text-align: center;
    font-weight: 400;
}
/* project sec */
#projects{
    width: 100%;
    overflow: hidden;
}
.main-title{
    text-align: center;
    margin-block: 6px;
}
.main-title p{
    font-size: 16px;
    font-weight: 500;
    color: var(--link);
    margin-top: 8px;
}
.main-title span{
    font-size: 50px;
    font-weight: 700;
}
.description{
    max-width: 700px;
    margin-inline: auto;
    margin-block: 26px;
    padding-inline: 4px;
    line-height: 28px;
    text-align: center;
    font-size: 16px;
    color: var(--gray);
}
.card-wraper{
    width: 100%;
    display: flex;
    gap: 18px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.card{
    box-shadow: var(--box-shadow);
    background-color: var(--box-color);
    padding: 12px;
    width: 320px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition1);
}
.card:hover{
    box-shadow: var(--box-shadow);
    transform: scale(1.01);
}
.projectImg{
    height: 190px;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}
.card h2, p{
    margin-block: 6px;
}
.project-tile{
    font-size: 20px;
}
#viewbtn{
    width: 100%;
    border-radius: 6px;
    border: none;
    transition: var(--transition1);
    background: var(--btn-color);
    margin-block: 2px;
    border: 1px solid transparent;
    cursor: pointer;
}
#viewbtn:hover{
    color: var(--link);
    box-shadow: var(--box-shadow);
    background: transparent;
    border: 1px solid var(--link);
}
#viewbtn a{
    display: block;
    padding-block: 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--main-text-color);
    transition: var(--transition1);
}
#viewbtn:hover a{
    color: var(--link);
}
@media (width <= 950px) {
    .imgbox{
        width: 100%;
    }
    .textbox{
        width: 100%;
    }
    .textcenter{
        left: 50%;
        width: 80%;
    }
    .textcenter button{
        margin-inline: auto;
    }
}
@media (width <= 850px) {
    .imgbox{
        width: 100%;
    }
    .textbox{
        width: 100%;
    }
    #navbar{
        padding-inline: 40px;
    }
    .navIcon{
        display: block;
    }
    .clsoebtn svg{
        display: block;
        transition: var(--transition1);
    }
    .clsoebtn svg:active{
        scale: 0.001;
    }
    .navmenu{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: fixed;
        width: 100%;
        left: -100%;
        height: 100vh;
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        background: var(--header);
        transition: all .3s ease;
        top: 0;
        gap: 32px;
    }
    .navmenu-show{
        left: 0;
    }
    .navmenu a:nth-child(9){
        padding-inline: 18px;
        padding-block: 8px;
        border-radius: 32px;
        font-size: 21px;
    }
    .center{
        left: 50%;
        width: 80%;
    }
    .card-wraper{
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    /* Hide the specific about-text paragraph on mobile */
    .about-text.hide-on-mobile {
        display: none;
    }
    /* Make main image more transparent on mobile for better text visibility */
    .imgPosition img {
        filter: brightness(0.4) opacity(0.5);
    }
}
@media (width <= 700px) {
    .imgbox{
        width: 100%;
    }
}
@media (width <= 550px) {
    .center h1{
        font-size: 44px;
        line-height: 50px;
    }
    .description{
        font-size: 14px;
        line-height: 22px;
    }
    .imgbox{
        width: 100%;
    }
    .svg-icon img {
        width: 120px;
        height: 60px;
        margin: 80px;
    }
    @keyframes Pulse {
        0% {
            box-shadow: 0 0 0 0 rgb(255, 255, 255);
            height: 30px;
            width: 30px;
        }
        80% {
            box-shadow: 0 0 0 3px rgb(125 125 125 / 6%);
            height: 400px;
            width: 400px;
        }
    }
}
@media (width <= 500px) {
    .navIcon{
        right: 22px;
    }
    #navbar{
        padding-inline: 16px;
    }
    .clsoebtn svg{
        right: 25px;
    }
    .darkmode svg{
        left: 0;
    }
    .center h1{
        font-size: 35px;
    }
    .main-title span{
        font-size: 20px;
        text-align: center;
    }
    .main-title p{
        font-size: 15px;
    }
    footer p{
        font-size: 13px;
    }
    .imgbox{
        width: 100%;
    }
    .textcenter h1, h2{
        font-size: 19.5px;
        line-height: 38px;
        max-width: 110%;
        width: 110%;
      }
      .textcenter p{
        font-size: 16px ;
        line-height: 23px;
      }
      .textcenter button {
        font-size: 21px ;
        padding-top: 9px ;
      }
      #author-name-area{
          width: 110%;
        font-size: 27px;
      }
      #hello-text {
        font-size: 32px !important;  /* Smaller greeting on mobile (was 45px on desktop) */
        line-height: 40px;
      }
      #greeting-anime {
        font-size: inherit;  /* Inherits from #hello-text */
      }
      .contact{
        height: 80vh;
    }
    .contact-wrapper h1, .final-h1{
        font-size: 38px;
        margin-top: -11px;
    }
    .final-h1{
        font-size: 38px;
        margin-top: -11px;
        margin-block: 12px;
    }
    .author-final-remarks p{
        width: 100%;
    }
}
@media (width <= 450px) {
    .svg-icon img {
        width: 100px;
        height: 50px;
        margin: 50px;
    }
    @keyframes Pulse {
        0% {
            box-shadow: 0 0 0 0 rgb(255, 255, 255);
            height: 30px;
            width: 30px;
        }
        80% {
            box-shadow: 0 0 0 3px rgb(125 125 125 / 6%);
            height: 300px;
            width: 300px;
        }
    }
}

/* ========================================
   BIO ANIMATION COLOR FIX & FLAG EMOJI STYLING
   ======================================== */

/* Ensure bio animation text matches about-text color */
#bio-anime {
    color: #b8b8b8 !important;
}

/* Ensure Typed.js cursor also matches the text color */
.typed-cursor {
    color: #b8b8b8 !important;
}

/* Pakistani Flag Emoji Styling - Using Twemoji for cross-browser support */
.flag-emoji {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin: 0 4px;
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f1f5-1f1f0.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 1em;
}

/* Hide the actual emoji text since we're using background image */
.flag-emoji::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 0;
}

/* Ensure proper rendering in dark mode */
.dark-Mode #bio-anime {
    color: #b8b8b8 !important;
}

.dark-Mode .typed-cursor {
    color: #b8b8b8 !important;
}
.dark-Mode .header-divider {
    background: #333;
}
/* Auto underline */
#auto-underline a{
        display:inline-block;
        position:relative;
        text-decoration:none
}
#auto-underline a:after{
        content:"";
        position:absolute;
        width:100%;
        transform:scaleX(0);
        height:2px;
        bottom:0;
        left:0;
        background-color:var(--link);
        transform-origin:bottom right;
        transition:transform .25s ease-out
}
#auto-underline a:hover:after{
        transform:scaleX(1);
        transform-origin:bottom left
}
/* ========================================
   BIO ANIMATION EMOJI STYLING - Using Twemoji
   ======================================== */

/* Base emoji styling for all bio animation emojis */
[class^="emoji-"], [class*=" emoji-"] {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    margin: 0 3px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 1em;
}

/* Book emoji 📚 (learner) */
.emoji-book {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4da.svg');
}

/* Hammer emoji 🔨 (builder) */
.emoji-hammer {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f528.svg');
}

/* Eagle emoji 🦅 (freedom seeker) */
.emoji-eagle {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f985.svg');
}

/* Location pin emoji 📍 (Bahawalpur) */
.emoji-location {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4cd.svg');
}

/* Light bulb emoji 💡 (creativity) */
.emoji-bulb {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4a1.svg');
}

/* Hourglass emoji ⏳ (please wait) */
.emoji-hourglass {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/23f3.svg');
}

/* Robot emoji 🤖 (NLP fanatic) */
.emoji-robot {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f916.svg');
}

/* Brain emoji 🧠 (understand humans) */
.emoji-brain {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f9e0.svg');
}

/* Sparkles emoji ✨ (AI) */
.emoji-sparkles {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/2728.svg');
}

/* Fire emoji 🔥 (hurt creativity) */
.emoji-fire {
    background-image: url('https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f525.svg');
}

/* Navigation Links on Homepage */
.home-nav-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.home-nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: #d4d4d4;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Hover effects only on devices that support hover */
@media (hover: hover) {
    .home-nav-links a:hover {
        color: var(--link);
        transform: translateX(10px);
    }
    
    .home-nav-links a:hover::before {
        transform: scale(1.2);
    }
}

/* Active/touch state for mobile devices */
.home-nav-links a:active {
    color: var(--link);
    transform: translateX(5px);
}

.home-nav-links a::before {
    margin-right: 12px;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.home-nav-links a:nth-child(1)::before {
    content: '🔨'; /* What Have I Worked On */
}

.home-nav-links a:nth-child(2)::before {
    content: '⚙️'; /* Technologies I Work With */
}

.home-nav-links a:nth-child(3)::before {
    content: '✍️'; /* My Writings */
}

.home-nav-links a:nth-child(4)::before {
    content: '👤'; /* More About Me */
}

/* Footer Social Links */
.footer-content {
    height: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Hover effects only on devices that support hover */
@media (hover: hover) {
    .footer-social a:hover {
        border-color: var(--link);
        transform: translateY(-3px);
    }
    
    .footer-social a:hover svg {
        fill: var(--link);
    }
}

/* Active/touch state for mobile */
.footer-social a:active {
    border-color: var(--link);
    transform: scale(0.95);
}

.footer-social a:active svg {
    fill: var(--link);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

.footer-text {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
}

@media (width <= 600px) {
    .home-nav-links {
        width: 100%;
    }
    
    .home-nav-links a {
        width: 100%;
        font-size: 16px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    #hello-text {
        font-size: 36px !important;  /* Medium size for small tablets */
        line-height: 44px;
    }
}

/* Works Page Specific Fixes */
#projects {
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.card-wraper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure projects are visible */
.main-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* Additional fixes for footer background consistency */
body {
    background: var(--body-color);
    margin: 0;
    padding: 0;
}

.content-wrapper {
    background: var(--body-color);
}

/* Ensure footer sticks properly without background conflicts */
footer {
    margin: 0;
    padding-bottom: 0;
    position: relative;
}

/* Fix for mobile navbar transparency */
@media (width <= 850px) {
    .navmenu {
        background: var(--header);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }
}

/* Remove any extra space below footer */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

footer {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.content-wrapper {
    padding-bottom: 0;
    margin-bottom: 0;
}
/* ========================================
   ABOUT PAGE STYLES
   ======================================== */


/* ========================================
   ABOUT PAGE - UPDATED WITH SIDEBAR LAYOUT
   ======================================== */

#about-page {
    min-height: 100vh;
    padding: 80px 160px 80px;
}

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

/* Page Header */
.about-header {
    margin-bottom: 40px;
}

.about-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;

}
.about-header hr {
    border: 0;
    border-top: 2px solid var(--border); /* Adjust the thickness of the line */
    margin: 20px 0; /* Space above and below the line */
    width: 100%; /* Adjust the width of the line */
    margin-left: auto;
    margin-right: auto; /* Center the line */
}


/* About Main Layout - Two Column for Large Devices */
.about-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Large Device Layout - Profile Sidebar + Content */
@media (width >= 900px) {
    .about-main-layout {
        grid-template-columns: 350px 1fr;
        gap: 50px;
        align-items: start;
    }
}

/* Profile Sidebar for Large Devices */
.about-profile-sidebar {
    background: var(--box-color);
    border-radius: 16px;
    padding: 35px;

    position: sticky;
    top: 120px;
    text-align: center;
}

/* Hide profile sidebar on small/medium devices */
@media (width < 900px) {
    .about-profile-sidebar {
        display: none;
    }
}

/* Sidebar Profile Image */
.sidebar-profile-image {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.sidebar-profile-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

/* Sidebar Profile Info */
.sidebar-profile-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.sidebar-profile-title {
    font-size: 16px;
    margin-bottom: 12px;
}

/* Sidebar Social Links */
.sidebar-profile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sidebar-profile-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--body-color);
}

.sidebar-profile-social a:hover {
    transform: translateY(-2px);
}

.sidebar-profile-social a:hover svg {
    fill: var(--link); /* Change the color of SVG on hover */
}

.sidebar-profile-social svg {
    width: 28px;
    height: 28px;
    fill: var(--text-color); /* Normal color of the SVG */
    transition: fill 0.3s ease;
}

/* Profile Card - Mobile/Tablet Layout */
.about-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--box-color);
    margin-bottom: 6px;
  
}

/* Hide profile card on large devices (use sidebar instead) */
@media (width >= 900px) {
    .about-profile {
        display: none;
    }
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
   
}

.profile-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.profile-title {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 15px;
}

.profile-social {
    display: flex;
    gap: 6px;
}

.profile-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;

    transition: all 0.3s ease;
}

.profile-social a:hover {
    border-color: var(--link);
    transform: translateY(-3px);
}

.profile-social a:hover svg {
    fill: var(--link);
}

.profile-social svg {
    width: 180px;
    height: 180px;
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

/* About Content */
.about-content {
    color: var(--text-color);
    line-height: 1.8;
}

.about-intro {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-section {
    margin-bottom: 20px;
}

.about-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-section p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-section ul li {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.7;
    list-style-type: disc;
}

.about-section ul li strong {
    color: var(--text-color);
    font-weight: 600;
}
.about-section a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.about-section a:hover {
    border-bottom-color: var(--link);
}

/* Interests List */


/* Inline Links */
.inline-link {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.inline-link:hover {
    border-bottom-color: var(--link);
}

/* Divider */
.about-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 50px 0 30px;
}

/* Footer Social Links */
.about-footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.about-footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.about-footer-social a:hover {
    border-color: var(--link);
    transform: translateY(-3px);
}

.about-footer-social a:hover svg {
    fill: var(--link);
}

.about-footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

/* Responsive Design for About Page */
@media (width <= 768px) {
    .about-header h1 {
        font-size: 36px;
    }

    .about-profile {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .profile-image img {
        width: 100px;
        height: 100px;
    }

    .profile-info h3 {
        font-size: 24px;
    }

    .profile-title {
        font-size: 16px;
    }

    .profile-social {
        justify-content: center;
    }

    .about-section h2 {
        font-size: 24px;
    }

    .about-intro,
    .about-section p,
    .about-section ul li {
        font-size: 15px;
    }
        footer {
        min-height: auto;
        height: auto;
        padding: 30px 20px;
    }
    
    .footer-content {
        width: 100%;
        margin-top: 0;
        padding: 0 10px;
    }
}

@media (width <= 480px) {
    #about-page {
        padding: 80px 15px 60px;
    }

    .about-header h1 {
        font-size: 32px;
    }

    .about-profile {
        padding: 20px;
    }

    .profile-image img {
        width: 180px;
        height: 180px;
    }

    .profile-social a {
        width: 32px;
        height: 32px;
    }

    .profile-social svg {
        width: 22px;
        height: 22px;
    }

    .about-section h2 {
        font-size: 22px;
    }

    .about-footer-social a {
        width: 38px;
        height: 38px;
    }

    .about-footer-social svg {
        width: 18px;
        height: 18px;
    }
}
/* ========================================
   FIX FOR AOS (Animate On Scroll) - Make content visible even if AOS not initialized
   ======================================== */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* ========================================
   WORKS PAGE - NEW DESIGN
   ======================================== */

.works-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* Works Header */
.works-header {
    margin-bottom: 60px;
}

.works-header h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.works-subtitle {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    margin-bottom: 30px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

/* 2 columns on large devices */
@media (width >= 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        column-gap: 30px;
    }
}

/* Project Card */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--box-color);
    border: 1px solid var(--border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Project Content */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.project-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--link);
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}

/* Tech Stack */
.project-tech {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--box-color);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--link);
    color: var(--main-text-color);
    border-color: var(--link);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    transition: gap 0.3s ease;
    width: fit-content;
}

.project-link:hover {
    gap: 10px;
}

.project-link.secondary {
    color: var(--gray);
}

.project-link.secondary:hover {
    color: var(--link);
}

/* Responsive Design for Works Page */
@media (width <= 768px) {
    .works-container {
        padding: 60px 20px 40px;
    }

    .works-header {
        margin-bottom: 40px;
    }

    .works-header h1 {
        font-size: 42px;
    }

    .works-subtitle {
        font-size: 16px;
    }

    .projects-grid {
        gap: 50px;
    }

    .project-title {
        font-size: 28px;
    }

    .project-description {
        font-size: 15px;
    }

    .tech-tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    .project-link {
        font-size: 15px;
    }
}

@media (width <= 480px) {
    .works-container {
        padding: 80px 16px 30px;
    }

    .works-header {
        margin-bottom: 32px;
    }

    .works-header h1 {
        font-size: 36px;
    }

    .works-subtitle {
        font-size: 15px;
    }

    .projects-grid {
        gap: 40px;
    }

    .project-title {
        font-size: 24px;
    }

    .project-description {
        font-size: 14px;
    }

    .project-link {
        font-size: 14px;
    }

    .project-links {
        gap: 12px;
    }
}

/* Tablet Landscape */
@media (width >= 769px) and (width <= 1024px) {
    .works-container {
        max-width: 800px;
        padding: 70px 30px 50px;
    }

    .works-header h1 {
        font-size: 48px;
    }

    .project-title {
        font-size: 30px;
    }
}

/* Large Desktop */
@media (width >= 1400px) {
    .works-container {
        max-width: 1000px;
    }

    .works-header h1 {
        font-size: 64px;
    }

    .project-title {
        font-size: 36px;
    }

    .project-description {
        font-size: 17px;
    }
}