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

:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6a75f8;
    --accent-color: #ff6b6b;
    --dark-color: #2a2a3c;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Vintage Computer Typing Animation */
.typing-container {
    margin-bottom: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2a 0%, #16213e 100%);
    padding: 20px 30px;
    border-radius: 10px;
    border: 2px solid #4a6cf7;
    box-shadow: 
        0 0 20px rgba(74, 108, 247, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.typing-text {
    font-family: 'Courier New', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
}

.typed-text {
    border-right: 3px solid var(--primary-color);
    padding-right: 4px;
    min-height: 1.2em;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
    font-weight: 400;
}

/* Blinking cursor animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Scan lines effect */
.typing-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.typing-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(255, 255, 255, 0.02) 50%
    );
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    animation: professional-float 8s ease-in-out infinite;
    z-index: 10;
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 32px rgba(74, 108, 247, 0.3);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.tech-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(74, 108, 247, 0.5);
    cursor: pointer;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(74, 108, 247, 0.3);
    border-radius: 18px;
    animation: pulse 3s ease-out infinite;
}

/* Professional floating animation */
@keyframes professional-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate3d(8px, -12px, 0) rotate(3deg) scale(1.05);
    }
    50% {
        transform: translate3d(-5px, -18px, 0) rotate(-2deg) scale(1.08);
    }
    75% {
        transform: translate3d(-8px, -12px, 0) rotate(1deg) scale(1.05);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Position the elements around the profile image */
.element-1 {
    top: 15%;
    right: -5%;
    animation-delay: 0s;
}

.element-2 {
    top: 65%;
    left: -5%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    right: 20%;
    animation-delay: 4s;
}

.element-4 {
    top: 35%;
    left: 10%;
    animation-delay: 1s;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Location Animation */
.location-animation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #e9ecef;
}

.location-animation h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.simple-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.iran-silhouette {
    width: 200px;
    height: 120px;
    background: 
        radial-gradient(ellipse at 30% 40%, #4a6cf7 0%, #4a6cf7 20%, transparent 20%),
        radial-gradient(ellipse at 70% 60%, #4a6cf7 0%, #4a6cf7 25%, transparent 25%),
        linear-gradient(135deg, transparent 30%, #4a6cf7 30%, #4a6cf7 70%, transparent 70%);
    border-radius: 10px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(74, 108, 247, 0.2);
    animation: float-map 6s ease-in-out infinite;
}

.tehran-dot {
    position: absolute;
    top: 45%;
    left: 40%;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pulse-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-map 2s ease-out infinite;
}

.pulse-effect.delay-1 {
    animation-delay: 0.7s;
}

.pulse-effect.delay-2 {
    animation-delay: 1.4s;
}

.location-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-details i {
    color: #ff6b6b;
    font-size: 1.5rem;
}

.location-details div {
    text-align: right;
}

.location-details strong {
    display: block;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.location-details span {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

@keyframes pulse-map {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background-color: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 30px;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-right: 70px;
}

.timeline-date {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.timeline-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul {
    list-style-type: none;
}

.timeline-content li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-level {
    width: 60%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: var(--light-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-item {
    display: flex;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-10px);
}

.education-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-content h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Certificates Section */
.certificates {
    padding: 100px 0;
    background-color: var(--white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.certificate-item {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.certificate-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.certificate-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1rem;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-details p {
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Vazirmatn', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    right: 0.5rem;
    font-size: 0.8rem;
    background-color: var(--white);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 50px 0 30px;
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .typing-text {
        font-size: 2.5rem;
    }
    
    .typing-container {
        padding: 15px 20px;
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        text-align: center;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .element-1 {
        top: 10%;
        right: -3%;
    }
    
    .element-2 {
        top: 70%;
        left: -3%;
    }
    
    .element-3 {
        bottom: 15%;
        right: 15%;
    }
    
    .element-4 {
        top: 30%;
        left: 5%;
    }
    
    .typing-text {
        font-size: 2rem;
    }
    
    .typing-container {
        padding: 10px 15px;
        min-height: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        right: 20px;
    }
    
    .timeline-item {
        padding-right: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .iran-silhouette {
        width: 150px;
        height: 90px;
    }
}

/* ===== Job Portals Section ===== */
.job-portals {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    position: relative;
    overflow: hidden;
}

.job-portals::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.job-portals::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.section-title.job-portals-title {
    color: #2c3e50;
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 20px;
}

.section-title.job-portals-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.portals-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.portal-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to left, #3498db, #2c3e50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portal-card:hover::before {
    transform: scaleX(1);
}

.portal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.portal-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.portal-icon.linkedin { 
    background: linear-gradient(135deg, #0077B5, #00A0DC); 
}
.portal-icon.jobvision { 
    background: linear-gradient(135deg, #FF6B35, #FF9E00); 
}
.portal-icon.e-estekhdam { 
    background: linear-gradient(135deg, #27ae60, #2ecc71); 
}
.portal-icon.quera { 
    background: linear-gradient(135deg, #8E44AD, #9B59B6); 
}

.portal-info h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.portal-info p {
    margin: 5px 0 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.portal-card > p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: linear-gradient(to left, #3498db, #2c3e50);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: 2px solid transparent;
}

.portal-link:hover {
    background: transparent;
    color: #2c3e50;
    border-color: #3498db;
    transform: translateX(-5px);
}

.portal-link i {
    transition: transform 0.3s ease;
}

.portal-link:hover i {
    transform: translateX(5px);
}

.portal-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Copy Button Style */
.copy-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Vazirmatn', sans-serif;
}

.copy-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.copy-btn.copied {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

/* Responsive Design for Job Portals */
@media (max-width: 768px) {
    .job-portals {
        padding: 50px 20px;
    }
    
    .portals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portal-card {
        padding: 20px;
    }
    
    .portal-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    
    .stat-value,
    .stat-label {
        display: inline;
    }
    
    .stat-value {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .portal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .portal-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .portal-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.portal-card:nth-child(1) { animation-delay: 0.1s; }
.portal-card:nth-child(2) { animation-delay: 0.2s; }
.portal-card:nth-child(3) { animation-delay: 0.3s; }
.portal-card:nth-child(4) { animation-delay: 0.4s; }

/* به HomePage.css اضافه کنید */

.portal-custom-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.portal-icon {
    /* حالت قبلی را حفظ کنید */
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

/* اگر می‌خواهید فقط تصویر نمایش داده شود */
.portal-icon img {
    max-width: 70%;
    max-height: 70%;
}

/* برای حالت hover */
.portal-icon:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

<!-- About Section -->
/* استایل بخش نوستالژی */
.nostalgia-story {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nostalgia-title {
    text-align: center;
    color: #4cc9f0;
    margin-bottom: 40px;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

.timeline-story {
    position: relative;
    padding-right: 50px;
}

.timeline-story::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4cc9f0, #4361ee);
    border-radius: 2px;
}

.story-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.story-item::before {
    content: '';
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4361ee;
    border: 4px solid #1a1a2e;
    z-index: 1;
}

.story-image {
    flex: 0 0 250px;
    margin-left: 40px;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #4361ee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: scale(1.03);
}

.image-caption {
    text-align: center;
    font-size: 0.9em;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

.story-text {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border-right: 4px solid #4cc9f0;
}

.story-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.story-text strong {
    color: #4cc9f0;
}

/* گرید کنسول‌ها */
.consoles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.console-icon {
    text-align: center;
}

.console-icon img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #333;
}

.console-icon span {
    display: block;
    font-size: 0.8em;
    margin-top: 5px;
    color: #ccc;
}

/* بخش اطلاعات تکمیلی */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.info-card {
    background: linear-gradient(145deg, #1e3c72 0%, #2a5298 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.info-card i {
    font-size: 3em;
    color: #4cc9f0;
    margin-bottom: 20px;
}

.info-card h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-card p {
    color: #ccc;
    line-height: 1.6;
}

/* موقعیت مکانی (استایل فعلی شما) */
.location-animation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .story-item {
        flex-direction: column;
        text-align: center;
    }
    
    .story-image {
        flex: 0 0 auto;
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .timeline-story {
        padding-right: 0;
    }
    
    .timeline-story::before {
        display: none;
    }
    
    .story-item::before {
        display: none;
    }
    
    .consoles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
}



<style>
/* Persian Date Widget Styles */
.persian-date-widget {
    position: fixed;
    top: 100px;
    left: 20px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 280px;
    font-family: 'Vazirmatn', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    direction: rtl;
    text-align: center;
}

.persian-date-widget .date-time-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.persian-date-widget .hijri-date {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(90deg, #ffd54f, #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.persian-date-widget .gregorian-date {
    font-size: 0.9em;
    opacity: 0.9;
}

.persian-date-widget .current-time {
    font-size: 2em;
    font-weight: bold;
    direction: ltr;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
    margin: 5px 0;
}

.persian-date-widget .today-events {
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-top: 5px;
    min-height: 20px;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .persian-date-widget {
        position: relative;
        top: auto;
        left: auto;
        width: 90%;
        margin: 20px auto;
        display: block;
    }
}
</style>


/* email section  */
/* استایل‌های فرم تماس */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.btn-loading {
    display: none;
}

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

/* استایل دکمه‌ها */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* استایل فرم */
.form-notice {
    margin: 15px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-right: 3px solid #4a6cf7;
    font-size: 0.9em;
}

.form-notice a {
    color: #4a6cf7;
    text-decoration: none;
}

.form-notice a:hover {
    text-decoration: underline;
}