/* about.css - Modern Tab-based Biography Layout */
.biography-tabs {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: 'Vazirmatn FD', sans-serif;
}

/* Page Load Animations */
@keyframes titleIntro {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-100px);
        filter: blur(20px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateY(0);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes titleToPosition {
    0% {
        transform: scale(1.2) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes milestoneAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotateY(90deg);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05) rotateY(0deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
        filter: blur(0);
    }
}

@keyframes milestoneGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 0 0 0 rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.2), 0 0 0 10px rgba(255,255,255,0.1);
    }
}

/* Initial hidden states */
.page-title {
    opacity: 0;
    transform: scale(0.5) translateY(-100px);
    
}

.page-title.intro-animation {
    animation: titleIntro 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.page-title.move-to-position {
    animation: titleToPosition 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.milestone {
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotateY(90deg);
    filter: blur(10px);
}

.milestone.appear {
    animation: milestoneAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.milestone.appear .milestone-image {
    animation: milestoneGlow 2s ease-in-out infinite;
}

/* Dark mode animations */
.darkmode .milestone.appear .milestone-image {
    animation: milestoneGlow 2s ease-in-out infinite, milestoneGlowDark 3s ease-in-out infinite;
}

@keyframes milestoneGlowDark {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 0 0 rgba(93, 173, 226, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 15px rgba(93, 173, 226, 0.1);
    }
}

/* Enhanced title animation for center positioning */
@keyframes titleCenterIntro {
    0% {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
        filter: blur(30px);
        z-index: 1000;
    }
    30% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.3);
        filter: blur(10px);
    }
     70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(2px);
    }
    100% {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: blur(0);
        z-index: 1000;
    }
}

@keyframes titleMoveToPosition {
    0% {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        z-index: 1000;
        opacity: 1;
    }
    100% {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        z-index: auto;
        opacity: 1;
    }
}

.page-title.center-intro {
    animation: titleCenterIntro 3.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.page-title.move-to-final-position {
    animation: titleMoveToPosition 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure h1 stays visible after animations */
.page-title {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Smooth transitions for milestones */
.milestone {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.milestone.appear {
    transition: none;
}

/* Loading overlay for smooth experience */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.page-loading.hidden {
    opacity: 0;
}

/* Timeline Slider Styles */
.timeline-slider-wrapper {
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
}

.timeline-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}



.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.darkmode .timeline-progress {
    background: linear-gradient(90deg, var(--accent-color) 0%, #5dade2 100%);
}

.timeline-range {
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.timeline-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.timeline-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.timeline-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.timeline-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.timeline-milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: flex-start;
    position: relative;
    margin-top: 20px;
    padding: 0 20px;
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 120px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    background: #fff;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.darkmode .milestone-image {
    background: #2c3e50;
}

.milestone-image svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.milestone-title {
margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
  transition: all 0.3s ease;
  line-height: 1.3;
  opacity: 0.9;
  white-space: nowrap;
}

.darkmode .milestone-title {
    color: #bdc3c7;
}

.milestone:hover {
    transform: translateY(-8px);
}

.milestone:hover .milestone-image {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

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

.milestone:hover .milestone-title {
    color: #9c9c9c;
    opacity: 1;
    font-weight: 700;
}

.darkmode .milestone:hover .milestone-title {
    color: #fff;
}

.milestone.active {
    transform: translateY(-12px);
}

.milestone.active .milestone-image {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
    animation: pulse 2s infinite;
}

.darkmode .milestone.active .milestone-image {
    border-color: var(--accent-color);
}

.milestone.active .milestone-image svg {
    transform: scale(1.1);
}

.milestone.active .milestone-title {
    color: var(--primary-color);
    opacity: 1;
    font-weight: 700;
    font-size: 1rem;
}

.darkmode .milestone.active .milestone-title {
    color: var(--accent-color);
}

.milestone.passed .milestone-image {
    border-color: var(--primary-color);
    opacity: 0.7;
    transform: scale(0.95);
}

.darkmode .milestone.passed .milestone-image {
    border-color: var(--accent-color);
}

.milestone.passed .milestone-title {
    color: var(--primary-color);
    opacity: 0.7;
}

.darkmode .milestone.passed .milestone-title {
    color: var(--accent-color);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 0 0 var(--primary-color);
    }
    50% {
        box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 0 10px transparent;
    }
}

@keyframes pulseDark {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 0 0 var(--accent-color);
    }
    50% {
        box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 0 10px transparent;
    }
}

.darkmode .milestone.active .milestone-image {
    animation: pulseDark 2s infinite;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.darkmode .modal-container {
    background: #2c3e50;
    color: #ecf0f1;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 30px 20px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.darkmode .modal-header {
    background: linear-gradient(135deg, var(--accent-color), #5dade2);
}

#modalContent p {
  line-height: 200%;
  text-align: justify;
  font-size: 18px;
}

/* Avatar in Header */
.modal-avatar {
    width: 80px;
    height: 80px;
    
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.modal-avatar:hover {
    transform: scale(1.05);
}

/* Navigation Buttons in Header */
.modal-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Close Button */
.modal-close {
    position: absolute;
  top: 5px;
  right: 7px;
  background: rgba(241, 12, 12, 0.8);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Content */
.modal-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    position: relative;
}

/* Smart Scroll Arrow */
.scroll-arrow {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.scroll-arrow.visible {
    display: flex;
    animation: bounceArrow 2s infinite;
}

.scroll-arrow:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.scroll-arrow .arrow-text {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-arrow:hover .arrow-text {
    opacity: 1;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.tab-content {
    display: none; /* Hide original tab content */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.darkmode .tab-pane h2 {
    color: var(--accent-color);
}

.tab-pane h2 i {
    margin-left: 15px;
}

.content-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-pane p {
    text-align: justify;
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Modal Footer Navigation */
.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.darkmode .modal-footer {
    background: #34495e;
    border-top-color: #4a5a70;
}

.modal-footer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
	font-family: Vazirmatn FD, sans-serif;
}

.darkmode .modal-footer-btn {
    background: var(--accent-color);
}

.modal-footer-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.darkmode .modal-footer-btn:hover {
    background: #5dade2;
}

.modal-footer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Stage Indicator */
.stage-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.darkmode .stage-indicator {
    color: #bdc3c7;
}

.stage-dots {
    display: flex;
    gap: 6px;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.darkmode .stage-dot {
    background: #566573;
}

.stage-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.darkmode .stage-dot.active {
    background: var(--accent-color);
}

/* Hide original navigation */
.tab-navigation {
    display: none;
}

.nav-btn {
    display: none;
}


/* Resume/List Section Styles */
.list-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 40px;
}
.darkmode .list-section {
    background-color: #34495e;
    margin-bottom: 40px;
}
.list-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}
.darkmode .list-section h3 {
    margin-bottom: 20px;
    color: #f0f0f0;
    font-size: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}
.list-section h3 i {
    margin-left: 10px;
}
.list-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0056b3;
    font-size: 2rem;
}
.darkmode .list-section h2 {
    color: #66b0ff;
}
.list-section ul {
    list-style: none;
    padding-right: 0;
}
.list-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.darkmode .list-section ul li {
    border-bottom-color: #4a5a70;
}
.list-section ul li::before {
    content: "\f00c"; /* check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--success-color);
    margin-left: 10px;
}
.darkmode .list-section ul li::before {
    color: #007bff;
}
.list-section ul li:last-child {
    border-bottom: none;
}

/* Dark Mode for Education Section */
.darkmode .education-section,
.darkmode .teaching-section {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.darkmode .list-item {
    background-color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.darkmode .item-icon {
    background-color: #1a1a1a;
    color: #66b0ff;
}

.darkmode .item-content h4 {
    color: #66b0ff;
}

.darkmode .item-content p {
    color: #ccc;
}

.darkmode .teaching-card {
    background-color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.darkmode .card-header {
    background-color: #0056b3;
}

.darkmode .card-body p {
    color: #ccc;
}

/* Modern Education Section Styles */
.education-timeline {
    margin-bottom: 50px;
}

.education-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.modern-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.item-icon {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #007bff;
    background-color: #e6f2ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-left: 15px;
}

.item-content {
    flex: 1;
}

.item-content h4 {
    margin: 0 0 5px 0;
    color: #0056b3;
    font-size: 1.2rem;
}

.item-content p {
    margin: 0;
    color: #6c757d;
}

/* Teaching Section Styles */
.teaching-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.teaching-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
}

.card-header i {
    font-size: 1.2rem;
    margin-left: 10px;
}

.card-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.card-body {
    padding: 15px;
}

.card-body p {
    margin: 5px 0;
    color: #6c757d;
}

/* سوابق اجرایی */
.experience-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.subsection-title {
    font-size: 1.5rem;
    color: #343a40;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.subsection-title i {
    margin-left: 10px;
    color: #007bff;
}

.experience-timeline {
    position: relative;
    padding: 20px 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    width: 4px;
    background: linear-gradient(to bottom, #007bff, #00c6ff);
    border-radius: 4px;
}

.experience-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.experience-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-right: 40px;
}

.experience-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.experience-icon {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,123,255,0.3);
    z-index: 1;
}

.experience-content {
    flex: 1;
}

.experience-content h4 {
    margin: 0;
    font-size: 1rem;
    color: #495057;
}

/* فعالیت در مطبوعات */
.media-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.media-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.media-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.media-icon {
    width: 50px;
    height: 50px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    box-shadow: 0 3px 8px rgba(40,167,69,0.3);
}

.media-icon i {
    font-size: 1.2rem;
}

.media-content {
    flex: 1;
}

.media-content h4 {
    margin: 0;
    font-size: 1rem;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .teaching-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .media-cards {
        grid-template-columns: 1fr;
    }
    
    .experience-timeline::before {
        right: 15px;
    }
    
    .experience-item {
        margin-right: 30px;
    }
    
    .experience-icon {
        right: -30px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .teaching-grid {
        grid-template-columns: 1fr;
    }
    
    .list-item {
        flex-direction: column;
    }
    
    .item-icon {
        margin-bottom: 10px;
        margin-left: 0;
    }
    
    .media-card {
        flex-direction: column;
        text-align: center;
    }
    
    .media-icon {
        margin-bottom: 10px;
        margin-left: 0;
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .timeline-slider-wrapper {
        padding: 15px 10px;
    }
    
    .timeline-track {
        margin: 40px 0;
        height: 6px;
    }
    
    .timeline-range::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .timeline-range::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
    
    .timeline-milestones {
        margin-top: 15px;
        gap: 5px;
    }
    
    .milestone {
        min-width: 80px;
        max-width: 90px;
    }
    
    .milestone-image {
        width: 60px;
        height: 60px;
    }
    
    .milestone-title {
        font-size: 0.75rem;
        margin-top: 8px;
    }
    
    .milestone.active .milestone-title {
        font-size: 0.8rem;
    }

    /* Modal Responsive */
    .timeline-milestones {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }
    
    .milestone {
        padding: 8px;
        max-width: 100px;
    }
    
    .milestone-image {
        width: 60px;
        height: 60px;
    }
    
    .milestone-title {
        font-size: 0.75rem;
        margin-top: 6px;
    }
    
    .modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px 15px;
       
        gap: 15px;
    }
    
    .modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 20px;
        max-height: 50vh;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-footer-btn {
        padding: 10px 20px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
        min-width: 120px;
    }
    
    .stage-indicator {
        order: -1;
    }
    
    .tab-pane h2 {
        font-size: 1.5rem;
    }

    .tab-pane p {
        font-size: 0.95rem;
    }
    
    .scroll-arrow {
        width: 50px;
        height: 50px;
        bottom: 100px;
        font-size: 1.3rem;
		bottom: 150px;
    }
    
    .scroll-arrow .arrow-text {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: -30px;
    }
}

@media screen and (max-width: 480px) {
    .timeline-slider-wrapper {
        padding: 10px 5px;
    }
    
    .timeline-track {
        margin: 30px 0;
        height: 5px;
    }
    
    .timeline-range::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .timeline-range::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
    
    .timeline-milestones {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .milestone {
        min-width: 70px;
        max-width: 80px;
        margin-bottom: 10px;
    }
    
    .milestone-image {
        width: 50px;
        height: 50px;
    }
    
    .milestone-title {
        font-size: 0.7rem;
        margin-top: 6px;
        line-height: 1.2;
    }
    
    .milestone.active .milestone-title {
        font-size: 0.75rem;
    }
    
    .milestone:hover {
        transform: translateY(-4px);
    }
    
    .milestone.active {
        transform: translateY(-6px);
    }
}

@media screen and (min-width: 769px) {
    .tab-nav {
        justify-content: center; /* Center tabs on larger screens */
    }
}

.modal-content h2 {
  background: #f9f8f8;
  gap: 10px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px;
}


/* Modern News Button Styles */
.news-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 80px 0 50px 0;
    padding: 20px;
}

.modern-news-button {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 15px 20px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 600px;
    width: 100%;
}

.darkmode .modern-news-button {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    box-shadow: 0 10px 40px rgba(93, 173, 226, 0.4);
}

.modern-news-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.darkmode .modern-news-button:hover {
    box-shadow: 0 15px 50px rgba(93, 173, 226, 0.6);
}

/* Button Glow Effect */
.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.modern-news-button:hover .button-glow {
    opacity: 1;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Button Content */
.button-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 1;
}

.button-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.modern-news-button:hover .button-icon {
    transform: rotate(360deg) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.button-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.button-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    display: block;
    line-height: 1.3;
}

.button-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

.button-arrow {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.4s ease;
}

.modern-news-button:hover .button-arrow {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.3);
}

/* Particle Animation */
.button-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

.modern-news-button:hover .particle {
    animation: particleFloat 3s infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0% {
        bottom: 0;
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* Shimmer Effect */
.modern-news-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.modern-news-button:hover::before {
    left: 100%;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .news-button-container {
        margin: 50px 0 30px 0;
        padding: 15px;
    }
    
    .modern-news-button {
        padding: 20px 25px;
    }
    
    .button-content {
        gap: 15px;
    }
    
    .button-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .button-title {
        font-size: 1.1rem;
    }
    
    .button-subtitle {
        font-size: 0.9rem;
    }
    
    .button-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .news-button-container {
        margin: 40px 0 20px 0;
    }
    
    .modern-news-button {
        padding: 18px 20px;
        border-radius: 15px;
    }
    
    .button-content {
        gap: 12px;
    }
    
    .button-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .button-title {
        font-size: 1rem;
    }
    
    .button-subtitle {
        font-size: 0.85rem;
    }
    
    .button-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
