@font-face {
    font-family: 'iran-yekan-400';
    src: local('iran-yekan-400'), url('fonts/iran-yekan-400.woff2') format('woff2');
    font-display: swap;
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}body {
    font-family: 'iran-yekan-400', 'Poppins', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #24243e 100%);
    color: #f0f3ff;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}body.lang-en {
    font-family: 'Poppins', 'iran-yekan-400', system-ui, sans-serif;
}

.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #24243e 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
    opacity: 1;
    visibility: visible;
}

.landing-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.landing-card {
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 550px;
    width: 90%;
    background: rgba(20, 25, 55, 0.7);
    backdrop-filter: blur(18px);
    border-radius: 60px;
    border: 1px solid rgba(0, 200, 255, 0.4);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    animation: cardPop 0.7s ease forwards;
}

@keyframes cardPop {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.landing-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffd700;
    animation: pulseGlowLanding 2.2s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes pulseGlowLanding {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
        border-color: #ffd700;
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 215, 0, 0.15);
        border-color: #ffea80;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        border-color: #ffd700;
    }
}

.landing-greeting {
    font-size: 1rem;
    color: #7ec8ff;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    animation: slideFadeLanding 0.6s ease 0.1s backwards;
}

.landing-name {
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffe6b3, #ffdd00, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    animation: slideFadeLanding 0.6s ease 0.2s backwards;
}

.landing-title {
    color: #cce7ff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    animation: slideFadeLanding 0.6s ease 0.35s backwards;
}

.landing-bio {
    color: #b8d8ff;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 400px;
    margin: 1rem auto;
    animation: slideFadeLanding 0.6s ease 0.5s backwards;
}

@keyframes slideFadeLanding {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
    animation: slideFadeLanding 0.6s ease 0.65s backwards;
}

.landing-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.4);
}

.landing-footer {
    margin-top: 1.5rem;
    font-size: 0.65rem;
    opacity: 0.5;
    color: #bbd9ff;
    animation: slideFadeLanding 0.6s ease 0.8s backwards;
}

@media (max-width: 500px) {
    .landing-card {
        padding: 1.8rem 1.2rem;
    }
    .landing-name {
        font-size: 1.4rem;
    }
    .landing-avatar {
        width: 100px;
        height: 100px;
    }
    .landing-bio {
        font-size: 0.8rem;
    }
}
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    letter-spacing: 0.5px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.download-btn:active {
    transform: translateY(0);
}

body.lang-en .download-btn {
    font-family: 'Poppins', monospace;
}

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}.resume-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0.8rem auto;
    padding: 0 0.8rem;
}.resume-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1rem;
    align-items: start;
}.main-content {
    background: rgba(20, 25, 55, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 150, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeSlide 0.6s ease;
}.sidebar-right {
    position: sticky;
    top: 0.8rem;
    background: rgba(10, 12, 35, 0.75);
    backdrop-filter: blur(12px);
    padding: 1rem 0.6rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(0, 200, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}.menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}.menu-btn {
    background: rgba(15, 20, 45, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.3);
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.25s ease;
    color: #c4e0ff;
    width: 100%;
    letter-spacing: 0.5px;
}.menu-btn:hover {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    transform: translateX(-3px);
    border-color: #ff6b4a;
    box-shadow: 0 0 12px rgba(255, 75, 43, 0.5);
}.menu-btn.active {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    border-color: #00e0ff;
    box-shadow: 0 0 12px rgba(0, 114, 255, 0.5);
}.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.3rem 0;
    flex-wrap: wrap;
}.social-icon {
    text-decoration: none;
    font-size: 1.2rem;
    color: #b8dcff;
    background: rgba(0, 150, 255, 0.12);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.25s;
    border: 1px solid rgba(0, 200, 255, 0.3);
}.social-icon i,
.social-icon svg,
.social-icon img {
    width: 18px;
    height: 18px;
    color: inherit;
    fill: currentColor;
}.social-icon:hover {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    transform: scale(1.1) rotate(5deg);
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 210, 0, 0.5);
}.lang-switch {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
}.lang-btn {
    background: rgba(0, 100, 200, 0.2);
    border: 1px solid rgba(0, 200, 255, 0.4);
    padding: 4px 10px;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    color: #cae9ff;
    transition: 0.2s;
}.lang-btn.active {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    border-color: #00e0ff;
    box-shadow: 0 0 8px rgba(0, 150, 255, 0.5);
}.lang-btn:hover {
    background: #ff416c;
    border-color: #ff6b4a;
}.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
    padding-bottom: 1rem;
}.profile-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}.avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}.avatar-placeholder {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #2b2b5c, #1a1a3e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 2px dashed #ffd966;
    color: #ffdf99;
}.name-title h1 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, #ffe6b3, #ffdd00, #ffe6b3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}body.lang-en .name-title h1 {
    background: linear-gradient(90deg, #ffffff, #ffdd00, #ffe6b3);
    -webkit-background-clip: text;
    background-clip: text;
}.title-tag {
    color: #7ec8ff;
    font-size: 0.8rem;
    font-weight: 400;
}.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
    background: rgba(0, 20, 40, 0.5);
    border-radius: 40px;
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    color: #cce7ff;
    border: 1px solid rgba(0, 200, 255, 0.2);
    width: fit-content;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}.contact-link,
.contact-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    text-decoration: none;
    color: #cce7ff;
    transition: all 0.2s ease;
}.contact-link:hover {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}#contact-fa .contact-link[href^="tel:"] {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-flex;
}body.lang-fa .contact-link {
    direction: ltr;
    unicode-bidi: embed;
}@media (max-width: 600px) {
    .contact-details {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
        width: 100%;
    }    .contact-link,
    .contact-text {
        white-space: normal;
        word-break: break-all;
    }
}body.lang-en .title-tag {
    font-family: 'Poppins', monospace;
    letter-spacing: normal;
}.section-card {
    margin-bottom: 1.6rem;
    scroll-margin-top: 80px;
}.section-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    padding-right: 10px;
    color: #ffe6b3;
}body:not(.lang-en) .section-card h2 {
    border-right: 3px solid #ffb347;
}body.lang-en .section-card h2 {
    border-left: 3px solid #ffb347;
    padding-left: 10px;
    padding-right: 0;
}.skill-item {
    margin-bottom: 0.8rem;
}.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #ffedcc;
}.skill-bar-bg {
    background: #2a2a4a;
    border-radius: 20px;
    height: 5px;
    overflow: hidden;
}.skill-bar {
    background: linear-gradient(90deg, #f7971e, #ffd200);
    width: 0%;
    height: 5px;
    border-radius: 20px;
    transition: width 0.8s ease;
    box-shadow: 0 0 6px #ffb347;
}.exp-item {
    background: rgba(0, 50, 100, 0.2);
    padding: 0.7rem;
    border-radius: 18px;
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
    transition: 0.2s;
}body:not(.lang-en) .exp-item {
    border-left: 2px solid #ffb347;
}body:not(.lang-en) .exp-item:hover {
    transform: translateX(4px);
    border-left-color: #ffd700;
}body.lang-en .exp-item {
    border-right: 2px solid #ffb347;
}body.lang-en .exp-item:hover {
    transform: translateX(-4px);
    border-right-color: #ffd700;

}

footer {
    margin-top: 1.2rem;
    font-size: 0.6rem;
    opacity: 0.6;
    text-align: center;
    color: #bbd9ff;
    font-family:monospace;
}@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }    to {
        opacity: 1;
        transform: translateX(0);
    }
}.fade-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s;
}.fade-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}@media (max-width: 750px) {
      .resume-wrapper {
        margin: 0.5rem auto;
        padding: 0 0.5rem;
    }
    .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    letter-spacing: 0.5px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.download-btn:active {
    transform: translateY(0);
}

body.lang-en .download-btn {
    font-family: 'Poppins', monospace;
}
    .resume-layout {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .main-content {
        padding: 1.2rem;
        border-radius: 24px;
        backdrop-filter: blur(6px);
    }

    .sidebar-right {
        position: relative;
        top: 0;

        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;

        padding: 0.7rem;
        border-radius: 20px;
        gap: 0.6rem;
        order: -1;

        backdrop-filter: blur(6px);
    
    }    .menu-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }    .menu-btn {
        width: auto;
        padding: 5px 12px;
        font-size: 0.7rem;
    }    .menu-btn:hover {
        transform: translateY(-2px);
    }    body:not(.lang-en) .exp-item:hover {
        transform: translateX(0);
    }    body.lang-en .exp-item:hover {
        transform: translateX(0);
    }    .profile-row {
        flex-direction: column;
        align-items: stretch;
    }   .avatar,
    .avatar-placeholder {
        width: 65px;
        height: 65px;
    }    .name-title h1 {
        font-size: 1.25rem;
    }    .title-tag {
        font-size: 0.7rem;
    }    .section-card h2 {
        font-size: 1.1rem;
    }    .social-icons {
        gap: 0.5rem;
    }    .social-icon {
        width: 30px;
        height: 30px;
     
        font-size: 1rem;
    }
     .contact-details {
        justify-content: center;
        max-width: fit-content;
    }
}@media (max-width: 480px) {
    .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    letter-spacing: 0.5px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.download-btn:active {
    transform: translateY(0);
}

body.lang-en .download-btn {
    font-family: 'Poppins', monospace;
}
    .main-content {
        padding: 1rem;
    }    .name-title h1 {
        font-size: 1.1rem;
    }    .avatar,
    .avatar-placeholder {
        width: 55px;
        height: 55px;
    }    .menu-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}
html[lang="en"] .exp-item span,
html[lang="en"] .exp-item p,
html[lang="en"] .skill-label span:first-child,
html[lang="en"] #experience span[id$="-en"],
html[lang="en"] #education span[id$="-en"],
html[lang="en"] #experience p[id$="-en"],
html[lang="en"] #education p[id$="-en"] {
    font-family: 'Poppins', 'Segoe UI', 'Arial', monospace !important;
}

html[lang="en"] .skill-label span:last-child {
    font-family: 'Poppins', 'Segoe UI', 'Arial', monospace !important;
    direction: ltr !important;
    display: inline-block;
}




/* html[lang="en"] .contact-link,
html[lang="en"] .contact-text {
    font-family: 'Poppins', 'Segoe UI', monospace !important;
} */
