:root{
    --bg:#0a0a0f;
    --bg-soft:#17171d;
    --panel:#1e1e29;
    --gold:rgba(55, 162, 186, 0.59);
    --ink:#f3efe6;
    --muted:#9b98a8;
    --ring:#3a3748;
  }
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
    color:#eee;
    font-family:Tahoma,Arial,sans-serif;
    background:#0a0a0f;
}
 
.resume{
    height:100vh;
    min-height:0;

    padding:70px 6% 30px;

    position:relative;
    overflow:hidden;
}
.resume:before{
    content:"";
    position:absolute;
    top:-200px;right:-200px;
    width:600px;height:600px;
    background:radial-gradient(circle, rgba(95,168,184,.10), transparent 70%);
    pointer-events:none;
}
 
.resume-head{
    max-width:720px;
    margin: -35px auto 8px ;
    text-align:center;
}
.resume-head h2{
    font-family:serif,Cambria, Cochin, Georgia, Times, 'Times New Roman';
    font-size:44px;
    font-weight:500;
    margin-bottom:16px;
}
.resume-head p{
    color:#aaa;
    font-size:15px;
    line-height:1.6;
}
 
.track-wrap{
    position:relative;
    max-width:1180px;
    margin:0 auto;
}
 
.track{
    display:flex;
    gap:22px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:10px 4px 26px;
 
    scrollbar-width:thin;
    scrollbar-color:rgba(95,168,184,.5) transparent;
}
.track::-webkit-scrollbar{height:6px}
.track::-webkit-scrollbar-thumb{
    background:rgba(95,168,184,.5);
    border-radius:99px;
}
.track::-webkit-scrollbar-track{background:transparent}
 

.t-card{
    flex:0 0 calc(25% - 16.5px);
    scroll-snap-align:start;
 
    background:linear-gradient(145deg,#111,#050505);
    border:2px solid rgba(95,168,184,.25);
    border-radius:12px;
    padding:22px 20px;
    box-shadow:0 0 4px rgba(26, 45, 50, 0.5);
    transition:.25s;
 
    display:flex;
    flex-direction:column;
    min-height:280px;
    cursor:pointer;
}
.t-card:visited{
    color:inherit;
}
.t-card:hover{
    border-color:#5FA8B8;
    box-shadow:0 0 4px rgba(26, 45, 50, 0.5);
    transform:translateY(-2px);
}
 
.t-date{
    font-family:'Courier New',monospace;
    font-size:12px;
    color:#5FA8B8;
    margin-bottom:14px;
    direction:ltr;
    text-align:right;
    unicode-bidi:plaintext;
}
 
.t-card .role{
    font-size:16px;
    font-weight:bold;
    margin-bottom:4px;
}
.t-card .org{
    font-size:13px;
    color:#5FA8B8;
    margin-bottom:12px;
}
.t-card .desc{
    font-size:13.5px;
    line-height:1.9;
    color:#aaa;
    flex-grow:1;
}
 
.t-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:14px;
}
.t-tag{
    direction:ltr;
    font-size:11px;
    padding:4px 10px;
    border:1px solid rgba(95,168,184,.35);
    border-radius:999px;
    color:#ccc;
    background:rgba(95,168,184,.05);
}
.t-thumb{
    width:100%;
    height:120px;
    border-radius:8px;
    overflow:hidden;
    margin-bottom:14px;
    border:1px solid rgba(95,168,184,.25);
    flex-shrink:0;
}
.t-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.25s;
}
.t-card:hover .t-thumb img{
    transform:scale(1.05);
}

@keyframes pulse{
    0%,100%{  box-shadow:0 0 4px rgba(26, 45, 50, 0.5)}
    50%{box-shadow:0 0 4px rgba(26, 45, 50, 0.5)}
}
 
/* دکمه‌های ناوبری کناری */
.nav-btn{
    position:absolute;
    top:calc(50% - 20px);
    width:42px;height:42px;
    border-radius:50%;
    border:2px solid rgba(95,168,184,.4);
    background:rgba(5,5,5,.75);
    backdrop-filter:blur(6px);
    color:#eee;
    font-size:18px;
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;
    transition:.25s;
    z-index:5;
}
.nav-btn:hover{
    border-color:#5FA8B8;
    box-shadow:0 0 4px rgba(26, 45, 50, 0.5);
}
.nav-prev{right:-21px}
.nav-next{left:-21px}
@media(max-width:1000px){
    .t-card{flex:0 0 calc(50% - 11px)}
    .nav-btn{display:none}
}
@media(max-width:560px){
    .resume{padding:70px 5% 90px}
    .resume-head h2{font-size:32px}
    .t-card{flex:0 0 82%}
}
.open-box {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 70px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #5FA8B8;
  border-left: none;

  border-radius: 0 24px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.contact-section{
    width:100%;
    max-width:1000px;
    margin:40px auto 0;
    padding:0 20px;

    display:flex;
    flex-direction:column;
    align-items:center;

    position:relative;
}
.contact-section .eyebrow{
    top: 50px;
    text-align:center;
    color:#5FA8B8;
}
.contact-wrap{
    width:100%;
    min-height:170px;

    display:flex;
    align-items:center;
    justify-content:center;

    position:relative;
}
.contact-text-col{
    width:100%;
    max-width:430px;

    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
}
.contact-text{
    margin:0;
    color:var(--muted);
    font-size:16px;
    line-height:2;

    text-align:center;

    max-width:400px;
}
.social-stack{
    position:absolute;
    right: -10px;

    top:50%;
    transform:translateY(-50%);

    display:flex;
    flex-direction:column;
    gap:16px;

    margin:0;
}
.social-row{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:flex-end;
}
.social-icon{
    flex:0 0 auto;

    width:52px;
    height:52px;

    border-radius:50%;
    border:1px solid var(--ring);

    background:var(--panel);

    display:flex;
    align-items:center;
    justify-content:center;

    color:var(--muted);

    cursor:pointer;
    transition:.25s ease;

    padding:0;
}

.social-icon svg{
    width:22px;
    height:22px;
}

.social-icon:hover{
    border-color:var(--gold);
    color:var(--gold);
}

.social-icon.active{
    border-color:var(--gold);
    background:var(--gold);
    color:#161616;
}
.social-reveal{
    position:absolute;

    top:50%;
    right:64px;

    transform:translateY(-50%);

    display:flex;
    flex-direction:column;
    justify-content:center;

    gap:2px;

    max-width:0;
    opacity:0;

    padding:0;

    border:1px solid transparent;
    border-radius:12px;

    background:var(--panel);

    overflow:hidden;
    white-space:nowrap;

    box-shadow:0 12px 30px -10px rgba(0,0,0,.6);

    z-index:5;

    transition:
        max-width .35s ease,
        opacity .3s ease,
        padding .35s ease,
        border-color .3s ease;
}

.social-reveal.open{
    max-width:230px;

    opacity:1;

    padding:10px 16px;

    border-color:var(--ring);
}

.reveal-label{
    font-size:11px;
    color:var(--muted);
}

.reveal-value{
    font-size:15px;
    margin-right: 20px;
    margin-left: 20px;
    color:var(--ink);
    font-weight:500;

    direction:ltr;
    text-align:right;

    text-decoration:none;

    cursor:pointer;

    transition:color .2s ease;
}

.reveal-value:hover{
    color:var(--gold);
    text-decoration:underline;
}

.contact-character {
    position: fixed;
    left: 117px;
    bottom: 40px;
    width: clamp(140px, 18vw, 280px);
    z-index: 1000;
    pointer-events: none;
}
.contact-character img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .resume {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        box-sizing: border-box;
        padding: 70px 5% 20px;
    }

    .resume-head h2 {
        font-size: 22px;
    }

    .track {
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .t-card {
        flex: 0 0 calc(50% - 4px);
        max-width: calc(50% - 4px);
        box-sizing: border-box;
        padding: 10px 8px;
        min-height: 170px;
    }

    .t-thumb {
        height: 60px;
        margin-bottom: 6px;
    }

    .t-card .role {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .t-card .org {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .t-card .desc {
        font-size: 9.5px;
        line-height: 1.5;
    }

    .t-date {
        font-size: 8.5px;
        margin-bottom: 5px;
    }

    .contact-text {
        width: 90%;
        max-width: 300px;
        font-size: 12px;
        line-height: 1.8;
        box-sizing: border-box;
        text-align:center;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .social-stack {
        position: relative;
        left: 20px;
        right: auto;

        bottom:4px;
        top: auto;

        transform:none;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 14px;
        z-index: 1000;
    }
    /*CHARACTER*/
    .contact-character {
        position: relative;
        right:35%;
        left: auto;
        bottom: 10%;
        top: auto;
        transform: none;
        width: 140px;
        max-width: 35vw;
        margin: 0;
        pointer-events: auto;
        z-index: 1000;
    }
}
@media (max-width: 560px) {
    .open-box{
        width:26px;
        height:48px;
    }
    .open-box span{
        font-size:26px !important;
    }

    .resume {
        padding: 70px 5% 20px;
    }

    .resume-head h2 {
        font-size: 22px;
    }

    .track {
        gap: 8px;
    }

    .t-card {
        flex: 0 0 calc(50% - 4px);
        max-width: calc(50% - 4px);
        padding: 10px 8px;
        min-height: 170px;
    }

    .t-thumb {
        height: 60px;
        margin-bottom: 6px;
    }

    .t-card .role {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .t-card .org {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .t-card .desc {
        font-size: 9.5px;
        line-height: 1.5;
    }

    .t-date {
        font-size: 8.5px;
        margin-bottom: 5px;
    }
}