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

/* CSS Variables */
:root {
    --font-en: 'Inter', sans-serif;
    --font-fa: 'Vazirmatn', sans-serif;
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --accent-dark: #059669;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-en);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

html[lang="fa"] body {
    font-family: var(--font-fa);
    direction: rtl;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-menu li {
    text-align: left;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Language Toggle in Navigation */
.nav-lang-toggle {
    margin-left: 20px;
}

.nav-lang-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.nav-lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-lang-btn i {
    font-size: 0.9rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

/* Floating Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-accent);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-placeholder {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    transition: var(--transition);
}

.image-placeholder img.loaded + .image-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.typing-text {
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 480px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

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

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 60px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Skill Level Bars */
.skill-level {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-in-out;
}

.skill-card.animate .skill-bar[data-level="95"] { width: 95%; }
.skill-card.animate .skill-bar[data-level="90"] { width: 90%; }
.skill-card.animate .skill-bar[data-level="85"] { width: 85%; }
.skill-card.animate .skill-bar[data-level="92"] { width: 92%; }

/* Experience Section */
.experience {
    background: white;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

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

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 200px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 40px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Skills Used Tags */
.skills-used {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

/* Certifications Section */
.certifications {
    background: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.certification-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-issuer {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--accent-dark);
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

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

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Social Links */
.social-links {
    text-align: center;
}

.social-links h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-light);
    background: white;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-link i {
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-link span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Social Media Colors */
.social-link.linkedin { border-color: #0077b5; }
.social-link.linkedin:hover { background: #0077b5; color: white; }
.social-link.linkedin i { color: #0077b5; }
.social-link.linkedin:hover i,
.social-link.linkedin:hover span { color: white; }

.social-link.github { border-color: #333; }
.social-link.github:hover { background: #333; color: white; }
.social-link.github i { color: #333; }
.social-link.github:hover i,
.social-link.github:hover span { color: white; }

.social-link.twitter { border-color: #1da1f2; }
.social-link.twitter:hover { background: #1da1f2; color: white; }
.social-link.twitter i { color: #1da1f2; }
.social-link.twitter:hover i,
.social-link.twitter:hover span { color: white; }

.social-link.instagram { border-color: #e4405f; }
.social-link.instagram:hover { background: #e4405f; color: white; }
.social-link.instagram i { color: #e4405f; }
.social-link.instagram:hover i,
.social-link.instagram:hover span { color: white; }

.social-link.telegram { border-color: #0088cc; }
.social-link.telegram:hover { background: #0088cc; color: white; }
.social-link.telegram i { color: #0088cc; }
.social-link.telegram:hover i,
.social-link.telegram:hover span { color: white; }

.social-link.whatsapp { border-color: #25d366; }
.social-link.whatsapp:hover { background: #25d366; color: white; }
.social-link.whatsapp i { color: #25d366; }
.social-link.whatsapp:hover i,
.social-link.whatsapp:hover span { color: white; }

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
}

/* RTL Adjustments */
html[lang="fa"] .nav-menu {
    direction: rtl;
    margin: 0;
    flex-direction: row-reverse;
    text-align: right;
}

html[lang="fa"] .nav-menu li {
    text-align: right;
}

html[lang="fa"] .hero-content {
    direction: rtl;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
}

html[lang="fa"] .hero-text,
html[lang="fa"] .hero-title,
html[lang="fa"] .hero-name,
html[lang="fa"] .hero-buttons {
    text-align: right;
}

html[lang="fa"] .hero-stats {
    direction: ltr;
}

html[lang="fa"] .timeline::before {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

html[lang="fa"] .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

html[lang="fa"] .timeline-item:nth-child(even) {
    flex-direction: row;
}

html[lang="fa"] .nav-lang-toggle {
    margin-right: 20px;
    margin-left: 0;
}

html[lang="fa"] .nav-container {
    flex-direction: row-reverse;
}

html[lang="fa"] .nav-logo {
    text-align: right;
}

html[lang="fa"] .social-grid {
    direction: ltr;
}

html[lang="fa"] .footer-content {
    grid-template-columns: 1fr 2fr;
}

html[lang="fa"] .certification-card {
    flex-direction: row-reverse;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        inset-inline: 0;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
        z-index: 998;
        gap: 20px;
        transform: translateX(-100%);
    }

    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-lang-toggle {
        margin: 20px 0 0 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 100px 20px 50px;
        justify-items: center;
    }

    .hero-text {
        align-items: center;
        text-align: center;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .hero-name {
        font-size: 2.3rem;
    }

    .hero-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        width: 240px;
        height: 240px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 60px;
    }
    
    .timeline-date {
        flex: none;
        margin-bottom: 20px;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .certification-card {
        flex-direction: column;
        text-align: center;
    }

    html[lang="fa"] .certification-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    html[lang="fa"] .nav-menu {
        align-items: flex-end;
        text-align: right;
        justify-content: flex-start;
        transform: translateX(100%);
    }

    html[lang="fa"] .hero-text {
        align-items: center;
        text-align: center;
    }

    html[lang="fa"] .hero-title,
    html[lang="fa"] .hero-name,
    html[lang="fa"] .hero-buttons,
    html[lang="fa"] .hero-description {
        text-align: center;
    }

    html[lang="fa"] .nav-menu.active {
        transform: translateX(0);
    }
    
    html[lang="fa"] .timeline::before {
        right: 30px;
        left: auto;
    }
    
    html[lang="fa"] .timeline-item {
        margin-right: 60px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 1rem;
        line-height: 1.65;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .nav, .scroll-indicator, .floating-shape {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
}