:root{
    --background-color: #000000;
    --primary-color: #393E46;
    --secondary-color: #948979;
    --foreground-color: #DFD0B8;
    --font-family: 'Arial, sans-serif';
}

body{
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--foreground-color);
    font-family: var(--font-family);
    overflow-x: hidden;
    max-width: 100vw;
}

.main-img{
    position: absolute;
    height: 100vh;
    display: flex;
    top: 0;
    left: 0;
    justify-content:flex-start;
    align-items: center;
    overflow: hidden;
    z-index: -1;
}

.main-img img{
    width: 65vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0.9;
}

.main-img .img-title{
    width: 30vw;
    padding-left: 50px;
    font-size: 2em;
    transform: translateX(-25%);
}
.img-title h2{
    margin: 0;
    padding: 0;
    color: var(--foreground-color);
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
.img-title p{
    font-size: 32px;
    line-height: 1.5em;
    height: 48px;
    padding: 0;
    margin: 0;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    width: max-content;
}


header{
    background-color: transparent;
    display: flex;
    flex-direction: row;
    padding: 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    height: 50px;
    z-index: 10;
}
header h1{
    margin: 0;
    font-size: 2.5em;
}
header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50vw;
}
header nav{
    width: 25vw;
    margin-left: 15vw;
    text-align: right;
    justify-items: center;
    justify-self: center;
    align-items: center;
    margin-top: 5px;
}
header nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li a{
    text-decoration: none;
    color: var(--foreground-color);
    font-size: 1.2em;
}
header nav ul li{
        transition: all 0.3s;

}
header nav ul li:hover{
    transform: scale(1.4);
    text-decoration: underline;
}

header nav ul li:hover+li{
    transform: perspective(800px) rotateY(45deg);
}

header nav ul li:has(+li:hover){
    transform: perspective(800px) rotateY(-45deg);
}


section{
    min-height: 100vh;
    max-width: 100vw;
    padding: 20px 20px 20px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}
section h2{
    margin-top: 0;
    color: var(--foreground-color);
    font-size: 36px;
}



.fadein {
    animation: fadeIn both;
    animation-timeline: view();
    animation-range: entry 20% cover 80%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.blurout {
    filter: blur(0px);
    animation: blurOut 1s forwards;
    animation-timeline: view();
    animation-range: entry 130% exit 160%;
}
@keyframes blurOut {
    from { filter: blur(0px); }
    to { filter: blur(15px);}
}
.title{
    position: relative;
    font-size: 36px;
    color: var(--foreground-color);
    margin-bottom: 20px;
    text-align: center;
}
.title::after {
    content: '';
    display: block;
    width: 60px;
    height: 40px;
    background-color: transparent; 
    border-top: #DFD0B8 2px solid;
    border-bottom: #DFD0B8 2px solid;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    animation: titleline 2s linear both alternate infinite;
}

@keyframes titleline {
    0% {
        left:0;
        width: 4px;
    }   
    50% {
        left: calc(50%);
        width: 60px;
    } 
    100% {
        left: 100%;
        width: 4px;
    }
}


.about{
    width: 100%;
    height: 95%;
    max-height: 95%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.about-img{
    width: 50%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.about-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transform: translateY(-40px);
}

.about-text-holder{
    width: 50%;
    height: max-content;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}


.about-text{
    align-items: center;
    display: grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 0px;
}
.fadeinAbout{
    animation: fadeInAbout both;
    animation-timeline: view(30% 10%);
}
@keyframes fadeInAbout {
    0%{
        filter: blur(3px);
        transform: translateY(40px);
    }
    40%{
        filter: blur(0px);
        transform: translateY(0);
    }
    60%{
        filter: blur(0px);
        transform: translateY(0);
    }
    100%{
        filter: blur(3px);
        transform: translateY(40px);
    }
}


.about-text p{
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1.6em;
    text-align: justify;
    margin-top: 0;
}
.about-text div h3{
    margin-top: 0;
    font-size: 24px;
    font-style: italic;
    color: var(--foreground-color);
}

.div1 { 
    grid-area: 1 / 1 / 2 / 2;
}
.div2 {
    grid-area: 1 / 2 / 2 / 3; 
    }
.div3 { 
    grid-area: 2 / 1 / 3 / 3;
}
.div3 p{
    font-size: 20px;
    color: var(--primary-color);
    line-height: 1.6em;
    
}   
.div4 { 
    grid-area: 3 / 1 / 4 / 2; 
}
.div5 { 
    grid-area: 3 / 2 / 4 / 3; 
}



.autoShow{
    animation: autoShowAnim 1s forwards;
    animation-timeline: view(20% 0%);
}
@keyframes autoShowAnim {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

.autoShowImg{
    animation: autoShowImg;
    animation-timeline: view(100% 0%);
}
@keyframes autoShowImg {
    from { 
        opacity: 0;
        transform: translateY(100px) scale(.5);
        filter: brightness(.1) saturate(1.2) contrast(1.5) blur(10px);
    }
    to { 
        filter: none;
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
    
}


.education{
    display: flex;
    min-width: 50vw;
    max-width: 50vw;
    justify-content: center;
    justify-items: center;
    padding: 10px 100px;
    margin: 0 10vw;
    flex-wrap: wrap;
}
.edu-info-holder{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 50vw;
    max-width: 50vw;
    height: max-content;
}

.edu-info{
    min-width: 50%;
    max-width: 50%;
}

.edu-info h3{
    color: var(--primary-color);
    font-size: 20px;

}
.edu-info h2{
    color: var(--foreground-color);
}
.edu-info p{
    color: var(--secondary-color);
    font-size: 16px;
    line-height: .95em;
    text-align: justify;
    margin-top: 0;
    padding-right: 20px;
}

.edu-infoShow{
    animation: eduShowAnim both;
    animation-timeline: view(40% 20%);
}

@keyframes eduShowAnim {
    0%{
        filter: blur(4px);
        transform: translateY(40px) scale(.75);
    }
    30%{
        filter: blur(0px);
        transform: translateY(0px) scale(1);
    }
    70%{
        filter: blur(0px);
        transform: translateY(0px) scale(1);
    }
    100%{
        filter: blur(4px);
        transform: translateY(-40px) scale(.75);
    }
}

.logo{
    width: 200px;
    height: 200px;
    object-fit: cover;
}
.bafa-logo{
    height: 200px;
    width: auto;
    object-fit: contain;
}

.edu-img{
    min-width: 50%;
    max-width: 50%;
    height: 200px;
    object-fit: contain;
    padding: 0;
}
.edu-img:nth-child(odd){
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 50px;

}
.edu-img:nth-child(even){
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 50px;

}

.card-holder{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 60%;
    max-width: 67%;
    padding: 20px;
}

.card{
    display: flex;
    flex-direction: row;
    width: 308px;
    height: 308px;
    background-color: var(--primary-color);
    position: relative;
    border-radius: 10px;

}


.cardshow{
    /* Use a single class without parameters; set a default view timeline and optional range */
    animation: cardShowAnim both;
    animation-timeline: view();
    animation-range: entry 50% cover 80%;
}


@keyframes cardShowAnim {
    0%{
        filter: blur(4px);
        transform: translateY(80px) scale(.5);
    }
    40%{
        filter: blur(0px);
        transform: translateY(0px) scale(1);
    }
    70%{
        filter: blur(0px);
        transform: translateY(0px) scale(1);
    }
    100%{
        filter: blur(4px);
        transform: translateY(-40px) scale(.5);
    }
}


.card-img{
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    object-fit: cover;
    overflow: hidden;
    border: 4px solid var(--foreground-color);
    border-radius: 10px;
}
.card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-title{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 50px;
    width: 150px;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 0;
    padding: 4px;
    border-top-left-radius: 10px;
    border-top: 4px solid var(--foreground-color);
    border-left: 4px solid var(--foreground-color);
}

.card-title h2{
    margin: 0;
    padding: 0;
    color: var(--background-color);
    font-weight: 800;
    font-style: italic;
    font-size: 24px;
    background-color: var(--foreground-color);
    height: 45px;
    width: 146px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.card-title::after, .card-title::before{
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
}

.card-title::before{
    background-color:transparent;
    right:0;
    top:-10px;
    border-bottom-right-radius: 5px;
    box-shadow: 2px 2px 0px 2px var(--background-color)
}

.card-title::after{
    background-color:transparent;
    left:-10px;
    bottom:0;
    border-bottom-right-radius: 5px;
    box-shadow: 2px 2px 0px 2px var(--background-color)
}

.card .bottom1, .card .bottom2{
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: transparent;
}

.card .bottom1{
    right: 162px;
    bottom:4px;
    z-index: 1;
    border-bottom-right-radius: 3px;
    box-shadow: 2px 2px 0px 2px var(--foreground-color)
}

.card .bottom2{
    right:4px;
    bottom: 62px;
    z-index: 1;
    border-bottom-right-radius: 3px;
    box-shadow: 2px 2px 0px 2px var(--foreground-color)
}
.card-info{
    position: absolute;
    bottom: 70px;
    left: 10px;
    right: 10px;
    padding: 10px;
    width: calc(100% - 20px);
    background-color: var(--background-color);
    color: var(--foreground-color);
    font-size: 14px;
    border-radius: 5px;
    border: var(--foreground-color) 4px solid;
    opacity: 0;
    transform: scale(0) translateY(200%);
    transition: all 0.6s ease-in-out;
}

.card:hover .card-info:nth-child(odd){
    opacity: 1;
    transform: scale(1) translateY(0) translateX(-328px);
}
.card:hover .card-info.right{
    opacity: 1;
    transform: scale(1) translateY(0) translateX(300px);
}

.radial-logo{
    width: 150px;
    height: 150px;
    margin-top: 20px;
    border-radius: 50px;
    overflow: hidden;
    animation: autoRotate;
    animation-timeline: view();
}

@keyframes autoRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}



.radial-logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer{
    background-color: var(--background-color);
    color: var(--foreground-color);
    text-align: center;
    padding: 20px;
    font-size: 14px;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.conduct-me{
    color: var(--secondary-color);
    font-size: 16px;
    line-height: 1.6em;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.connect-me{
    color: var(--foreground-color);
    font-size: 48px;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    width: max-content;
}
.connect-me::after{
    position: absolute;
    content: '';
    display: block;
    width: 80px;
    height: 50px;
    background-color:#dfd0b86b;
    top:0;
    left:0;
}

.conncet-ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 50px;
    position: relative;
    justify-content: center;
    align-items: center;
}

.conncet-ul li{
    position: relative;
    list-style: none;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s;
    cursor: pointer;
}

.conncet-ul li:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 30px;
    box-shadow: 0 0 0 10px var(--foreground-color),
               0 0 0 20px var(--background-color),
               0 0 0 22px var(--foreground-color);
    box-sizing: border-box;
    transition: all 0.6s;
}
.conncet-ul li:hover:before{
    inset: 15px;
}
.conncet-ul li:after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--background-color);
    transform: rotate(45deg); 
    transition: all 0.6s;
}
.conncet-ul li:hover:after{
    transform: rotate(0deg);
}

.conncet-ul li a{
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.conncet-ul li a i{
    font-size: 2.5em;
    transition: all 0.6s;
    opacity: 1;
    color: var(--foreground-color);
}
.conncet-ul li:hover a i{
    transform: translateY(-40%);
}
.conncet-ul li a span{
    position: absolute;
    font-family: sans-serif;
    color: var(--foreground-color);
    font-size: 16px;
    opacity: 0;
    transition: all 0.6s;
    transform: scale(0) translateY(200%);
}

.conncet-ul li:hover a span{
    opacity: 1;
    transform: scale(1) translateY(100%);
}

.conncet-ul li:hover a i,
.conncet-ul li a span {
   filter: drop-shadow(0 0 20px var(--foreground-color)) drop-shadow(0 0 40px var(--foreground-color)) drop-shadow(0 0 60px var(--foreground-color));
}

/* Mobile / responsive styles (appended cleanly at end) */
@media (max-width: 600px) {
    :root{
        --font-size-base: 16px;
    }

    body{
        font-size: var(--font-size-base);
        line-height: 1.4;
    }

    header{
        padding: 10px;
        height: auto;
        align-items: center;
    }

    header h1{
        font-size: 1.4em;
    }

    header .container{
        display: none;
    }

    /* hide desktop nav for small screens (use a mobile nav/hamburger separately if desired) */
    header nav{
        font-size: .5em;
    }

    .main-img{
        position: relative;
        height: auto;
        min-height: 50vh;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
    }

    .main-img img{
        width: 100vw;
        height: 50vh;
        object-fit: cover;
        opacity: 1;
    }
    .blurout{
        animation-range: exit 40%;
    }
    .main-img .img-title{
        width: 100vw;
        padding-left: 16px;
        font-size: 1.1em;
        transform: translateX(0);
        bottom: 12px;
        position: relative;
    }

    .img-title p{
        font-size: 18px;
        line-height: 1.4em;
        white-space: normal;
        overflow: visible;
        border-right: none;
        width: 100%;
        height: auto;
    }

    .title{ font-size: 22px; }

    section{ 
        min-height: auto;
        padding: 12px; 
    }

    .about{
        flex-direction: column;
        padding: 12px;
        gap: 12px;
        align-items: stretch;
    }

    .about-img, .about-text-holder{
        width: 100%;
        padding: 8px 0;
    }

    .about-img img{ transform: translateY(0); height: auto; }

    .about-text{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-column-gap: 0;
        grid-row-gap: 12px;
    }
    .div1, .div2, .div3, .div4, .div5{
        grid-area: auto;
    }

    .about-text p{ font-size: 15px; }

    .education, .edu-info-holder, .edu-info{
        min-width: auto;
        max-width: 100%;
        width: 100%;
        padding: 8px 12px;
        margin: 0;
        flex-direction: column;
    }

    .conncet-ul{ gap: 22px; }
    .conncet-ul li{ width: 64px; height: 64px; }
    .conncet-ul li a i{ font-size: 1.8em; }

    .connect-me{ font-size: 32px; }

    footer{ padding: 24px; height: auto; }

    /* reduce/disable hover effects which are not ideal on touch devices */
    header nav ul li:hover,
    header nav ul li:hover+li,
    header nav ul li:has(+li:hover),
    header nav ul li{
        transform: none !important;
    }
    .card:hover .card-info:nth-child(odd){
        transform: scale(1) translateY(0) translateX(0);
    }
    .card:hover .card-info.right{
        transform: scale(1) translateY(0) translateX(0px);
    }
    .conncet-ul li:before{ inset: 20px; }
    .conncet-ul li:hover:before{ inset: 12px; }

    /* small-screen friendly spacing for text blocks */
    .about-text div h3{ font-size: 18px; }
    .edu-info h3{ font-size: 18px; }
    .edu-info p{ font-size: 15px; }
}