/* CSS Variables for Theme Support */
:root {
    --primary-color: #0a54f3;
    --secondary-color: #64748b;
    --accent-color: #3bbbf6;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Improved contrast for better readability */
    --primary-color: #f4a942;
    --secondary-color: #a89a8f;
    --accent-color: #ffd89b;
    --background-color: #0f0d0b;
    --surface-color: #1c1612;
    --text-primary: #faf4ed;
    --text-secondary: #e6c9a8;
    --text-muted: #c4a57b;
    --border-color: #3d2f23;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    padding-bottom: 2rem;
}

/* Smooth theme transitions for all elements */
*,
*::before,
*::after {
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        fill 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        stroke 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preserve transform and opacity transitions */
.skill-tag,
.project-card,
.timeline-item,
.education-item,
.theme-option {
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s ease,
        opacity 0.3s ease !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--surface-color);
    box-shadow: var(--shadow-large);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Section Header with Theme Selector */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    gap: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Header Print Button */
.header-print-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header-print-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.header-print-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Add subtle animation for print button */
.header-print-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transition: left 1s;
}

.header-print-btn:hover::before {
    left: 100%;
}

/* Theme Selector Styles */
.theme-selector-container {
    flex-shrink: 0;
}

.theme-selector {
    display: flex;
    background-color: var(--background-color);
    border-color: var(--background-color);
    padding: 0px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    height: fit-content;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1.4rem;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* Light theme - ensure dark text for better contrast */
:root .theme-option:not(.active) {
    color: #1e293b;
}

/* Dark theme - ensure light text for better contrast */
[data-theme="dark"] .theme-option:not(.active) {
    color: #f5f0e8;
}

.theme-option:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.theme-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-option.active:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Light theme active button shadows */
:root .theme-option.active {
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

:root .theme-option.active:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

/* Dark theme (cappuccino) active button shadows */
[data-theme="dark"] .theme-option.active {
    box-shadow: 0 2px 8px rgba(196, 144, 96, 0.5);
}

[data-theme="dark"] .theme-option.active:hover {
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.6);
}

.theme-option i {
    font-size: 1rem;
    transition: all 0.3s ease;
    color: inherit;
}

/* Light theme icons for inactive buttons */
:root .theme-option:not(.active) i {
    color: #1e293b;
}

/* Dark theme icons for inactive buttons */
[data-theme="dark"] .theme-option:not(.active) i {
    color: #f5f0e8;
}

.theme-option:hover i {
    transform: scale(1.2);
    color: white;
}

.theme-option.active i {
    color: white;
}

.theme-option span {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Theme selector animation */
.theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transition: left 1s;
}

.theme-option:hover::before {
    left: 100%;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--border-color);
    position: relative;
}

/* Dynamic Dots Animation Wrapper */
.dots-animation-wrapper {
    position: absolute;
    left: -17px;
    top: 0;
    bottom: 0.5rem;
    width: 140px;
    height: auto;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
    animation: fadeInDots 5s ease-in-out forwards;
}

@keyframes fadeInDots {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.header:hover .dots-animation-wrapper {
    opacity: 1;
}

#dotsCanvas {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.profile-image {
    flex-shrink: 0;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    cursor: pointer;
}

.profile-image img:hover {
    transform: scale(1.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    text-align: left;
    line-height: 1.7;
    margin-top: 1rem;
    margin-right: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    gap: 0.5rem;
    min-width: 250px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item:hover i {
    transform: scale(1.5);
    color: var(--accent-color);
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.contact-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* PDF Download Links */
.contact-item a[href$=".pdf"] {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a[href$=".pdf"]:hover {
    transform: translateX(10px)
}

.contact-item a[href$=".pdf"]:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

/* PDF link icons */
.contact-item:has(a[href$=".pdf"]) i {
    color: var(--primary-color);
    background: transparent;
    padding: 0.25rem;
    border-radius: 50%;
    font-size: 1rem;
}

/* Hover effect for PDF containers */
.contact-item:has(a[href$=".pdf"]):hover {
    transform: translateX(8px);
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    flex: 1;
    min-width: 0;
}

/* Ensure proper vertical alignment between title and theme selector */
.section-header .section-title {
    border-bottom: none;
    padding-bottom: 0;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.section-title i {
    color: var(--primary-color);
}

/* IT Architect Section Styles */
.architect-overview {
    margin-bottom: 1.5rem;
}

.architect-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
    font-style: normal;
}

.architect-responsibilities {
    margin-bottom: 1.5rem;
}

.architect-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.architect-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.architect-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.architect-list li:last-child {
    margin-bottom: 0;
}


/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    transform: translateX(20px);
}

.timeline-item:nth-child(even).animate-in {
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 2.0rem;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border: 3px solid var(--surface-color);
    border-radius: 50%;
    box-shadow: var(--shadow-light);
}

.timeline-content {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.job-header {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.company {
    color: var(--primary-color);
    font-weight: 500;
}

.period {
    color: var(--text-muted);
}

.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.skill-category {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s ease;
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.skill-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transition: left 1s;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color);
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

/* Education Section */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s ease;
}

.degree {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-item .period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    opacity: 0;
}

.project-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--accent-color);
}

/* Dark Theme Specific Improvements */

/* Dark theme skill tag improvements */
[data-theme="dark"] .skill-tag {
    background-color: var(--primary-color);
    color: #0f0d0b;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-tag:hover {
    background-color: var(--accent-color);
    color: #0f0d0b;
    box-shadow: 0 5px 15px rgba(244, 169, 66, 0.4);
}

/* Dark theme timeline content */
[data-theme="dark"] .timeline-content {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .timeline-marker {
    background-color: var(--primary-color);
    border-color: var(--surface-color);
    box-shadow: 0 0 0 3px var(--border-color);
}

/* Dark theme project cards */
[data-theme="dark"] .project-card {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(244, 169, 66, 0.2);
}

[data-theme="dark"] .tech-tag {
    background-color: rgba(244, 169, 66, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

/* Dark theme education items */
[data-theme="dark"] .education-item {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skill-category {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Keyboard navigation focus states */
a:focus-visible,
button:focus-visible,
.theme-option:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Dark theme link improvements */
[data-theme="dark"] a {
    color: var(--accent-color);
}

[data-theme="dark"] a:hover {
    color: #ffffff;
    text-decoration: underline;
}

[data-theme="dark"] .project-link {
    color: var(--accent-color);
}

[data-theme="dark"] .project-link:hover {
    color: #ffffff;
}


/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: white;
    }

    .theme-selector-container,
    .header-print-btn {
        display: none;
    }

    .section {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }

    .timeline-content,
    .project-card,
    .skill-category,
    .education-item {
        break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: none;
    }

    .contact-item a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

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

    /* Hide dots animation on mobile devices */
    .dots-animation-wrapper {
        display: none;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        align-self: stretch;
    }

    .name {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

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

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

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

    .section-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        border-bottom: none;
        padding-bottom: 0;
    }

    .architect-description {
        font-size: 1rem;
        padding: 1rem;
    }

    .architect-description::before {
        font-size: 2rem;
        top: -0.25rem;
        left: 0.5rem;
    }

    .architect-responsibilities {
        padding: 1rem;
    }

    .header-controls {
        gap: 0.75rem;
    }

    .header-print-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .contact-item a[href$=".pdf"] {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .print-btn {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 1rem;
    }

    .profile-image img {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
        padding-right: 0rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .project-card,
    .skill-category,
    .education-item {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        gap: 0rem;
        text-align: center;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .header-print-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        gap: 0rem;
    }

    .contact-item a[href$=".pdf"] {
        padding: 0.15rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.3rem;
        border-radius: 15px;
    }

    .contact-item:has(a[href$=".pdf"]) i {
        padding: 0.2rem;
        font-size: 0.7rem;
    }

    .theme-selector {
        padding: 2px;
    }

    .theme-option {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .theme-option span {
        display: none;
    }

    .theme-option i {
        font-size: 0.9rem;
    }

    .architect-description {
        font-size: 0.95rem;
        padding: 0.75rem;
        border-left-width: 3px;
    }

    .architect-description::before {
        font-size: 1.5rem;
        top: 0;
    }

    .architect-list li {
        padding: 0.5rem 0 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

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

/* Smooth Theme Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced theme transition for specific elements */
.container,
.section,
.timeline-content,
.skill-category,
.project-card,
.education-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-selector {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Micro-Animations & Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    60%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    80% {
        transform: translateY(-5px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        border-right-color: transparent;
    }

    51%,
    100% {
        border-right-color: var(--primary-color);
    }
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Animation Classes */
.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-bounce {
    animation: bounce 0.6s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}