html {
    scroll-behavior: smooth;
}
*{
    margin: 0;
}
@font-face {
    font-family: 'Berk';
    src: url('../fonts/BerkshireSwash-Regular.woff2') format('woff2'),
         url('../fonts/BerkshireSwash-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Kian';
    src: url('../fonts/Kian.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    margin: 0;
    background:
        linear-gradient(
            #091a1c,
            #091a1c,
            #091a1c,
            #091a1c,
            black
        );
    color: white;
    font-family: sans-serif;
}

.lang-fa {
    font-family: 'Vazirmatn';
}

.fa {
    font-family: 'Kian', sans-serif;
}
.btnfa {
    font-family: 'Kian', sans-serif;
    font-size: 1.3rem;
}
.link-fa {
    font-family: 'Kian', sans-serif;
    font-size: 1.8rem;
}
.h-hotbar {
    min-height: 20px;
    height: auto;
    background-color: rgba(10, 30, 42, 0.6); /* Dark blue/grey background */
    font-family:'Kian' , sans-serif;
    color: lightgray;
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}
.options-top{
    width: auto;
    display:flex;
    flex-direction:row;
    flex-wrap: wrap;
    gap: 5px;
}
.op-contact,.op-mainpage, .op-websites{
    color:lightgray;
    text-decoration:none;
}
.op-contact:hover,.op-mainpage:hover, .op-websites:hover{
    color:rgb(0, 210, 180);
    cursor:pointer;
}
.header-holder{
    width:100%;
    margin: 0;
    padding: 0;
    display:flex;
    justify-content:center;
}
.header{
    margin:0;
    padding: 0;
    width: 99.8%;
    height: 120px;
    background-color:rgb(20, 90, 89);
    display:flex;
    justify-content:center;
    align-items:center;
    border-bottom:5px solid white;
    border-bottom-left-radius:30px;
    border-bottom-right-radius:30px;
    border-left:1px solid rgba(150, 250, 250, 1);
    border-right:1px solid rgba(150, 250, 250, 1);
}
.header-brand{
    direction: ltr;
    display:flex;
    justify-content:center;
    align-items:center;
}
.header-logo{
    width: clamp(60px, 10vw, 100px);
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}
.header-title{
    padding-top:60px;
    padding-left:10px;
    height:100px;
    color:lightgray;
    font-family: 'Berk', sans-serif;
    font-size: clamp(28px, 4vw, 32px);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.1);
}

.lang-switch {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 9999;
}
@media (max-width:700px) {
    .lang-switch {
        top: 100px;
    }
}
#lang-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.portfolio-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    background:
        linear-gradient(
            rgba(10, 15, 30, 0.35),
            /*rgba(10, 15, 30, 1),*/
            #091a1c
        ),
        url("../img/moody-office.jpg") center/cover no-repeat;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    margin-bottom: 2rem;
}

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

.portfolio-content h1 {
    font-family: 'Berk', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.portfolio-content h2 {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.portfolio-content p {
    max-width: 700px;
    line-height: 1.8;
    color: #94a3b8;
}

.about-section,
.skills-section,
.exploring-section {
    padding: 4rem 2rem;
    margin: 4rem auto;
    text-align: center;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    backdrop-filter:blur(12px);
    border-radius: 20px;
    max-width: 80%;
}

.about-section P {
    padding: 0 10%;
}

.exploring-section{
    max-width:1100px;
    margin:0 auto 5rem auto;
    padding:3rem 2rem;
    text-align:center;
}

.exploring-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:1rem;
}

.exploring-grid span{
    padding:14px 20px;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.12);
    transition:.25s ease;
    cursor:default;
}

.exploring-grid span:hover{
    transform:translateY(-4px);
    background:rgba(255,255,255,.08);
    border-color:white;
}


.exploring-section h3,
.about-section h3,
.skills-section h3 {
    font-family: 'Berk', sans-serif;
    font-size: 2rem;
    padding: 10px 0;
    margin-bottom: 3rem;
    background: black;
    border: 1px solid white;
    border-radius: 30px;
}

.lang-fa .exploring-section h3,
.lang-fa .about-section h3,
.lang-fa .skills-section h3 {
    font-family: 'Kian', sans-serif;
}

.skills-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 2rem;
}

.skills-section h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.skill-category {
    margin-bottom: 3rem;
}

.skill-category h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-grid span {
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: white;
    transition: 0.3s ease;
    cursor: default;
}

.skills-grid span:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
}

.featured-work {
    margin-top: 7rem;
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: auto;
}

.work-content {
    display: none;
}

.work-content.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

.work-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.work-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.work-btn.active {
    background: white;
    color: black;
    font-weight: bold;
}

.work-btn:hover {
    transform: translateY(-3px);
}


.slider-wrapper{
    position: relative;
    display:flex;
    align-items:center;
    width: 100%;
}

.work-slider{
    flex: 1;
    width: 100%;
    display:flex;
    gap:20px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding: 0 60px;
    -ms-overflow-style:none;
}

.work-slider::-webkit-scrollbar{
    display:none;
}

.work-card,
.design-preview{
    display: flex;
    flex-direction: column;
    flex:0 0 320px;
    border-radius:18px;
    overflow:hidden;
    text-decoration:none;
    color:white;
    background:rgba(255,255,255,0.04);
    transition:.3s ease;
}

.work-card span{
    padding:14px;
    font-weight:600;
    text-align:center;
}

.work-card img,
.design-preview{
    width:100%;
    height:220px;
    object-fit:cover;
}

.slider-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:50;
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:rgba(0,0,0,0.6);
    color:white;
    font-size:22px;
}


.lang-fa .prev{
    right:0;
    left:auto;
}

.lang-fa .next{
    left:0;
    right:auto;
}

.lang-en .prev{
    left:0;
    right:auto;
}

.lang-en .next{
    right:0;
    left:auto;
}

.work-card:hover,
.design-preview:hover {
    transform: scale(1.04);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 20px;
}


.footer{
    height: 150px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-family: 'Kian', sans-serif;
    font-size: 18px;
}

.dev{
    font-size:45px;
    margin-bottom:10px;
}







/* ============================= */
/* Tablets */
/* ============================= */

@media (max-width: 992px) {

    .portfolio-hero{
        padding:4rem 2rem;
        min-height:auto;
    }

    .profile-pic{
        width:180px;
        height:180px;
    }

    .portfolio-content h1{
        font-size:2.6rem;
    }

    .portfolio-content h2{
        font-size:1.4rem;
    }

    .portfolio-content p{
        max-width:100%;
        font-size:1rem;
    }

    .about-section,
    .skills-section,
    .exploring-section{
        max-width:92%;
        padding:3rem 1.8rem;
    }

    .about-section p{
        padding:0 3%;
    }

    .skills-grid,
    .exploring-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .featured-work{
        padding:4rem 1rem;
    }

    .work-card,
    .design-preview{
        flex:0 0 280px;
    }

}


/* ============================= */
/* Mobile */
/* ============================= */

@media (max-width:768px){

    .portfolio-hero{
        padding:3rem 1.2rem;
    }

    .profile-pic{
        width:150px;
        height:150px;
        margin-bottom:1.5rem;
    }

    .portfolio-content h1{
        font-size:2.2rem;
    }

    .portfolio-content h2{
        font-size:1.2rem;
    }

    .portfolio-content p{
        font-size:.95rem;
        line-height:1.8;
    }

    .about-section,
    .skills-section,
    .exploring-section{
        max-width:95%;
        padding:2.5rem 1rem;
        margin:2.5rem 0.5rem;
    }

    .about-section p{
        padding:0;
        text-align:center;
    }

    .about-section h3,
    .skills-section h3,
    .exploring-section h3{
        font-size:1.6rem;
    }

    .skill-category h4{
        font-size:1.2rem;
    }

    .skills-grid{
        justify-content:center;
        gap:.8rem;
    }

    .skills-grid span,
    .exploring-grid span{
        padding:10px 16px;
        font-size:.9rem;
    }

    .work-tabs{
        flex-wrap:wrap;
        gap:.8rem;
    }

    .work-btn{
        width:100%;
        max-width:280px;
    }

    .work-slider{
        padding:0 45px;
    }

    .work-card,
    .design-preview{
        flex:0 0 250px;
    }

    .work-card span{
        font-size:.9rem;
    }

    .slider-arrow{
        width:40px;
        height:40px;
        font-size:18px;
    }

}


/* ============================= */
/* Small Phones */
/* ============================= */

@media (max-width:480px){

    .portfolio-hero{
        padding:2.5rem 1rem;
    }

    .profile-pic{
        width:120px;
        height:120px;
    }

    .portfolio-content h1{
        font-size:1.9rem;
    }

    .portfolio-content h2{
        font-size:1rem;
    }

    .portfolio-content p{
        font-size:.9rem;
    }

    .about-section,
    .skills-section,
    .exploring-section{
        border-radius:14px;
        padding:2rem .8rem;
    }

    .about-section h3,
    .skills-section h3,
    .exploring-section h3{
        font-size:1.4rem;
    }

    .skills-grid span,
    .exploring-grid span{
        width:100%;
        text-align:center;
        box-sizing:border-box;
    }

    .work-slider{
        padding:0 40px;
        gap:14px;
    }

    .work-card,
    .design-preview{
        flex:0 0 210px;
    }

    .work-card img,
    .design-preview{
        height:170px;
    }

    .slider-arrow{
        width:36px;
        height:36px;
        font-size:16px;
    }

}
