@font-face {
    font-family: OpenSans;
    src: url("../font/OpenSans-Light.ttf")format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: OpenSans;
    src: url("../font/OpenSans-Regular.ttf")format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: OpenSans;
    src: url("../font/OpenSans-SemiBold.ttf")format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: OpenSans;
    src: url("../font/OpenSans-Bold.ttf")format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: OpenSans;
    src: url("../font/OpenSans-ExtraBold.ttf")format('truetype');
    font-weight: 800;
}

body {
    font-family: OpenSans;
}

p {
    line-height: 2.2
}

.web-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: #eee;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}


/*  */
/* Backdrop */

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {    

    padding: 15px 0;
    transition: all 0.5s;
    z-index: 997;
}

.header .logo {
    line-height: 1;
}

.header .logo img {
    max-height: 36px;
    margin-right: 8px;
}

.header .logo h1 {
    font-size: 30px;
    margin: 0;
    font-weight: 400;
    color: var(--heading-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
    color: var(--contrast-color);
    background: var(--accent-color);
    font-size: 14px;
    padding: 8px 25px;
    margin: 0 0 0 30px;
    border-radius: 50px;
    transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
    color: var(--contrast-color);

}

@media (max-width: 1200px) {
    .header .logo {
        order: 1;
    }

    .header .btn-getstarted {
        order: 2;
        margin: 0 15px 0 0;
        padding: 6px 15px;
    }

    .header .navmenu {
        order: 3;
    }
}

.scrolled .header {
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}


/* Navmenu - Desktop */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navmenu li {
        position: relative;
    }

    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-color);
        padding: 18px 15px;
        font-size: 16px;
        font-family: var(--nav-font);
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: 0.3s;
    }

    .navmenu li:last-child a {
        padding-right: 0;
    }

    .navmenu li:hover>a,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-hover-color);
    }

    .navmenu .dropdown ul {
        margin: 0;
        padding: 10px 0;
        background: var(--nav-dropdown-background-color);
        display: block;
        position: absolute;
        visibility: hidden;
        left: 14px;
        top: 130%;
        opacity: 0;
        transition: 0.3s;
        border-radius: 4px;
        z-index: 99;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .navmenu .dropdown ul li {
        min-width: 200px;
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        color: var(--nav-dropdown-color);
    }

    .navmenu .dropdown ul a i {
        font-size: 12px;
    }

    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul li:hover>a {
        color: var(--nav-dropdown-hover-color);
    }

    .navmenu .dropdown:hover>ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    .navmenu .dropdown .dropdown ul {
        top: 0;
        left: -90%;
        visibility: hidden;
    }

    .navmenu .dropdown .dropdown:hover>ul {
        opacity: 1;
        top: 0;
        left: -100%;
        visibility: visible;
    }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .navmenu {
        
        padding: 0;
        z-index: 9997;
    }

    .navmenu ul {
        display: none;
        list-style: none;
        position: absolute;
        inset: 60px 20px 20px 20px;
        padding: 10px 0;
        margin: 0;
        border-radius: 6px;
        background-color: var(--nav-mobile-background-color);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }

    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-dropdown-color);
        padding: 10px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.3s;
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    }

    .navmenu a i:hover,
    .navmenu a:focus i:hover {
        background-color: var(--accent-color);
        color: var(--contrast-color);
    }

    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-dropdown-hover-color);
    }

    .navmenu .active i,
    .navmenu .active:focus i {
        background-color: var(--accent-color);
        color: var(--contrast-color);
        transform: rotate(180deg);
    }

    .navmenu .dropdown ul {
        position: static;
        display: none;
        z-index: 99;
        padding: 10px 0;
        margin: 10px 20px;
        background-color: var(--nav-dropdown-background-color);
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
        box-shadow: none;
        transition: all 0.5s ease-in-out;
    }

    .navmenu .dropdown ul ul {
        background-color: rgba(33, 37, 41, 0.1);
    }

    .navmenu .dropdown>.dropdown-active {
        display: block;
        background-color: rgba(33, 37, 41, 0.03);
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: absolute;
        font-size: 32px;
        top: 15px;
        right: 15px;
        margin-right: 0;
        z-index: 9999;
    }

    .mobile-nav-active .navmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgba(33, 37, 41, 0.8);
        transition: 0.3s;
    }

    .mobile-nav-active .navmenu>ul {
        display: block;
    }
}

/* ----------- Mobile Backdrop ----------- */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 998;
}



/* Desktop mode: default Bootstrap */
@media (min-width: 992px) {
    .custom-menu {
        position: static !important;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
        right: auto;
    }
}

/* Close button style */
.menu-header {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.custom-toggler {
    border: none !important;
    background: transparent;
}


/*  */

.color-primary {
    color: #ff4d4f;
}

.navbar-brand {
    color: #ff4d4f !important;
}

.nav-link:hover {
    color: #ff4d4f !important;
}

.nav-link.active {
    color: #ff4d4f !important;
}


.bg-img {
    border-radius: 25px;
    position: relative;
    width: 100%;
    height: 90vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../img/1.jpg');

    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.social-media {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(128, 128, 128, 0.2);
    border-radius: 100%;
    color: #ff4d4f;
    width: 50px;
    height: 50px;
}

.social-media:hover {
    border: 3px solid #ff4d4f;
}

.subtitle-span {
    margin: 0 auto;
    height: 0px;
    width: 50%;
    border: 1px solid #ff4d4f;
    transform: rotate(180deg);

}

.profile {

    border-radius: 20px;
    background-color: #1c1c1c;
}

.profile-img {
    margin-top: 30px;
    overflow: hidden;
    padding-top: 15px;
    border: 2px solid #ff4d4f;
    margin: 0 auto;
    transition: 0.3s ease;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: fill;

}

.profile-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.profile-title {
    color: #ff4d4f;
    font-weight: 700;
}

.profile-star-fill {
    color: rgb(217, 217, 45);
}

.profile-span {
    margin: 0 auto;
    height: 0px;
    width: 50%;
    border: 1px solid #2f2f2f;
    transform: rotate(180deg);
}

.profile-btn {
    margin: 0 auto;
    margin-top: 30px;
    background-color: #ff4d4f;
    width: 150px;
    height: 40px;
}

.tag {
    margin-top: 10px;
    width: 100px;
    height: 30px;
    background-color: #451717;
    color: #ff4d4f;
    border-radius: 40px;
    text-align: center;
    font-weight: 800;
}

.info-box {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    border: 1px solid #2a2a2a;
    transition: 0.3s;

}



.info-box:hover {
    background: linear-gradient(135deg, transparent 0%, transparent 30%, #ff4444 100%);
    backdrop-filter: blur(10px);
    border-color: #ff4444;
    transform: scale(1.05);
    filter: brightness(1.1);

}



.info-icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ff4d4d;

}



.info-title {
    font-size: 14px;
    opacity: 0.7;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
}


.skill-item {
    margin-bottom: 25px;
}

.skill-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #fff;
    font-size: 15px;
}

.progress {
    height: 10px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #ff4444, #ff6b6b);
    position: relative;
    overflow: hidden;
    animation: fillBar 1.4s cubic-bezier(.65, .05, .36, 1);
}


.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.25) 0px,
            rgba(255, 255, 255, 0.25) 6px,
            rgba(255, 255, 255, 0.1) 6px,
            rgba(255, 255, 255, 0.1) 12px);
    animation: stripeMove 2s linear infinite;
}


@keyframes stripeMove {
    0% {
        left: -120%;
    }

    100% {
        left: 100%;
    }
}


@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: var(--target-width, 100%);
    }
}






/* 
 */
/* ===== Resume Section ===== */


.resume-section {
    padding: 70px 0;
    color: #fff !important;
}

/* ===== Title ===== */
.resume-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff !important;
    text-align: right;
}

/* ===== Timeline Line ===== */
.resume-timeline {
    position: relative;
    padding-right: 30px;
    border-right: 2px solid #2a2a2a !important;
}

/* ===== Timeline Dot ===== */
.resume-item::before {
    content: "";
    position: absolute;
    right: -11px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #ff4444 !important;
    border: 2px solid #ff7777 !important;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff444499 !important;
}

/* ===== Resume Item ===== */
.resume-item {
    margin-bottom: 35px;
    position: relative;
    padding-right: 25px;
    animation: fadeInUp .6s ease backwards;
}

/* ===== Resume Card ===== */
.resume-card {
    background: #141414 !important;
    border: 1px solid #222 !important;
    padding: 25px 28px;
    border-radius: 14px;
    transition: 0.35s ease;
}

.resume-card:hover {
    border-color: #ff4444 !important;
    box-shadow: 0 0 18px #ff444455 !important;

}

/* ===== Title ===== */
.resume-card .title {
    font-size: 19px;
    font-weight: 600;
    color: #fff !important;
    margin-bottom: 8px;
}

/* ===== Subtitle ===== */
.resume-card .subtitle {
    font-size: 15px;
    margin-bottom: 12px;
    color: #ff4444 !important;
    font-weight: 500;
}

/* ===== Date Badge ===== */
.resume-card .date {
    background: #1e1e1e !important;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #333 !important;
    color: #ff7777 !important;
    display: inline-block;
    margin-bottom: 12px;
}

/* ===== Description ===== */
.resume-card .desc {
    font-size: 14px;
    line-height: 1.7;
    color: #ccc !important;
}

/* ===== Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.service-card {

    background-color: #1c1c1c;
    border-radius: 20px;
    padding: 10px;
}

.service-card:hover {
    border: 1px solid #ff4444;
    border-color: #ff4444;
    box-shadow: 0 0 25px #ff444450;
    transform: translateY(-5px);
}

.service-icon {
    background-color: #451717;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: 0.4s ease;
}

.service-card:hover .icon-box {
    background: #ff4444 !important;
    color: #fff !important;
    transform: rotate(10deg) scale(1.05);
    transition: 0.4s ease;
}

.service-card:hover .icon-box {
    background: #ff4444 !important;
    color: #fff !important;
    transform: rotate(10deg) scale(1.05);
    transition: 0.4s ease;
}


.icon-box {
    transition: 0.4s ease;
}


.service-card:hover {
    border-color: #ff4444;
    box-shadow: 0 0 25px #ff444450;
    transform: translateY(-5px);
}

.service-explore {
    cursor: pointer;
    color: #fff;
}


/* ==== EXPLORE LINK ==== */
.explore-link {
    width: 50%;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* arrow icon */
.explore-link i {
    transition: color 3ms cubic-bezier(.25, .46, .45, 1);
}

/* hover effect */
.service-card:hover .explore-link {
    color: #ff4444 !important;
}



.cta-box {
    background-image: url(../img/4.jpeg);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
}

/* Dark overlay layer */
.cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    /* darkness level */
    backdrop-filter: blur(1.5px);
    /* extra smoothness */
    z-index: 1;
}

/* Content stays above overlay */
.cta-box * {
    position: relative;
    z-index: 2;
}

/* Title */
.cta-box h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}

/* Subtitle */
.cta-box p {
    color: #eee;
    font-size: 15px;
    margin-bottom: 0;
}

/* Button styling */
.cta-btn {
    background: #ff4444;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
    transition: 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    background: #ff2222;
    transform: translateY(-3px);
}


.portfolio-text {
    color: #ff4444;
    font-weight: 900;

}


/* ===== Portfolio Section Header ===== */
.portfolio-header {
    margin-bottom: 60px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Title */
.portfolio-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
}

/* Red underline */
.portfolio-divider {
    width: 140px;
    height: 3px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, #ff4444, #ff0000);
    border-radius: 20px;
    box-shadow: 0 0 12px #ff4444aa;
}

/* Subtitle text */
.portfolio-subtitle {
    font-size: 15.5px;
    color: #ddd;
    line-height: 1.7;
    text-align: center;
    max-width: 720px;
    margin: auto;
    font-weight: 300;
}

/* Light glow animation on hover */
.portfolio-header:hover .portfolio-title {
    text-shadow: 0 0 18px #ff444440;
    transition: .4s ease;
}

.portfolio-header:hover .portfolio-divider {
    box-shadow: 0 0 16px #ff4444aa;
    transition: .4s ease;
}


.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    height: 350px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

/* لایه پایین که اسلاید می‌شود */
.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 25px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    color: white;
    transition: all .6s cubic-bezier(.19, 1, .22, 1);
}

.portfolio-card:hover .portfolio-overlay {
    bottom: 0;
}

/* عنوان */
.portfolio-overlay h3 {
    font-size: 22px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

/* دکمه */
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff2b45;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    transition: .3s ease;
}

.view-btn i {
    transition: transform .3s ease;
}

/* هاور دکمه */
.view-btn:hover {
    color: #ff0026;
}

.view-btn:hover i {
    transform: translateX(6px);
}



/* box style */
.contact-form-box {
    color: #e63a3a;
    background: #2f2f2f;
    border-radius: 18px;
    border: 1px solid #f0f0f0;
    transition: 0.3s ease;
}

.contact-form-box:hover {
    border-color: #e63a3a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* input style */
.custom-input {
    border-radius: 14px;
    padding: 12px 16px;
    border: 1.5px solid #e6e6e6;
    transition: all .3s ease;
}

.custom-input:focus {
    border-color: #ff4444;
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.15);
}

/* button style */
.contact-btn {
    background: #ff4444;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    transition: .3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 17px;
}

.contact-btn:hover {
    background: #e63a3a;
    transform: translateX(6px);
    box-shadow: 0 10px 20px rgba(255, 68, 68, .3);
}



.footer-section {
    background: #0d0d0d;
    padding: 70px 0 35px;
    color: #ccc;
    position: relative;
    margin-top: 80px;
}

.footer-logo {
    font-size: 34px;
    font-weight: 800;
    color: #ff4444;
    margin-bottom: 15px;
}

.footer-about {
    line-height: 1.8;
    color: #bdbdbd;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    background: #141414;
    margin-right: 8px;
    font-size: 20px;
    color: #ff4444;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #ff4444;
    color: #fff;
    transform: translateY(-4px);
}

.footer-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.footer-links,
.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-info li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b5b5b5;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ff4444;
    padding-left: 5px;
}

.footer-info i {
    color: #ff4444;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #999;
    font-size: 14px;
}



/*  */
/* Basic Header */

.brand-name{
    text-decoration: none;
    color: #ff4444  !important;
    font-weight: 900;
}
.header {
    background: #111;
    height: 70px;
    transition: all 0.5s;
    z-index: 997;
    padding: 0 30px;
}

.header .logo h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.navmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navmenu ul li {
    position: relative;
}

.navmenu ul li a {
    color: #fff;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.navmenu ul li a.active,
.navmenu ul li a:hover {
    color: #ff6b6b;
}

.navmenu ul li .dropdown ul {
    position: absolute;
    left: 0;
    top: 100%;
    display: none;
    background: #222;
    min-width: 180px;
    padding: 0;
}

.navmenu ul li .dropdown:hover>ul {
    display: block;
}

.navmenu ul li .dropdown ul li {
    position: relative;
}

.navmenu ul li .dropdown ul li ul {
    left: 100%;
    top: 0;
    display: none;
}

.navmenu ul li .dropdown ul li:hover>ul {
    display: block;
}

.mobile-nav-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none;
}

.btn-getstarted {
    background: #ff6b6b;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-getstarted:hover {
    background: #ff4c4c;
}

/* Responsive */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navmenu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100%;
        background: #111;
        overflow-y: auto;
        transition: 0.3s;
        padding-top: 70px;
    }

    .navmenu ul {
        flex-direction: column;
    }

    .navmenu.active {
        left: 0;
    }

    .navmenu ul li .dropdown ul {
        position: static;
    }
}

/*  */