/* Performance and SEO Optimizations */
html {
    scroll-behavior: smooth;
}

/* Optimize critical rendering path */
.hero-image,
.nav-logo-img {
    will-change: transform;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.nav-logo h2 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.cv-download {
    background: #3498db;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cv-download:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.hero-image {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.company-logo-img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.company-logo-img:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 10px 25px;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

.about-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 10px;
}

.stat p {
    font-size: 1.1rem;
    color: #666;
}

/* Quick Links */
.quick-links {
    padding: 80px 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.link-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.link-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.link-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.link-card p {
    color: #666;
}

/* Page Sections */
.page-section {
    padding: 120px 0 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

/* About Page Styles */
.about-detailed {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.profile-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.title {
    font-size: 1.3rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 5px;
}

.specialization {
    color: #666;
    margin-bottom: 20px;
}

.personal-info {
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.info-item i {
    color: #3498db;
    width: 20px;
}

.bio-section,
.core-competencies {
    margin-bottom: 40px;
}

.bio-section h3,
.core-competencies h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.competencies-list {
    list-style: none;
}

.competencies-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.competencies-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.contact-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    color: #3498db;
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.download-cv {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.job-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.company {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
}

.duration {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.responsibilities {
    list-style: none;
}

.responsibilities li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.responsibilities li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.experience-summary {
    margin-top: 80px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.highlight-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Education Styles */
.education-section,
.certifications-section,
.languages-section,
.additional-section {
    margin-bottom: 60px;
}

.education-section h2,
.certifications-section h2,
.languages-section h2,
.additional-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.education-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.education-content {
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 30px;
}

.education-main h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.institution {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 5px;
}

.year {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.details p {
    margin-bottom: 8px;
}

.education-icon {
    flex-shrink: 0;
}

.education-icon i {
    font-size: 4rem;
    color: #3498db;
}

.certifications-grid,
.languages-grid,
.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cert-card,
.language-card,
.additional-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cert-card:hover,
.language-card:hover,
.additional-card:hover {
    transform: translateY(-5px);
}

.cert-icon,
.language-flag {
    margin-bottom: 20px;
}

.cert-icon i,
.language-flag i,
.additional-card i {
    font-size: 2.5rem;
    color: #3498db;
}

.cert-card h3,
.language-card h3,
.additional-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.proficiency {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.proficiency.native {
    background: #2ecc71;
    color: white;
}

.proficiency.fluent {
    background: #3498db;
    color: white;
}

/* Skills Styles */
.skills-category {
    margin-bottom: 60px;
}

.skills-category h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    margin-bottom: 20px;
}

.skill-icon i {
    font-size: 2.5rem;
    color: #3498db;
}

.skill-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.skill-card p {
    color: #666;
    margin-bottom: 20px;
}

.skill-level {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #e9ecef;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.skill-level.expert::after {
    width: 90%;
    background: #2ecc71;
}

.skill-level.advanced::after {
    width: 75%;
    background: #3498db;
}

.skill-level.intermediate::after {
    width: 60%;
    background: #f39c12;
}

.skill-legend {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.skill-legend h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.legend-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-item .skill-level {
    width: 50px;
}

/* Contact Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-info-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.contact-details .contact-item {
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.contact-details .contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-text p {
    color: #666;
    margin-bottom: 5px;
}

.contact-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.availability {
    background: #2ecc71;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.additional-info {
    margin: 30px 0;
}

.additional-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 8px 0;
    color: #666;
}

.info-list i {
    color: #3498db;
    margin-right: 10px;
    width: 20px;
}

.download-section {
    margin-top: 30px;
}

.download-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.response-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.response-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.response-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.response-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-section i {
    margin-right: 8px;
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .about-detailed {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-dot {
        left: -32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo-img {
        height: 30px;
    }

    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .company-logo-img {
        width: 150px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .links-grid,
    .skills-grid,
    .highlights-grid,
    .certifications-grid,
    .languages-grid,
    .additional-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .legend-items {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item,
.skill-card,
.cert-card,
.language-card,
.additional-card,
.highlight-card,
.link-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .cv-download {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .page-section {
        padding: 20px 0;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Portfolio Styles */
.portfolio-overview {
    margin-bottom: 60px;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.portfolio-summary {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid #3498db;
}

.portfolio-summary h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.portfolio-summary p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.expertise-areas {
    margin-bottom: 60px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.expertise-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.expertise-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.expertise-item p {
    color: #666;
    line-height: 1.6;
}

.projects-section {
    margin-bottom: 60px;
}

.project-filters {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 5px;
    flex: 1;
    margin-right: 15px;
}

.project-client {
    background: #e8f5e8;
    color: #27ae60;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-role {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.project-description {
    margin-bottom: 20px;
}

.project-description ul {
    margin: 0;
    padding-left: 20px;
}

.project-description li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f1f8ff;
    color: #3498db;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-section {
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #3498db;
}

.timeline-date {
    position: absolute;
    left: -150px;
    top: 0;
    width: 130px;
    text-align: right;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.timeline-company {
    color: #3498db;
    font-weight: 600;
    margin: 0;
}

.training-section {
    margin-bottom: 60px;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.training-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.training-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.training-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.training-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.training-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Portfolio Mobile Styles */
@media (max-width: 768px) {
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .portfolio-summary {
        padding: 25px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
    }
    
    .project-header h3 {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .project-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        width: auto;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 21px;
    }
    
    .training-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
    }
}
