:root {
    --bg-dark: #07090e;
    --bg-card: rgba(18, 22, 32, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 198, 255, 0.3);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --accent-blue: #0071e3;
    --accent-cyan: #00f2fe;
    --gradient-primary: linear-gradient(135deg, #0071e3 0%, #00f2fe 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    
    --font-fa: 'Vazirmatn', sans-serif;
    --font-en: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] { font-family: var(--font-fa); }
[dir="ltr"] { font-family: var(--font-en); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    text-decoration: none;
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent { color: var(--accent-cyan); font-family: monospace; }
.brand-name .highlight { color: var(--accent-cyan); }

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-cyan);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.mobile-toggle { display: none; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, rgba(0,113,227,0.05) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.typed-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Glass Profile Card */
.profile-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.profile-placeholder {
    height: 380px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tech-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-overlay span {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-family: monospace;
}

.card-footer-info {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}
/* ==========================================
   SERVICES PAGE STYLES
   ========================================== */
.services-hero {
    padding: 140px 0 60px 0;
    position: relative;
}

.text-center { text-align: center; }

.page-main-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-sub-title {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-accent {
    color: var(--accent-cyan);
    font-family: monospace;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.service-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.service-card-glass:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    color: var(--accent-cyan);
    font-weight: bold;
}

.service-btn {
    width: 100%;
    text-align: center;
}

/* Academic Special Styling */
.academic-section {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.academic-card {
    border-color: rgba(0, 113, 227, 0.2);
}

.academic-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 113, 227, 0.15);
    border: 1px solid var(--accent-blue);
    color: #38bdf8;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-family: monospace;
}

[dir="rtl"] .academic-badge {
    left: auto;
    right: 20px;
}
/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */
.about-hero {
    padding: 140px 0 40px 0;
    position: relative;
}

.about-content-section {
    padding: 40px 0 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}

.sticky-card {
    position: sticky;
    top: 100px;
}

.about-quick-specs {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
}

.spec-label { color: var(--text-muted); }
.spec-value { color: #fff; font-weight: 600; }

.btn-full-width { width: 100%; text-align: center; }

/* Bio Text Formatting */
.about-bio-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.bio-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 24px;
}

.lead-p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.9;
}

.bio-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    margin: 28px 0;
    opacity: 0.3;
}

.tech-highlight-box {
    background: rgba(0, 242, 254, 0.03);
    border-right: 3px solid var(--accent-cyan);
    padding: 20px;
    border-radius: 8px 0 0 8px;
    margin: 28px 0;
}

[dir="ltr"] .tech-highlight-box {
    border-right: none;
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 8px 8px 0;
}

.box-title {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-family: monospace;
}

.callout-glass-box {
    background: linear-gradient(135deg, rgba(0,113,227,0.1) 0%, rgba(0,242,254,0.05) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 36px;
}

.callout-icon { font-size: 1.5rem; }

/* Pillars Grid */
.pillars-section {
    padding: 60px 0 100px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.pillar-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: monospace;
}

[dir="ltr"] .pillar-num { left: auto; right: 20px; }

.pillar-card h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
    margin-top: 20px;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
}
/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */
.contact-hero {
    padding: 140px 0 30px 0;
    position: relative;
}

.contact-content-section {
    padding: 30px 0 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
}

.card-title {
    color: var(--accent-cyan);
    font-size: 1rem;
    font-family: monospace;
    margin-bottom: 24px;
}

/* Contact Items */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--border-glow);
    transform: translateX(-4px);
}

[dir="ltr"] .contact-item:hover {
    transform: translateX(4px);
}

.icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Social Buttons Grid */
.socials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
}

/* Form Styles */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    color: #d1d5db;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .socials-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   SOLIDWORKS PAGE STYLES
   ========================================== */
.sw-hero {
    padding: 140px 0 30px 0;
    position: relative;
}

.sw-features-section {
    padding: 30px 0 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition-smooth);
}

.feature-card-glass:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.feat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card-glass h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card-glass p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Syllabus & Form Layout */
.sw-syllabus-section {
    padding: 20px 0 80px 0;
}

.sw-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}

.sw-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
}

.syllabus-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.syllabus-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.bullet {
    color: var(--accent-cyan);
    font-family: monospace;
    font-weight: bold;
}

.course-types {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.type-box h4 {
    color: #fff;
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.type-box p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.custom-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
}

.custom-select option {
    background: #111;
    color: #fff;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    .sw-grid { grid-template-columns: 1fr; }
}
/* ==========================================
   BLOG / ARTICLES PAGE STYLES
   ========================================== */
.blog-hero {
    padding: 140px 0 30px 0;
    position: relative;
}

.blog-content-section {
    padding: 30px 0 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.article-card-glass:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.article-image-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.article-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.article-card-glass:hover .article-image-box img {
    transform: scale(1.05);
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--text-muted);
}

.article-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(11, 15, 23, 0.85);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(8px);
}

[dir="ltr"] .article-badge {
    right: auto;
    left: 14px;
}

.article-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-excerpt {
    color: #d1d5db;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-read:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-cyan);
}

.no-data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   PROJECTS PAGE STYLES
   ========================================== */
.projects-hero {
    padding: 140px 0 30px 0;
    position: relative;
}

.projects-content-section {
    padding: 30px 0 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.project-card-glass:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 242, 254, 0.12);
}

.project-image-box {
    position: relative;
    width: 100%;
    height: 240px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card-glass:hover .project-image-box img {
    transform: scale(1.06);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(11, 15, 23, 0.85);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

[dir="ltr"] .project-badge {
    right: auto;
    left: 16px;
}

.project-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-desc {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 18px;
}

.btn-proj-link, .btn-proj-github {
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-proj-link {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.btn-proj-link:hover {
    background: var(--accent-cyan);
    color: #000;
}

.btn-proj-github {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-proj-github:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   MODERN BRAND LOGO (MLJ)
   ========================================== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    user-select: none;
    transition: var(--transition-smooth);
}

.logo-icon {
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.bracket {
    color: var(--accent-cyan, #00f2fe);
    font-weight: 300;
    opacity: 0.8;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--accent-cyan, #00f2fe);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* Hover Effects */
.brand-logo:hover .logo-text {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo:hover .bracket {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-cyan, #00f2fe);
}

.brand-logo:hover .logo-icon .bracket:first-child {
    transform: translateX(-3px);
}

.brand-logo:hover .logo-icon .bracket:last-child {
    transform: translateX(3px);
}

.brand-logo:hover .logo-badge {
    background: var(--accent-cyan, #00f2fe);
    color: #0b0f17;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}
/* ==========================================
   TECH STACK PAGE STYLES
   ========================================== */
.tech-hero {
    padding: 140px 0 30px 0;
    position: relative;
}

.tech-content-section {
    padding: 20px 0 80px 0;
}

.tech-category-group {
    margin-bottom: 48px;
}

.tech-category-title {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    font-family: monospace;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tech-card-glass:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.1);
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tech-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.tech-level-badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: bold;
    font-family: monospace;
}

.tech-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Progress Bar */
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transition: width 1s ease-in-out;
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}
.avatar-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--accent-cyan, #00f2fe);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.tech-overlay {
    position: absolute;
    top: 20px;
    left: 0; /* چسبیدن دقیق به دیواره سمت چپ */
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0; /* حذف هرگونه فاصله از چپ */
}

.tech-overlay span {
    background: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-left: none; /* حذف خط دور سمت چپ برای اتصال کامل به بوردر اصلی */
    color: #00f2fe;
    font-size: 0.75rem;
    font-family: monospace;
    padding: 6px 14px 6px 10px;
    border-radius: 0 8px 8px 0; /* گرد کردن فقط سمت راست تگ‌ها */
    width: fit-content;
    box-shadow: 4px 2px 12px rgba(0, 0, 0, 0.3);
}
/* ==========================================
   FIX TECH OVERLAY TO ATTACH TO LEFT BORDER
   ========================================== */
.profile-card-glass {
    position: relative !important;
}

.profile-image-container {
    padding-left: 0 !important; /* حذف فاصله از چپ */
    position: relative !important;
}

.tech-overlay {
    position: absolute !important;
    top: 20px !important;
    left: 0 !important; /* چسباندن به لبه چپ */
    right: auto !important; /* جلوگیری از تداخل جهت RTL */
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tech-overlay span {
    background: rgba(11, 15, 23, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    border-left: none !important; /* حذف خط سمت چپ برای اتصال کامل */
    color: #00f2fe !important;
    font-size: 0.75rem !important;
    font-family: monospace !important;
    padding: 6px 12px 6px 10px !important;
    border-radius: 0 8px 8px 0 !important; /* گرد کردن فقط سمت راست */
    width: fit-content !important;
    box-shadow: 4px 2px 10px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
}