/* ===================================
   MODERN RESUME - Eduardo E. Flores Cruz
   Professional CV Design
   =================================== */

/* CSS Variables for easy theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 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);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 40px 20px;

    /* Clean professional gradient background - lighter tones */
    background:
        radial-gradient(ellipse at 0% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, #1e293b 0%, #334155 40%, #475569 70%, #334155 100%);
    background-attachment: fixed;
}

/* Main Container */
.resume-container {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #0a192f 0%, #0d3b66 50%, #1a5276 100%);
    color: white;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.header-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-info .title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.header-info .subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modern Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-action .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.btn-action .btn-icon i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.btn-action .btn-text {
    position: relative;
    z-index: 1;
}

/* Download CV Button - Green Gradient */
.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-download .btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-download:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-5deg);
}

.btn-download:hover .btn-icon i {
    animation: downloadBounce 0.6s ease infinite;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Contact Me Button - Blue Gradient */
.btn-contact {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-contact .btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.btn-contact:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-contact:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
}

.btn-contact:hover .btn-icon i {
    animation: planeFly 0.6s ease forwards;
}

@keyframes planeFly {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(3px, -3px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Share Button - Outline Style */
.btn-share {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-share .btn-icon {
    background: rgba(255, 255, 255, 0.15);
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-share:hover .btn-icon {
    background: rgba(255, 255, 255, 0.25);
}

.btn-share:hover .btn-icon i {
    animation: shareUp 0.5s ease forwards;
}

@keyframes shareUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Ripple Effect */
.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-action:active::before {
    width: 300px;
    height: 300px;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }

    .btn-action {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .btn-action .btn-icon {
        width: 28px;
        height: 28px;
    }

    .btn-action .btn-icon i {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .btn-action {
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Legacy btn classes for compatibility */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color);
}

.social-link i {
    font-size: 1.2rem;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
}

/* Left Column */
.content-left {
    padding: 50px;
    border-right: 1px solid var(--border-color);
}

/* Right Column (Sidebar) */
.content-right {
    padding: 50px 40px;
    background: var(--bg-secondary);
}

/* Section Styles */
.section {
    margin-bottom: 45px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About Section */
.about-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Timeline for Experience & Education */
.timeline {
    position: relative;
    padding-left: 30px;
}

/* Scrollable Experience Timeline */
.timeline.scrollable {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
}

.timeline.scrollable::-webkit-scrollbar {
    width: 6px;
}

.timeline.scrollable::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.timeline.scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.timeline.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-company {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 6px;
}

.timeline-company a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.timeline-company a:hover {
    color: var(--primary-dark);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    background: var(--bg-accent);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.timeline-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.timeline-achievements {
    list-style: none;
    padding: 0;
}

.timeline-achievements li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 5px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Achievements Section */
.achievements-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-item {
    background: var(--bg-secondary);
    padding: 15px 18px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.achievement-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievement-title::before {
    content: '\f091';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-color);
    font-size: 0.75rem;
}

.achievement-item .timeline-achievements {
    margin: 0;
}

.achievement-item .timeline-achievements li {
    font-size: 0.75rem;
    line-height: 1.6;
}

.achievements-section.scrollable {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.achievements-section.scrollable::-webkit-scrollbar {
    width: 6px;
}

.achievements-section.scrollable::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.achievements-section.scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.achievements-section.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sidebar-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Skills Section */
.skills-grouped {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-category {
    margin-bottom: 5px;
}

.skill-category-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.skill-category-title i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: white;
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.skill-tag.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
}

/* Soft Skills */
.soft-skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.soft-skill-item i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* Projects Section */
.project-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-title i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.project-company {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Accomplishments */
.accomplishment-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.accomplishment-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.accomplishment-subtitle {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.accomplishment-list {
    list-style: none;
    padding: 0;
}

.accomplishment-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.accomplishment-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 0.7rem;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 10px;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* Courses Tag Cloud */
.courses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.course-tag {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-accent);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 30px 0;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Improvements */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #334155 100%);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 25px;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .content-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .content-right {
        background: var(--bg-primary);
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .header {
        padding: 40px 25px;
    }

    .header-content {
        grid-template-columns: 1fr;
    }

    .header-info h1 {
        font-size: 1.8rem;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .social-links {
        flex-direction: column;
        gap: 12px;
    }

    .content-left,
    .content-right {
        padding: 30px 25px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .soft-skills-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-info h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-container {
        box-shadow: none;
        border-radius: 0;
    }

    .header {
        background: var(--secondary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .btn {
        display: none;
    }

    .project-card:hover,
    .skill-tag:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }

.sidebar-section {
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-section:nth-child(2) { animation-delay: 0.15s; }
.sidebar-section:nth-child(3) { animation-delay: 0.25s; }
.sidebar-section:nth-child(4) { animation-delay: 0.35s; }

/* ===== PROFESSIONAL ANIMATIONS ===== */

/* Slide In from Left Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gentle Float Animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(102, 126, 234, 0.2);
    }
}

/* Icon Bounce Animation */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    75% {
        transform: translateY(2px);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Header Content Animation */
.header-content {
    animation: fadeInUp 0.8s ease-out;
}

.header-info h1 {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.header-info .title {
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.header-info .subtitle {
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.social-links {
    animation: slideInLeft 0.6s ease-out 0.5s both;
}

.header-actions {
    animation: slideInRight 0.6s ease-out 0.6s both;
}

/* Section Icon Hover Animation */
.section-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section:hover .section-icon,
.sidebar-section:hover .sidebar-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.section-icon i,
.sidebar-icon i {
    transition: transform 0.3s ease;
}

.section:hover .section-icon i,
.sidebar-section:hover .sidebar-icon i {
    animation: iconBounce 0.5s ease;
}

/* Timeline Item Animations */
.timeline-item {
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-item::before {
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.timeline-item:hover {
    transform: translateX(5px);
}

/* Skill Tags Stagger Animation */
.skill-tag {
    opacity: 0;
    animation: scaleIn 0.4s ease-out forwards;
}

.skill-category:nth-child(1) .skill-tag:nth-child(1) { animation-delay: 0.05s; }
.skill-category:nth-child(1) .skill-tag:nth-child(2) { animation-delay: 0.1s; }
.skill-category:nth-child(1) .skill-tag:nth-child(3) { animation-delay: 0.15s; }
.skill-category:nth-child(1) .skill-tag:nth-child(4) { animation-delay: 0.2s; }
.skill-category:nth-child(1) .skill-tag:nth-child(5) { animation-delay: 0.25s; }
.skill-category:nth-child(2) .skill-tag:nth-child(1) { animation-delay: 0.3s; }
.skill-category:nth-child(2) .skill-tag:nth-child(2) { animation-delay: 0.35s; }
.skill-category:nth-child(2) .skill-tag:nth-child(3) { animation-delay: 0.4s; }
.skill-category:nth-child(3) .skill-tag { animation-delay: 0.45s; }
.skill-category:nth-child(4) .skill-tag { animation-delay: 0.5s; }
.skill-category:nth-child(5) .skill-tag { animation-delay: 0.55s; }
.skill-category:nth-child(6) .skill-tag { animation-delay: 0.6s; }

/* Highlighted Skill Tags */
.skill-tag.highlight {
    animation: scaleIn 0.4s ease-out forwards, pulseGlow 3s ease-in-out 1s infinite;
}

/* Skill Tag Hover Effects */
.skill-tag {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

/* Soft Skills Animation */
.soft-skill-item {
    opacity: 0;
    animation: slideInRight 0.4s ease-out forwards;
    transition: all 0.3s ease;
}

.soft-skill-item:nth-child(1) { animation-delay: 0.1s; }
.soft-skill-item:nth-child(2) { animation-delay: 0.15s; }
.soft-skill-item:nth-child(3) { animation-delay: 0.2s; }
.soft-skill-item:nth-child(4) { animation-delay: 0.25s; }
.soft-skill-item:nth-child(5) { animation-delay: 0.3s; }
.soft-skill-item:nth-child(6) { animation-delay: 0.35s; }
.soft-skill-item:nth-child(7) { animation-delay: 0.4s; }
.soft-skill-item:nth-child(8) { animation-delay: 0.45s; }

.soft-skill-item:hover {
    transform: translateX(8px);
    color: var(--primary-color);
}

.soft-skill-item:hover i {
    transform: scale(1.2);
}

/* Project Card Animations */
.project-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.35s; }

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.project-card:hover .project-title i {
    animation: gentleFloat 1s ease-in-out infinite;
}

/* Achievement Item Animations */
.achievement-item {
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.achievement-item:nth-child(1) { animation-delay: 0.1s; }
.achievement-item:nth-child(2) { animation-delay: 0.2s; }
.achievement-item:nth-child(3) { animation-delay: 0.3s; }
.achievement-item:nth-child(4) { animation-delay: 0.4s; }
.achievement-item:nth-child(5) { animation-delay: 0.5s; }
.achievement-item:nth-child(6) { animation-delay: 0.6s; }

.achievement-item:hover {
    transform: translateX(5px);
    border-left-width: 5px;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent);
}

/* Accomplishment Card Animation */
.accomplishment-card {
    opacity: 0;
    animation: scaleIn 0.6s ease-out 0.3s forwards;
    transition: all 0.3s ease;
}

.accomplishment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
}

/* Read More Link Animation */
.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    animation: gentleFloat 0.6s ease-in-out;
    transform: translateX(5px);
}

/* Social Links Hover Animation */
.social-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
}

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    animation: iconBounce 0.4s ease;
}

/* Section Divider Animation */
.section-divider {
    animation: shimmer 3s linear infinite;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border-color),
        rgba(102, 126, 234, 0.3),
        var(--border-color),
        transparent
    );
    background-size: 200% 100%;
}

/* About Text Animation */
.about-text p {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.2s; }
.about-text p:nth-child(2) { animation-delay: 0.35s; }
.about-text p:nth-child(3) { animation-delay: 0.5s; }

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.lang-option {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-option:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-option.active {
    color: white;
}

.toggle-switch {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.toggle-switch:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toggle-slider {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    left: 18px;
}

/* Responsive Language Toggle */
@media (max-width: 480px) {
    .language-toggle {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .lang-option {
        font-size: 0.7rem;
    }

    .toggle-switch {
        width: 32px;
        height: 18px;
    }

    .toggle-slider {
        width: 14px;
        height: 14px;
    }

    .toggle-switch.active .toggle-slider {
        left: 16px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
