/* ===== تنظیمات فونت ClashDisplay ===== */
@font-face {
    font-family: 'ClashDisplay';
    src: url('/assets/Font/ClashDisplay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('/assets/Font/ClashDisplay-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('/assets/Font/ClashDisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('/assets/Font/ClashDisplay-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('/assets/Font/ClashDisplay-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashDisplay';
    src: url('/assets/Font/ClashDisplay-Extralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* ===== استایل‌های پایه ===== */
* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
body {
    margin: 0px;
    min-height: 100%;
    background-color: #090b10;
    font-family: 'ClashDisplay', 'Roboto-Regular', Helvetica, sans-serif;
}
button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}
a {
    text-decoration: none;
}

.sticky-next-category {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    max-width: calc(100vw - 32px);
    padding: 13px 18px;
    color: #090b10;
    background: #f4f7ff;
    border: 1px solid rgba(244, 247, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    font-weight: 600;
    transform: translateX(-50%);
    transition: transform 0.2s ease, background 0.2s ease;
}

.sticky-next-category:hover {
    background: #dfe7ff;
    transform: translateX(-50%) translateY(-2px);
}

.sticky-next-category span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    #career-section {
        order: 20;
    }

    #projects-section {
        order: 30;
        padding-top: 72px;
    }

    #practice-section {
        order: 40;
    }

    #about-section {
        order: 50;
    }

    #about-content-section {
        order: 60;
    }

    #contact-section {
        order: 70;
    }
}

/* کلاس‌های کمکی */
.gradient-hero {
    background: linear-gradient(135deg, rgba(10, 15, 23, 1) 0%, rgba(11, 35, 59, 1) 48%, rgba(10, 12, 26, 1) 100%);
}
.gradient-card {
    background: linear-gradient(145deg, rgba(77, 94, 255, 1) 0%, rgba(24, 89, 168, 1) 48%, rgba(10, 30, 41, 1) 100%);
}

/* ===== انیمیشن‌ها ===== */

/* 1. انیمیشن ورود Hero Section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-animate {
    animation: fadeInUp 0.8s ease forwards;
}
.hero-animate-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}
.hero-animate-delay-2 {
    animation-delay: 0.3s;
    opacity: 0;
}
.hero-animate-delay-3 {
    animation-delay: 0.5s;
    opacity: 0;
}
.hero-animate-delay-4 {
    animation-delay: 0.7s;
    opacity: 0;
}

/* ===== Hover "Selected work" + Dropdown ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* پل هوایی برای پر کردن فاصله بین لینک و منو */
.nav-dropdown .dropdown-bridge {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 9998;
    pointer-events: auto;
}

.nav-dropdown .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 280px;
    background: #11172a;
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9999 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown .dropdown-menu:hover,
.nav-dropdown:hover .dropdown-bridge ~ .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    color: #f4f7ff;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 12px;
}
.nav-dropdown .dropdown-menu a:hover {
    background: rgba(111, 150, 255, 0.1);
    color: #ffffff;
}
.nav-dropdown .dropdown-menu .project-count {
    color: #6f96ff;
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.7;
    flex-shrink: 0;
}
.nav-dropdown .dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 16px;
}
.nav-dropdown .dropdown-title {
    padding: 6px 20px 8px;
    color: #4c7dff;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    opacity: 0.5;
    font-weight: 500;
}

/* ===== باکس کوچک کاور (مشابه رفرنس) ===== */
.dropdown-menu .project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px 6px 20px;
    color: #f4f7ff;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    gap: 12px;
    border-left: 3px solid transparent;
}
.dropdown-menu .project-item:hover {
    background: rgba(111, 150, 255, 0.08);
    border-left-color: #6f96ff;
    padding-left: 24px;
}
.dropdown-menu .project-item .project-cover {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(111, 150, 255, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6f96ff;
    font-weight: 500;
    transition: all 0.3s ease;
}
.dropdown-menu .project-item:hover .project-cover {
    background: rgba(111, 150, 255, 0.25);
    transform: scale(1.05);
}
.dropdown-menu .project-item .project-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dropdown-menu .project-item .project-name {
    font-size: 14px;
    color: #f4f7ff;
    line-height: 1.3;
}
.dropdown-menu .project-item .project-meta {
    font-size: 11px;
    color: #6f96ff;
    opacity: 0.6;
    letter-spacing: 0.5px;
}
.dropdown-menu .project-item .project-count-badge {
    font-size: 12px;
    color: #6f96ff;
    opacity: 0.7;
    flex-shrink: 0;
    background: rgba(111, 150, 255, 0.08);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
}

/* استایل لینک‌های هدر - بدون آندرلاین برای Selected work */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6f96ff;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: #ffffff !important;
}

/* استایل مخصوص Selected work - بدون آندرلاین */
.nav-link-selected {
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}
.nav-link-selected:hover {
    color: #ffffff !important;
}
/* حذف آندرلاین برای Selected work */
.nav-link-selected::after {
    display: none;
}

/* 3. Hover دکمه Explore Portfolio */
.btn-explore {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}
.btn-explore:hover {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(111, 150, 255, 0.4);
}
.btn-explore:active {
    transform: scale(0.96);
}

/* 4. Hover عکس Hero Section */
.hero-image-container {
    overflow: hidden;
    border-radius: 14px;
}
.hero-image-container img {
    transition: transform 0.5s ease, filter 0.5s ease;
}
.hero-image-container:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ===== CAREER CARDS ===== */
.career-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.career-card {
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.career-card span {
    transition: color 0.3s ease;
    display: block;
}

/* ===== اطلاعات شغلی - زیر باکس ===== */
.career-info {
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    padding: 4px 0;
    width: 100%;
}

/* ===== استایل متن‌ها ===== */
.career-role {
    color: #f4f7ff !important;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    opacity: 0.9;
}

.career-duration {
    color: #6f96ff !important;
    font-size: 12px;
    font-weight: 400;
    margin: 2px 0 0 0;
    text-align: center;
}

/* ===== SKILLS STYLES ===== */
.skill-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(244, 247, 255, 0.12);
    transition: all 0.3s ease;
    border-radius: 8px;
    cursor: default;
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

/* Progress bar background */
.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: currentColor;
    opacity: 0;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    z-index: 0;
    border-radius: 0;
    pointer-events: none;
}

/* Hover state - desktop */
.skill-item:hover::before {
    width: var(--percentage, 0%);
    opacity: 0.15;
}
.skill-item:hover .percentage-label {
    opacity: 1;
    color: #f4f7ff;
    transform: translateX(0);
}
.skill-item:hover .skill-icon:not(.figma-white):not(.AE) img {
    transform: scale(1.15);
}
.skill-item:hover .skill-icon.figma-white img {
    transform: scale(1.6);
}
.skill-item:hover .skill-icon.AE img {
    transform: scale(1.3);
}
.skill-item:hover {
    background: transparent;
    padding-left: 20px;
}

/* Skill colors */
.skill-figma { color: #5865d8; }
.skill-photoshop { color: #31a8ff; }
.skill-illustrator { color: #ff9a00; }
.skill-indesign { color: #ff3366; }
.skill-aftereffects { color: #9999ff; }
.skill-premiere { color: #9999ff; }

/* Icon styles */
.skill-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s ease;
}
.skill-icon.figma-white img {
    filter: brightness(0) invert(1);
    transform: scale(1.5);
}
.skill-icon.AE img {
    transform: scale(1.2);
}

/* Skill name */
.skill-item .skill-name {
    color: #f4f7ff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Percentage label - hidden by default, appears on hover */
.skill-item .percentage-label {
    position: relative;
    z-index: 2;
    margin-left: auto;
    color: rgba(244, 247, 255, 0.3);
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

/* ===== CONTACT TITLE ===== */
.contact-title {
    line-height: 1 !important;
    letter-spacing: -1.9px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero-animate-delay-1,
    .hero-animate-delay-2,
    .hero-animate-delay-3,
    .hero-animate-delay-4 {
        animation-delay: 0.1s;
    }
    .nav-dropdown .dropdown-menu {
        min-width: 220px;
        left: 0;
        transform: translateX(0) translateY(10px);
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown .dropdown-menu:hover {
        transform: translateX(0) translateY(4px);
    }
    .dropdown-menu .project-item {
        padding: 5px 12px 5px 16px;
        font-size: 13px;
    }
    .dropdown-menu .project-item .project-cover {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    .skill-item {
        padding: 10px 12px;
    }
    .skill-icon {
        width: 22px;
        height: 22px;
    }
    .career-role {
        font-size: 11px;
    }
    .career-duration {
        font-size: 10px;
    }
    .career-info {
        padding: 2px 0;
    }
}

/* ===== TOUCH SUPPORT (Mobile) ===== */
@media (hover: none) and (pointer: coarse) {
    /* Skills Items */
    .skill-item.active::before {
        width: var(--percentage, 0%);
        opacity: 0.15;
    }
    .skill-item.active .percentage-label {
        opacity: 1;
        color: #f4f7ff;
        transform: translateX(0);
    }
    .skill-item.active .skill-icon:not(.figma-white):not(.AE) img {
        transform: scale(1.15);
    }
    .skill-item.active .skill-icon.figma-white img {
        transform: scale(1.6);
    }
    .skill-item.active .skill-icon.AE img {
        transform: scale(1.3);
    }
    .skill-item.active {
        background: transparent;
        padding-left: 20px;
    }
}

/* ===== SCROLLBAR HIDE ===== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
