/*==================================================
            CUSTOM LOCAL FONT (FONT FOLDER)
==================================================*/
@font-face {
    font-family: 'Shabnam';
    src: url('../font/Shabnam-Medium.ttf') format('truetype'),
         url('../font/Shabnam-Thin.ttf') format('truetype'),
         url('../font/Shabnam\ Light.ttf') format('truetype'),
         url('../font/Shabnam\ Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*==================================================
            GOOGLE FONT & RESET
==================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Shabnam', sans-serif;
    background: #130726; /* بنفش خیلی سیر و عمیق */
    color: #ffffff;
    line-height: 1.9;
    overflow-x: hidden;
}
::selection {
    background: #512BD4;
    color: #fff;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    transition: 0.3s;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
section {
    padding: 110px 0;
}
.container {
    max-width: 1200px;
}
:root {
    --primary: #512BD4;       /* رنگ اصلی لوگو .NET */
    --secondary: #8A5CF6;     /* رنگ روشن‌تر بنفش برای تاکیدات */
    --dark: #130726;          /* پس‌زمینه اصلی (بنفش سیر) */
    --card: #1E0F3A;          /* پس‌زمینه کارت‌ها (بنفش سیر روشن‌تر) */
    --border: #3A1E70;        /* حاشیه کارت‌ها */
    --text: #ffffff;
    --text2: #BAA6E8;         /* رنگ متن ثانویه (یاسی ملایم) */
    --success: #10b981;
    --danger: #ef4444;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/*==================================================
                SECTION TITLE
==================================================*/
.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 4px;
    background: var(--primary);
    bottom: -12px;
    right: 15%;
    border-radius: 10px;
}
.text-secondary {
    color: var(--text2) !important;
    font-size: 18px;
}

/*==================================================
                BUTTONS
==================================================*/
.btn {
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: 0.35s;
}
.btn-primary {
    background: var(--primary);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-4px);
    background: #3D1EB0;
    box-shadow: 0 10px 25px rgba(81, 43, 212, 0.5);
}
.btn-outline-light {
    border: 2px solid white;
}
.btn-outline-light:hover {
    background: white;
    color: #130726;
}

/*==================================================
                CARD
==================================================*/
.info-box,
.counter-box,
.timeline-content,
.contact-info {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: 0.35s;
}
.info-box:hover,
.counter-box:hover,
.timeline-content:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

/*==================================================
                PROGRESS BAR
==================================================*/
.progress {
    height: 12px;
    border-radius: 50px;
    background: #1A0A33;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, #512BD4, #8A5CF6);
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
}

/*==================================================
                SCROLL BAR
==================================================*/
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #130726;
}
::-webkit-scrollbar-thumb {
    background: #512BD4;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6B46E5;
}

/*==================================================
                    NAVBAR
==================================================*/
.navbar {
    background: rgba(19, 7, 38, 0.75); /* شفافیت روی پس‌زمینه جدید */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: 0.4s;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999;
}
.navbar.scrolled {
    background: #130726;
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.navbar-brand {
    color: #fff !important;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}
.navbar-brand i {
    color: var(--primary);
    transition: 0.35s;
}
.navbar-brand:hover i {
    transform: rotate(-15deg);
}
.navbar-nav {
    gap: 12px;
}
.nav-item {
    position: relative;
}
.nav-link {
    color: #D1CCE8 !important;
    font-size: 17px;
    font-weight: 500;
    padding: 8px 18px !important;
    transition: 0.35s;
    position: relative;
}
.nav-link:hover {
    color: #fff !important;
}
.nav-link::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.35s;
}
.nav-link:hover::after {
    width: 55%;
}
.nav-link.active {
    color: #fff !important;
}
.nav-link.active::after {
    width: 55%;
}
.navbar-toggler {
    border: none;
    box-shadow: none !important;
}
.navbar-toggler:focus {
    box-shadow: none;
}
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 20px;
        background: #1E0F3A;
        border-radius: 15px;
        padding: 20px;
    }
    .navbar-nav {
        gap: 8px;
    }
    .nav-link {
        border-radius: 10px;
        padding: 12px 15px !important;
    }
    .nav-link:hover {
        background: #512BD4;
    }
    .nav-link::after {
        display: none;
    }
}

/*==================================================
                    HERO
==================================================*/
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(81, 43, 212, 0.2), transparent 40%),
        radial-gradient(circle at bottom right, rgba(138, 92, 246, 0.15), transparent 35%),
        #130726;
}
#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
}
#hero .container {
    position: relative;
    z-index: 2;
}
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 45px 45px;
    opacity: 0.35;
    z-index: 0;
}
#hero h1 {
    font-size: 65px;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 20px;
}
#hero h2 {
    color: var(--secondary);
    min-height: 45px;
    font-weight: 600;
}
#hero p {
    color: #D1CCE8;
    font-size: 19px;
    margin-top: 25px;
    line-height: 2;
    max-width: 650px;
}
#hero .badge {
    font-size: 16px;
    border-radius: 50px;
    padding: 12px 22px;
    background: var(--primary) !important;
}
#hero .btn {
    margin-top: 10px;
    min-width: 180px;
}
#hero .btn-primary {
    box-shadow: 0 10px 30px rgba(81, 43, 212, 0.4);
}
#hero .btn-primary:hover {
    transform: translateY(-5px);
}
#hero .btn-outline-light:hover {
    transform: translateY(-5px);
}

/* ==============================================
   HERO IMAGE WITH GLASS CARDS
=============================================== */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 460px;
    height: 460px;
}

.hero-image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 10px rgba(81, 43, 212, 0.15), 0 0 50px rgba(81, 43, 212, 0.35);
    animation: float 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.glass-cards {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.glass-card {
    position: absolute;
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: floatCard 4s ease-in-out infinite alternate;
    pointer-events: auto;
}

.glass-card-text {
    font-family: 'Shabnam', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -1px;
    margin-top: -2px;
}

.glass-card:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 12px 40px rgba(81, 43, 212, 0.4);
    border-color: rgba(81, 43, 212, 0.5);
}

.card-1 { top: -15px; left: -20px; animation-delay: 0s; background: rgba(81, 43, 212, 0.15); border-color: rgba(81, 43, 212, 0.3); }
.card-2 { top: 25%; right: -35px; animation-delay: 0.8s; background: rgba(138, 92, 246, 0.10); border-color: rgba(138, 92, 246, 0.25); }
.card-3 { bottom: 15%; left: -40px; animation-delay: 1.6s; background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); }
.card-4 { top: -15px; right: -15px; animation-delay: 0.4s; background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); }
.card-5 { bottom: -15px; right: -10px; animation-delay: 1.2s; background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.2); }
.card-6 { top: 40%; left: -50px; animation-delay: 2.0s; background: rgba(81, 43, 212, 0.08); border-color: rgba(81, 43, 212, 0.2); }

@keyframes floatCard {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(8deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

.social {
    display: flex;
    gap: 18px;
    margin-top: 35px;
}
.social a {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1E0F3A;
    color: #fff;
    font-size: 22px;
    transition: 0.35s;
    border: 1px solid #3A1E70;
}
.social a:hover {
    background: var(--primary);
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(81, 43, 212, 0.4);
}
#typing {
    color: var(--secondary);
    font-weight: 700;
}

/*==================================================
            HERO - RESPONSIVE
==================================================*/
@media (max-width: 1200px) {
    .hero-image-wrapper { width: 400px; height: 400px; }
}

@media (max-width: 992px) {
    #hero { text-align: center; padding-top: 120px; }
    #hero h1 { font-size: 46px; }
    #hero h2 { font-size: 30px; }
    #hero p { margin: auto; margin-top: 25px; }
    .hero-image-wrapper { width: 340px; height: 340px; margin-bottom: 50px; }
    .glass-card { width: 60px; height: 60px; font-size: 24px; }
    .glass-card-text { font-size: 22px; }
    .card-1 { left: -15px; }
    .card-2 { right: -20px; }
    .card-3 { left: -25px; }
    .card-4 { right: -10px; }
    .card-5 { right: -5px; }
    .card-6 { left: -30px; }
    .social { justify-content: center; }
}

@media (max-width: 576px) {
    #hero { padding-top: 100px; }
    #hero h1 { font-size: 32px; }
    #hero h2 { font-size: 24px; }
    #hero p { font-size: 16px; }
    .hero-image-wrapper { width: 280px; height: 280px; margin-bottom: 30px; }
    .glass-card { width: 50px; height: 50px; font-size: 20px; border-radius: 12px; }
    .glass-card-text { font-size: 18px; }
    .card-1 { left: -10px; top: -5px;}
    .card-2 { right: -10px; top: 25%; }
    .card-3 { left: -15px; bottom: 15%; }
    .card-4 { right: -5px; top: -5px; }
    .card-5 { right: 0px; bottom: -5px; }
    .card-6 { left: -20px; top: 60%; }
    .social a { width: 42px; height: 42px; font-size: 18px; }
}

/*==================================================
                    ABOUT
==================================================*/
#about { background: #1A0A33; position: relative; } /* بنفش سیر متمایز */
#about .section-title { margin-bottom: 20px; }
#about img {
    border-radius: 25px !important;
    border: 3px solid rgba(255, 255, 255, 0.08);
    transition: 0.4s;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
#about img:hover { transform: scale(1.03); }
#about h3 { font-size: 38px; margin-bottom: 20px; color: #fff; }
#about p { color: #D1CCE8; font-size: 17px; line-height: 2.1; }
.info-box { padding: 20px; height: 100%; border-radius: 18px; }
.info-box h6 { color: var(--secondary); margin-bottom: 10px; font-size: 15px; }
.info-box span { color: #fff; font-weight: 600; font-size: 16px; }
.info-box:hover { transform: translateY(-8px); }
.counter-box { padding: 35px 20px; text-align: center; margin-top: 20px; }
.counter-box h2 { font-size: 48px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.counter-box p { margin: 0; color: #D1CCE8; font-size: 16px; }
.counter-box:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(81, 43, 212, 0.3); }
.counter-box { position: relative; overflow: hidden; }
.counter-box::before {
    content: ""; position: absolute; width: 150px; height: 150px;
    background: rgba(81, 43, 212, 0.15); border-radius: 50%;
    top: -70px; left: -70px;
}
@media (max-width: 992px) {
    #about { text-align: center; }
    #about img { margin-bottom: 40px; }
    #about h3 { font-size: 30px; }
}

/*==================================================
                    SKILLS
==================================================*/
#skills { background: #1A0A33; position: relative; overflow: hidden; }
#skills::before {
    content: ""; position: absolute; width: 450px; height: 450px;
    background: radial-gradient(var(--primary), transparent 70%);
    opacity: 0.15; top: -200px; left: -150px;
}
#skills::after {
    content: ""; position: absolute; width: 400px; height: 400px;
    background: radial-gradient(var(--secondary), transparent 70%);
    opacity: 0.15; bottom: -200px; right: -150px;
}
#skills .container { position: relative; z-index: 2; }
#skills .mb-4 {
    background: #1E0F3A; padding: 22px; border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.35s; margin-bottom: 25px !important;
}
#skills .mb-4:hover {
    transform: translateY(-8px); border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
#skills h6 {
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; margin-bottom: 14px; font-size: 17px; font-weight: 600;
}
.progress { height: 20px; border-radius: 50px; background: #130726; overflow: hidden; }
.progress-bar {
    background: linear-gradient(90deg, #512BD4, #8A5CF6);
    border-radius: 50px; position: relative;
}
.progress-bar::after {
    content: ""; position: absolute; top: 0; right: 0;
    width: 15px; height: 100%; background: white;
    opacity: 0.5; filter: blur(5px);
}
.progress-bar {
    display: flex; justify-content: flex-end; align-items: center;
    padding-left: 10px; font-size: 11px; font-weight: bold; color: #fff;
}
#skills .col-lg-6 { padding: 15px; }
@media (max-width: 992px) { #skills .mb-4 { padding: 18px; } }

/*==================================================
                    EXPERIENCE
==================================================*/
#experience { position: relative; background: #130726; }
.timeline { position: relative; max-width: 900px; margin: 60px auto 0; padding: 20px 0; }
.timeline::before {
    content: ""; position: absolute; top: 0; bottom: 0; right: 50%;
    width: 4px; background: linear-gradient(to bottom, #512BD4, #8A5CF6);
    transform: translateX(50%); border-radius: 20px;
}
.timeline-item { width: 50%; padding: 20px 40px; position: relative; }
.timeline-item:nth-child(odd) { right: 0; text-align: left; }
.timeline-item:nth-child(even) { right: 50%; text-align: right; }
.timeline-item::before {
    content: ""; width: 22px; height: 22px; position: absolute;
    background: #8A5CF6; border: 5px solid #130726; border-radius: 50%;
    top: 35px; z-index: 5; box-shadow: 0 0 25px rgba(138, 92, 246, 0.7);
}
.timeline-item:nth-child(odd)::before { left: -11px; }
.timeline-item:nth-child(even)::before { right: -11px; }
.timeline-content {
    background: #1E0F3A; padding: 30px; border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.35s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.timeline-content:hover { transform: translateY(-10px); border-color: #512BD4; }
.timeline-date {
    display: inline-block; background: #512BD4; color: white;
    padding: 8px 16px; border-radius: 40px; margin-bottom: 20px;
    font-size: 14px; font-weight: bold;
}
.timeline-content h4 { color: white; margin-bottom: 10px; }
.timeline-content h6 { color: #8A5CF6 !important; margin-bottom: 20px; font-size: 17px; }
.timeline-content p { color: #D1CCE8; line-height: 1.9; }
.timeline-content ul { margin-top: 15px; }
.timeline-content li {
    color: #BAA6E8; margin-bottom: 10px; padding-right: 18px; position: relative;
}
.timeline-content li::before {
    content: ""; width: 8px; height: 8px; background: #8A5CF6;
    border-radius: 50%; position: absolute; right: 0; top: 10px;
}
@media (max-width: 992px) {
    .timeline::before { right: 20px; }
    .timeline-item {
        width: 100%; right: 0 !important; padding: 20px 20px 20px 70px;
        text-align: right !important;
    }
    .timeline-item::before { right: 10px !important; left: auto; }
}

/*==================================================
                    PROJECTS
==================================================*/
#projects {
    background: #1A0A33;
    position: relative;
    overflow: hidden;
}
#projects::before {
    content: ""; position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(81, 43, 212, 0.2), transparent);
    top: -200px; right: -200px;
}
#projects::after {
    content: ""; position: absolute; width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(138, 92, 246, 0.2), transparent);
    bottom: -200px; left: -200px;
}
#projects .container { position: relative; z-index: 2; }

.project-card {
    background: #1E0F3A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: #512BD4;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(81, 43, 212, 0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-image img {
    transform: scale(1.12);
}
.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 15, 58, 0.9), transparent 50%);
    pointer-events: none;
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.project-info h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: color 0.3s;
}
.project-card:hover .project-info h4 {
    color: #8A5CF6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}
.project-tags .badge {
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.project-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: rgba(81, 43, 212, 0.15);
    color: #8A5CF6;
    border: 1px solid rgba(81, 43, 212, 0.4);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.35s ease;
    text-decoration: none;
}
.project-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}
.project-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(81, 43, 212, 0.5);
    transform: translateY(-3px);
}
.project-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

/*==================================================
                    CONTACT
==================================================*/
#contact {
    background: #130726; position: relative; overflow: hidden;
}
#contact::before {
    content: ""; position: absolute; width: 500px; height: 500px;
    border-radius: 50%; background: radial-gradient(circle, rgba(81, 43, 212, 0.2), transparent);
    top: -250px; left: -250px;
}
#contact .container { position: relative; z-index: 2; }
.contact-info {
    background: #1E0F3A; padding: 40px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05); height: 100%;
}
.contact-item {
    display: flex; align-items: flex-start; gap: 18px; margin-bottom: 30px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item i {
    width: 60px; height: 60px; display: flex; justify-content: center;
    align-items: center; background: var(--primary); border-radius: 50%;
    color: white; font-size: 22px; flex-shrink: 0; transition: 0.35s;
}
.contact-item:hover i { transform: rotate(15deg) scale(1.1); }
.contact-item h5 { color: white; margin-bottom: 8px; }
.contact-item p { color: #BAA6E8; margin: 0; }
.social-icons { display: flex; gap: 15px; margin-top: 40px; }
.social-icons a {
    width: 50px; height: 50px; border-radius: 50%; display: flex;
    justify-content: center; align-items: center; background: #130726;
    border: 1px solid rgba(255, 255, 255, 0.08); color: white;
    transition: 0.35s; font-size: 20px;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-6px); }
#contact form {
    background: #1E0F3A; padding: 40px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.form-control {
    background: #130726; border: 1px solid #3A1E70; color: white;
    border-radius: 12px; padding: 15px; transition: 0.35s;
}
.form-control:focus {
    background: #130726; color: white; border-color: var(--primary);
    box-shadow: 0 0 15px rgba(81, 43, 212, 0.4);
}
.form-control::placeholder { color: #BAA6E8; }
textarea.form-control { resize: none; }
#contact button { width: 100%; margin-top: 10px; font-size: 18px; padding: 15px; }
@media (max-width: 992px) {
    .contact-info { margin-bottom: 35px; }
    #contact form { padding: 30px; }
}

/*==================================================
                    FOOTER
==================================================*/
footer {
    background: linear-gradient(180deg, #1A0A33, #0A0414);
    padding: 90px 0 35px; position: relative; overflow: hidden;
}
footer::before {
    content: ""; position: absolute; top: -150px; left: -150px;
    width: 350px; height: 350px; background: #512BD4; opacity: 0.15;
    filter: blur(120px);
}
footer::after {
    content: ""; position: absolute; bottom: -180px; right: -150px;
    width: 350px; height: 350px; background: #8A5CF6; opacity: 0.15;
    filter: blur(120px);
}
.footer-title { font-size: 42px; font-weight: 700; color: white; }
.footer-job { color: #8A5CF6; font-size: 20px; margin-top: 15px; }
.footer-tech {
    margin-top: 25px; display: flex; justify-content: center;
    gap: 12px; flex-wrap: wrap;
}
.footer-tech span {
    background: #1E0F3A; color: #8A5CF6; padding: 10px 18px;
    border-radius: 30px; border: 1px solid rgba(138, 92, 246, 0.2);
}
.footer-social {
    display: flex; justify-content: center; gap: 20px; margin: 45px 0;
}
.footer-social a {
    width: 65px; height: 65px; border-radius: 20px; background: #1E0F3A;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; transition: 0.35s;
}
.footer-social a:hover {
    background: #512BD4; transform: translateY(-10px) rotate(8deg);
}
.footer-copy {
    margin-top: 40px; color: #BAA6E8; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 30px;
}

/*==================================================
                BACK TO TOP
==================================================*/
#topBtn {
    position: fixed; left: 35px; bottom: 35px; width: 60px; height: 60px;
    border-radius: 18px; background: linear-gradient(135deg, #512BD4, #8A5CF6);
    color: white; display: flex; justify-content: center; align-items: center;
    font-size: 24px; opacity: 0; visibility: hidden; transition: 0.35s;
    box-shadow: 0 15px 35px rgba(81, 43, 212, 0.5); z-index: 999;
}
#topBtn.show { opacity: 1; visibility: visible; }
#topBtn:hover { transform: translateY(-10px) rotate(-10deg); }

/*==================================================
                LOADER
==================================================*/
.loader {
    position: fixed; inset: 0; background: #130726;
    display: flex; justify-content: center; align-items: center;
    z-index: 99999; transition: 0.5s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader span {
    width: 70px; height: 70px; border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/*==================================================
                UTILITIES
==================================================*/
.text-gradient {
    background: linear-gradient(90deg, #512BD4, #8A5CF6);
    --webkit-background-clip: text; --webkit-text-fill-color: transparent;
}
.shadow-primary { box-shadow: 0 15px 35px rgba(81, 43, 212, 0.4); }
.rounded-xl { border-radius: 22px; }
.bg-card { background: #1E0F3A; }
.border-primary { border: 1px solid rgba(81, 43, 212, 0.3); }
.glass {
    background: rgba(30, 15, 58, 0.6); backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/*==================================================
                RESPONSIVE (EXTRA)
==================================================*/
@media (max-width: 768px) {
    #topBtn { width: 48px; height: 48px; left: 20px; bottom: 20px; }
    footer { padding: 50px 0 20px; }
    .section-title { font-size: 32px; }
    .counter-box h2 { font-size: 36px; }
    .project-image { height: 200px; }
}
@media (max-width: 576px) {
    #hero h1 { font-size: 32px; }
    #hero h2 { font-size: 24px; }
    #hero p { font-size: 16px; }
    .info-box, .counter-box { padding: 15px; }
    .timeline-content { padding: 20px; }
    .project-info { padding: 20px; }
    .project-image { height: 180px; }
    #contact form { padding: 20px; }
}


/*==================================================
                CERTIFICATES & HONORS
==================================================*/
#certificates {
    background: #1A0A33; /* رنگ پس‌زمینه مشابه بخش درباره من */
    position: relative;
}

/* استایل تب‌ها */
.custom-tabs {
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 25px;
}

    .custom-tabs .nav-link {
        background: #1E0F3A;
        color: #BAA6E8 !important;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 12px 35px;
        font-size: 17px;
        font-weight: 600;
        transition: 0.35s;
    }

        .custom-tabs .nav-link:hover {
            background: #2A1550;
            color: #fff !important;
        }

        .custom-tabs .nav-link.active {
            background: var(--primary);
            color: #fff !important;
            border-color: var(--primary);
            box-shadow: 0 10px 25px rgba(81, 43, 212, 0.4);
        }

/* استایل کارت‌های مدارک */
.cert-card {
    background: #1E0F3A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    transition: 0.35s;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

    .cert-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 15px 35px rgba(81, 43, 212, 0.2);
    }

.cert-img {
    background: #fff; /* پس‌زمینه سفید برای خوانایی بهتر تصویر مدرک */
    border-radius: 12px;
    padding: 10px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

    .cert-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* جلوگیری از بریده شدن تصویر مدارک */
        transition: transform 0.4s ease;
    }

.cert-card:hover .cert-img img {
    transform: scale(1.08);
}

.cert-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    transition: 0.3s;
}

.cert-card:hover .cert-title {
    color: var(--secondary);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .custom-tabs {
        flex-direction: column;
        align-items: center;
        border-bottom: none;
    }

        .custom-tabs .nav-link {
            width: 100%;
            max-width: 300px;
            text-align: center;
        }

    .cert-img {
        height: 180px;
    }
}

/*==================================================
                    VIDEO CARDS
==================================================*/
.video-card {
    background: #1E0F3A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden; /* برای اینکه گوشه‌های ویدئو گرد شوند */
    transition: 0.35s;
    padding-bottom: 20px; /* فاصله برای عنوان زیر ویدئو */
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

    .video-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 15px 35px rgba(81, 43, 212, 0.2);
    }

.video-title {
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
    padding: 0 15px;
    transition: 0.3s;
}

.video-card:hover .video-title {
    color: var(--secondary);
}