@font-face { 
    font-family: 'Yekan Bakh'; 
    src: url('woff2/YekanBakh-Regular.woff2') format('woff2'),
        url('woff/YekanBakh-Regular.woff') format('woff');
    font-weight: 400;
}
@font-face { 
    font-family: 'Yekan Bakh'; 
    src: url('woff2/YekanBakh-Bold.woff2') format('woff2'),
        url('woff/YekanBakh-Bold.woff') format('woff');
    font-weight: 800;
}
@font-face { 
    font-family: 'Yekan Bakh'; 
    src: url('woff2/YekanBakh-Light.woff2') format('woff2'),
        url('woff/YekanBakh-Light.woff') format('woff');
    font-weight: 300;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;    
    scroll-behavior: smooth; /* اضافه کردن این خط */

}

body {
    font-family: 'Yekan Bakh', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 100px; 
    background: radial-gradient(circle at 20% 30%, rgba(173, 216, 230, 0.4) 0%, transparent 50%);
}

/* body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(60deg, transparent 30%, rgba(173, 216, 230, 0.1) 32%, transparent 34%),
        linear-gradient(-60deg, transparent 60%, rgba(135, 206, 235, 0.08) 62%, transparent 64%);
    background-size: 100px 100px, 100px 100px;
    z-index: -1;
    animation: backgroundMove 40s linear infinite;
} */

@keyframes backgroundMove {
    0% { background-position: 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, -100% -100%; }
}

/* Header Navigation */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(197, 184, 224, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
    transform: translateY(0); /* برای انیمیشن نرم */
}

/* حالت شفافیت بیشتر هنگام اسکرول (با JavaScript) */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(197, 184, 224, 0.4);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative; 

}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5868;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4a5868;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #4d80cc;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #427dc0;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, #203F78 0%, #6e92da 50%, #d1d6df 100%);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(155, 141, 199, 0.4);
    transition: all 0.3s ease;
    margin-right: 12rem;
    margin-left: 4rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 152, 199, 0.932);
}

.cta-button::after {
    display: none;
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding-right: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 100px);
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
    color: #4a5868;
    animation: fadeInRight 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #1f3079;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #6B6B8A;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #5A5A78;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInLeft 1s ease;
    width: 100%;
}
.person-image {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-repeat: no-repeat;
    mask-size: cover;
}

.portfolio-btn {
    background: linear-gradient(135deg, #203F78 0%, #6e92da 50%, #a2bae8 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 141, 199, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    margin-left: 1rem;


}

.portfolio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.portfolio-btn:active {
    transform: translateY(0);
}

/* افکت نور در hover */
.portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.portfolio-btn:hover::before {
    left: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.background-pattern {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background-image: 
        radial-gradient(circle at 75% 75%, rgba(66, 125, 192, 0.08) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(66, 125, 192, 0.03) 30%, transparent 40%);
    background-size: 30px 30px,  40px 40px, 40px 40px;
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.person-image {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(155, 141, 199, 0.4));
    transition: transform 0.3s ease;
    max-width: 100%;
}

.person-image:hover {
    transform: scale(1.05);
}


/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;

        font-size: 0.9rem;
    }
    
    .cta-button {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        padding: 0 15px;
        width: 100%;
    }

    header {
        padding: 1rem 0;
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        color: #2c4a7a !important;
        background-color: rgba(44, 74, 122, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .cta-button {
        display: inline-block;
        margin: 1rem auto 0;
        width: auto;
    }

    .hero {
        padding: 2rem 15px;
        max-width: 100%;
        width: 100%;
        gap: 2rem;
        margin: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .image-container {
        max-width: 300px;
        width: 100%;
    }

    .logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 10px;
        gap: 1.5rem;
        margin: 0.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .logo {
        height: 40px;
    }

    .image-container {
        max-width: 250px;
    }

    nav {
        padding: 0 10px;
        justify-content: space-between;
    }

    .hamburger {
        margin-right: 5px;
    }
}
.info-box {
    background-color: #bacaf017; /* رنگ آبی تیره مشابه تصویر */
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 25px rgba(169, 182, 212, 0.3);
    margin-top: 1rem;
    direction: rtl;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    color: rgb(7, 33, 117);
    position: relative;
    padding-right: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.info-item:last-child {
    margin-bottom: 0;
}

/* ایجاد نقطه نارنجی قبل از هر آیتم */
.info-item::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.5rem;
    width: 0.8rem;
    height: 0.8rem;
    background-color: #223cce; /* رنگ نارنجی مشابه تصویر */
    border-radius: 50%;
}

/* خط عمودی بین نقاط */
.info-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0.4rem;
    top: 1.3rem;
    width: 2px;
    height: calc(100% + 0.5rem);
    background-color: rgba(120, 151, 211, 0.979); /* رنگ نارنجی با شفافیت کم */
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .info-box {
        padding: 1.2rem 1.5rem;
    }
    
    .info-item {
        font-size: 1rem;
        padding-right: 1.5rem;
    }
    
    .info-item::before {
        width: 0.7rem;
        height: 0.7rem;
    }
}

@media (max-width: 480px) {
    .info-box {
        padding: 1rem;
    }
    
    .info-item {
        font-size: 0.9rem;
        padding-right: 1.3rem;
    }
    
    .info-item::before {
        width: 0.6rem;
        height: 0.6rem;
    }
}