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

/* RTL Support for Persian */
[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

:root {
    /* Navy Family Color Palette - Warmer Professional Tones */
    --primary-color: #1E3A5F;          /* Warmer Deep Navy with purple undertones */
    --primary-dark: #152238;           /* Darker warmer navy */
    --secondary-color: #2C4A6B;        /* Medium warmer navy */
    --accent-color: #C9A961;           /* Warm gold accent - Elegant warmth */
    --text-dark: #1E293B;              /* Warmer dark navy for text */
    --text-light: #64748B;             /* Warmer navy-gray for secondary text */
    --bg-light: #F8F6F3;               /* Warm cream tint background */
    --bg-white: #FFFFFF;               /* Pure white */
    --border-color: #E2E8F0;           /* Warm light gray borders */
    --shadow: 0 2px 4px -1px rgba(30, 58, 95, 0.15), 0 1px 2px -1px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 6px 10px -3px rgba(30, 58, 95, 0.2), 0 2px 4px -2px rgba(30, 58, 95, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 15px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, #1E3A5F, #2C4A6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.language-selector {
    margin-left: 1rem;
}

.language-selector select {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

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

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

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

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

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

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1E3A5F 0%, #2C4A6B 100%);
    color: white;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.greeting {
    display: block;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-title .name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-location {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 500px;
}

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

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #1E3A5F;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 95, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1E3A5F;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.profile-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.3);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
    position: relative;
}

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* Section Styles */
section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1E3A5F, #2C4A6B);
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

/* About Section */
.about {
    background: #ffffff;
}

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

.lead {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.about-card {
    background: rgba(250, 247, 244, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(201, 169, 97, 0.4);
}

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

.about-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.about-philosophy,
.connect-section {
    background: rgba(250, 247, 244, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 3px solid #1E3A5F;
}

.about-philosophy h3,
.connect-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Experience Section */
.experience {
    background: rgba(250, 247, 244, 0.5);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1E3A5F;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.6s ease;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1E3A5F;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #1E3A5F;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid #1E3A5F;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.company-logo-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(250, 247, 244, 0.5);
    border: 1px solid rgba(201, 169, 97, 0.3);
    padding: 8px;
    transition: var(--transition);
}

.timeline-content:hover .company-logo-wrapper {
    background: rgba(250, 247, 244, 0.7);
    border-color: rgba(30, 58, 95, 0.4);
    transform: scale(1.05);
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.company-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1E3A5F;
    background: rgba(30, 58, 95, 0.1);
    border-radius: 4px;
}

.timeline-header-text {
    flex: 1;
    min-width: 0;
}

.timeline-positions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201, 169, 97, 0.4);
}

.position-item {
    margin-bottom: 1.25rem;
}

.position-item:last-child {
    margin-bottom: 0;
}

.position-item + .position-item {
    padding-top: 1rem;
    border-top: 1px dashed rgba(201, 169, 97, 0.3);
}

.position-date {
    font-size: 0.85rem;
    color: #1E3A5F;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: #1E3A5F;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.duration {
    color: var(--text-light);
    font-weight: 400;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.timeline-company {
    font-size: 1.05rem;
    color: #1E3A5F;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.timeline-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Education Section */
.education {
    background: #ffffff;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.education-card {
    background: rgba(250, 247, 244, 0.6);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(44, 74, 107, 0.3);
}

.education-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.education-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.education-card h4 {
    font-size: 0.9rem;
    color: #1E3A5F;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.education-school {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.education-period {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Skills Section */
.skills {
    background: rgba(250, 247, 244, 0.3);
}

.skills-section,
.certifications-section,
.languages-section {
    margin-bottom: 2.5rem;
}

.skills-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid #1E3A5F;
}

.skill-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.4);
}

.skill-subcategory {
    margin-bottom: 1rem;
}

.skill-subcategory:last-child {
    margin-bottom: 0;
}

.skill-subcategory strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: rgba(250, 247, 244, 0.8);
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(201, 169, 97, 0.5);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(250, 247, 244, 1);
    border-color: #1E3A5F;
    transform: translateY(-1px);
}

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

.cert-card {
    background: white;
    padding: 1.15rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-top: 3px solid #1E3A5F;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
}

.cert-card h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.8rem;
    color: #1E3A5F;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.cert-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.cert-id {
    font-size: 0.65rem;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(201, 169, 97, 0.4);
    word-break: break-all;
    opacity: 0.75;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.language-item {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    gap: 0.75rem;
    min-width: 0;
}

.language-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.language-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.language-flag-fallback {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.language-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-level {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Publications Section */
.publications {
    background: #ffffff;
}

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

.publication-card {
    background: rgba(201, 169, 97, 0.15);
    padding: 1.15rem;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.publication-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.publication-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.publication-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Recommendations Section */
.recommendations {
    background: rgba(250, 247, 244, 0.5);
}

.recommendations-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.recommendation-card {
    background: white;
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid #1E3A5F;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.recommendation-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.recommendation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommendation-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-style: italic;
    position: relative;
    padding-left: 1.25rem;
}

.recommendation-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 3rem;
    color: #1E3A5F;
    opacity: 0.25;
    font-family: Georgia, serif;
    line-height: 1;
}

.recommendation-author {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.recommendation-author h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.recommendation-author p {
    font-size: 0.85rem;
    color: #1E3A5F;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.recommendation-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1E3A5F 0%, #2C4A6B 100%);
    color: white;
}

.contact-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.contact-card p {
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background: #1E3A5F;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

.footer-note {
    margin-top: 0.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .languages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }

    .language-item {
        padding: 1rem;
        min-width: 0;
    }

    .language-name {
        font-size: 0.9rem;
    }

    .language-level {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .language-selector {
        margin-left: auto;
        margin-right: 1rem;
        order: 1;
    }
    
    .language-selector select {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title .name {
        font-size: 3rem;
    }
    
    .greeting {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-location {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }

    .profile-circle {
        width: 240px;
        height: 240px;
        margin: 1.5rem auto 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.75rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 1rem;
    }

    .company-logo-wrapper {
        width: 50px;
        height: 50px;
        align-self: flex-start;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-positions {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .position-item {
        margin-bottom: 1rem;
    }

    .position-item + .position-item {
        padding-top: 0.75rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title .name {
        font-size: 2.25rem;
    }
    
    .greeting {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-location {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .about-grid,
    .education-grid,
    .certifications-grid,
    .publications-grid,
    .recommendations-grid,
    .skills-categories-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .skills-categories-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-card {
        padding: 1.25rem;
    }

    .recommendation-text {
        font-size: 0.85rem;
        padding-left: 0.75rem;
    }

    .recommendation-text::before {
        font-size: 2.5rem;
        left: -3px;
        top: -5px;
    }

    .skill-category-card {
        padding: 1.25rem;
    }

    .timeline-header {
        gap: 0.75rem;
    }

    .company-logo-wrapper {
        width: 45px;
        height: 45px;
    }

    .company-logo-fallback {
        font-size: 0.75rem;
    }

    .timeline-positions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .position-item {
        margin-bottom: 0.75rem;
    }

    .position-date,
    .timeline-title {
        font-size: 0.95rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }

    .cert-card {
        padding: 1rem;
    }

    .cert-card h4 {
        font-size: 0.85rem;
    }

    .cert-issuer {
        font-size: 0.75rem;
    }

    .cert-date,
    .cert-id {
        font-size: 0.7rem;
    }

    .education-card {
        padding: 1rem;
    }

    .education-icon {
        font-size: 1.75rem;
    }

    .education-card h3 {
        font-size: 0.95rem;
    }

    .education-card h4 {
        font-size: 0.85rem;
    }

    .publication-card {
        padding: 1rem;
    }

    .publication-icon {
        font-size: 1.75rem;
    }

    .publication-card h3 {
        font-size: 0.95rem;
    }

    .language-item {
        padding: 1rem;
    }

    .language-flag {
        width: 28px;
        height: 21px;
    }

    .language-flag-fallback {
        font-size: 1.25rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
    }
}

