@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

@media (max-width: 1024px) {
    html {
        scroll-padding-bottom: 8rem;
    }
}

body {
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
    font-weight: 400;
}

@media (max-width: 1024px) {
    body {
        scroll-snap-type: y proximity;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

@media (max-width: 1024px) {
    .container {
        padding-bottom: 6rem;
    }
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.03) 0%, rgba(80, 175, 149, 0.03) 100%);
    animation: float 20s infinite ease-in-out;
}

.shape-1 { width: 300px; height: 300px; top: 10%; right: -10%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; bottom: 20%; left: -5%; animation-delay: -10s; }
.shape-3 { width: 150px; height: 150px; top: 60%; right: 20%; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Personal Section */
header {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.profile-image {
    margin-top: 3rem;
    width: 150px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.15);
}

.name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

main {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.bio {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 3rem;
    color: #333;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Universal Section Styles */
.section {
    margin: 4rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

@media (max-width: 1024px) {
    .section {
        scroll-snap-align: start;
        margin: 3rem 0;
    }
    
    #personal {
        scroll-snap-align: start;
    }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

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

.section-title-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.section-title-link:hover {
    color: #4a90e2;
    transform: translateY(-2px);
}

.section-title-link::before {
    content: '🔗';
    position: absolute;
    left: -2rem;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.section-title-link:hover::before {
    opacity: 0.7;
    left: -2.5rem;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Tags Layout */
.tags .section-content {
    margin-bottom: 3rem;
}

/* Timeline Layout */
.timeline .section-content {
    flex-direction: column;
    gap: 2.5rem;
}

/* Links Layout */
.links .section-content {
    gap: 2rem;
}

/* Timeline Items */
.item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-link:hover {
    text-decoration: none;
}

.item {
    text-decoration: none; 
    color: inherit;
    display: block;
    padding: 2rem;
    background: rgba(250, 250, 250, 0.8);
    border: 1px solid rgba(224, 224, 224, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 26, 114, 0.08);
}

.item-header {
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.item-title {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.item-subtitle {
    text-decoration: none;
    color: #4a90e2;
    font-weight: 500;
    font-size: 1rem;
}

.item-location {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
}

.item-duration {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
}

.item-description {
    text-decoration: none;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    text-align: justify;
}

.item-details {
    text-decoration: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(224, 224, 224, 0.5);
    list-style: none;
    padding-left: 0;
}

.item-details li {
    text-decoration: none;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.5;
    text-align: justify;
}

.item-details li::before {
    text-decoration: none;
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.item-tags {
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Generic Tag Styles */
.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(80, 175, 149, 0.1);
    border: 1px solid rgba(80, 175, 149, 0.2);
    border-radius: 1rem;
    font-size: 0.8rem;
    color: #50af95;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tags .tag {
    padding: 0.6rem 1.2rem;
    background: rgba(74, 144, 226, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.15);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: #4a90e2;
    font-weight: 500;
}

.tag:hover {
    background: rgba(74, 144, 226, 0.12);
    border-color: rgba(74, 144, 226, 0.25);
    transform: translateY(-2px);
}

/* Contact Section */
.contact .section-content {
    gap: 2rem;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-link:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.contact-list {
    list-style: none;
    padding: 0.8rem;
    margin: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.contact-list li {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-list li:hover {
    transform: translateY(-5px) scale(1.1);
}

.contact-list li:hover ~ li {
    transform: translateX(10px);
}

.contact-list img,
.contact-list i {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .contact-list {
        padding: 0.6rem;
        gap: 0.8rem;
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .contact-list::-webkit-scrollbar {
        display: none;
    }
    
    .contact-list img,
    .contact-list i {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}

/* Desktop Floating Dock */
@media (min-width: 1025px) {
    .floating-menu {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        width: auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.8rem 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0;
        pointer-events: none;
    }

    .floating-menu.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        align-items: center;
    }

    .menu-link {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
        text-align: center;
        border-radius: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        min-height: 60px;
        min-width: 70px;
        text-decoration: none;
        color: #666;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
    }

    .menu-icon {
        display: block;
        width: 24px;
        height: 24px;
        transition: all 0.3s ease;
    }

    .menu-text {
        display: block;
        font-size: 0.75rem;
        transition: all 0.3s ease;
    }

    .menu-link:hover {
        color: #4a90e2;
        background: rgba(74, 144, 226, 0.1);
        transform: translateY(-8px) scale(1.1);
    }

    .menu-link:hover .menu-icon {
        transform: scale(1.2);
    }

    .menu-link.active {
        color: #4a90e2;
        background: rgba(74, 144, 226, 0.15);
        font-weight: 600;
        transform: translateY(-4px);
    }

    .menu-link.active::before {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: linear-gradient(135deg, #4a90e2, #50af95);
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
    }
}

/* Mobile Bottom Navigation */
@media (max-width: 1024px) {
    .floating-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 1rem 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }

    .menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.3rem;
        max-width: 100%;
    }

    .menu-link {
        padding: 0.7rem 0.4rem;
        font-size: 0.75rem;
        text-align: center;
        border-radius: 1rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-height: 48px;
        text-decoration: none;
        color: #666;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

    .menu-icon {
        display: block;
        width: 20px;
        height: 20px;
    }

    .menu-text {
        display: block;
        font-size: 0.7rem;
    }

    .menu-link:hover {
        color: #4a90e2;
        background: rgba(74, 144, 226, 0.12);
        transform: translateY(-2px);
    }

    .menu-link.active {
        color: #4a90e2;
        background: rgba(74, 144, 226, 0.15);
        font-weight: 600;
    }

    .menu-link.active::before {
        content: '';
        position: absolute;
        top: 0.4rem;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        background: linear-gradient(135deg, #4a90e2, #50af95);
        border-radius: 50%;
        box-shadow: 0 0 6px rgba(74, 144, 226, 0.4);
    }
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    display: flex;
    gap: 0.3rem;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 1rem 1rem;
    padding: 0.3rem;
    border: 1px solid rgba(224, 224, 224, 0.3);
    border-top: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.theme-switcher:hover,
.theme-switcher.show {
    transform: translateX(-50%) translateY(0);
}

.theme-switcher::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.theme-button {
    padding: 0.3rem 0.6rem;
    border: none;
    background: transparent;
    color: #666;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 35px;
}

.theme-button:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    transform: translateY(-2px);
}

.theme-button.active {
    background: #4a90e2;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

@media (max-width: 768px) {
    .theme-switcher {
        gap: 0.2rem;
        padding: 0.2rem;
    }
    
    .theme-button {
        padding: 0.2rem 0.4rem;
        font-size: 0.6rem;
        min-width: 25px;
    }
}

/* Light Theme - already defined above */
body[data-theme="light"] {
    /* Light styles already applied */
}

/* 90s Retro Theme - Windows 95 Style */
body[data-theme="retro"] {
    background: #ffffff;
    color: #000000;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
}

body[data-theme="retro"] .container {
    background: #ffffff;
    border: none;
    padding: 1rem;
}

body[data-theme="retro"] .name {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #000080;
    text-shadow: none;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

body[data-theme="retro"] .title {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    color: #000000;
    font-size: 11px;
    text-transform: none;
    font-weight: normal;
}

body[data-theme="retro"] .bio {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 12px;
    color: #000000;
    line-height: 1.4;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    padding: 12px;
    margin: 1rem auto;
    box-shadow: inset 1px 1px 0px #dfdfdf, inset -1px -1px 0px #404040;
    max-width: 600px;
    text-align: center;
}

/* Windows 95 style navigation bar */
body[data-theme="retro"] .floating-menu {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

body[data-theme="retro"] .menu-link {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    margin: 1px;
    border-radius: 0;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    font-weight: normal;
    padding: 4px 8px;
}

body[data-theme="retro"] .menu-link:hover {
    background: #c0c0c0;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

body[data-theme="retro"] .menu-link.active {
    background: #c0c0c0;
    color: #000000;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow: none;
}

/* Square icons for 90s theme */
body[data-theme="retro"] .menu-icon {
    border-radius: 0;
    background: #c0c0c0;
    padding: 2px;
    border: 1px solid #808080;
}

/* Windows 95 style content items */
body[data-theme="retro"] .item {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    border-radius: 0;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    padding: 8px;
    box-shadow: inset 1px 1px 0px #dfdfdf, inset -1px -1px 0px #404040;
}

body[data-theme="retro"] .item:hover {
    background: #c0c0c0;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    box-shadow: inset -1px -1px 0px #dfdfdf, inset 1px 1px 0px #404040;
}

body[data-theme="retro"] .item-title {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #000080;
}

body[data-theme="retro"] .item-subtitle {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    color: #000000;
    font-weight: normal;
}

body[data-theme="retro"] .item-location {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    color: #000000;
}

body[data-theme="retro"] .item-duration {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 0;
}

body[data-theme="retro"] .item-description {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    color: #000000;
    line-height: 1.4;
}

body[data-theme="retro"] .item-details li {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    color: #000000;
}

body[data-theme="retro"] .tag {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    border-radius: 0;
    font-weight: normal;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    padding: 2px 6px;
}

body[data-theme="retro"] .tag:hover {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* Windows 95 style theme switcher */
body[data-theme="retro"] .theme-switcher {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    border-radius: 0;
    padding: 1px;
    box-shadow: none;
    backdrop-filter: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    gap: 1px;
}

body[data-theme="retro"] .theme-switcher:hover,
body[data-theme="retro"] .theme-switcher.show {
    transform: translateX(-50%) translateY(0);
}

body[data-theme="retro"] .theme-switcher::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

body[data-theme="retro"] .theme-button {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 9px;
    font-weight: normal;
    padding: 2px 4px;
    border-radius: 0;
    min-width: 30px;
}

body[data-theme="retro"] .theme-button:hover {
    background: #c0c0c0;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    transform: none;
}

body[data-theme="retro"] .theme-button.active {
    background: #c0c0c0;
    color: #000000;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow: none;
}

/* Windows 95 style contact links */
body[data-theme="retro"] .contact-link {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    color: #000000;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    border-radius: 0;
    padding: 4px 8px;
}

body[data-theme="retro"] .contact-link:hover {
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    background: #c0c0c0;
    transform: none;
    box-shadow: none;
}

body[data-theme="retro"] .contact-list {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* Square contact icons */
body[data-theme="retro"] .contact-list img {
    border-radius: 0;
    border: 1px solid #808080;
    background: #ffffff;
    padding: 2px;
}

/* Section titles */
body[data-theme="retro"] .section-title {
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000080;
}

body[data-theme="retro"] .section-title::after {
    display: none;
}

/* Profile image square */
body[data-theme="retro"] .profile-image {
    border-radius: 0;
    border: 2px solid #808080;
    background: #ffffff;
}

/* C64 Terminal Theme */
body[data-theme="c64"] {
    background: #0e1419;
    color: #40ff40;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.2;
    overflow-x: hidden;
}

body[data-theme="c64"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(64, 255, 64, 0.03) 2px,
            rgba(64, 255, 64, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

body[data-theme="c64"] .container {
    background: transparent;
    border: none;
    max-width: 80ch;
    padding: 1rem;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
}

body[data-theme="c64"] .name {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #40ff40;
    text-shadow: 0 0 5px #40ff40;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-weight: bold;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}

body[data-theme="c64"] .name::before {
    content: '> ';
    color: #40ff40;
}

body[data-theme="c64"] .title {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    color: #40ff40;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 1px;
}

body[data-theme="c64"] .title::before {
    content: '  ';
}

body[data-theme="c64"] .bio {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #40ff40;
    line-height: 1.4;
    max-width: 70ch;
    text-align: left;
}

body[data-theme="c64"] .bio::before {
    content: '> ';
    color: #40ff40;
}

/* ASCII art profile image for C64 theme */
body[data-theme="c64"] .profile-image {
    display: none;
}

body[data-theme="c64"] header::before {
    content: '++++===-----:::::::::::::::::----===++++\A+===---:::::......:-::......:::::---===+\A=---::::.......:------==-. .....::::--==\A--:::....  ..:::::::------:.   ....:::--\A:::...    ..:.:::::::::------.    ...:::\A:...    .:::....::::::::------:     ...:\A..      .:::....::::::::-------.     ...\A.       ..........:::..:::::---:      ..\A        ...-+**+-...:::-----::-.       .\A        ..:.:+%%=...:-=+#*+*#*-.        \A       :..-+:-##*:..:=*#%@*%#+-.        \A       -:.::::--....:---=+====-.        \A        :....::-....::------::-.        \A        -....:--.   .::----:-::.        \A        =....-:.:*#%*##=-==----:        \A        *=:.-=****@@@%%%%%#*=*%-        \A        =*=.-@=..:-==+**+*@=#@@        .\A         =#+=%:..:=++=--:%#%@@        ..\A          =%#%+:.:=***-=#@@@@.       ...\A          =.*@#=+--+*#%@@@@#+:     .....\A..        -@*-+-++*##@@@@@++*-. ........\A...        .*#%**+%%@%@@#+=*:.  .......:\A:::...     ..:#%#+=-===+==++   . ...::::\A---:::.    ::.:+*+----=-=*#. .-=-..::---\A=-----:. .-::-:.:==--==++.:-:::-------==\A===---::-=--..::: :+***-.::::-:--::-===+\A+++=====----:.:::::::*-:::--:------==+++\A**++++=====--:--::::::-:-----=-=====+***';
    white-space: pre;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    color: #40ff40;
    font-size: 8px;
    line-height: 0.8;
    display: block;
    text-align: center;
    margin: 0 auto 2rem auto;
    border: 1px solid #40ff40;
    padding: 1rem;
    background: transparent;
    max-width: fit-content;
}

/* C64 style navigation */
body[data-theme="c64"] .floating-menu {
    background: #0e1419;
    border: 1px solid #40ff40;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

body[data-theme="c64"] .menu-link {
    background: transparent;
    border: none;
    color: #40ff40;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
}

body[data-theme="c64"] .menu-link::before {
    content: '';
}

body[data-theme="c64"] .menu-link::after {
    content: '';
}

body[data-theme="c64"] .menu-link:hover {
    background: rgba(64, 255, 64, 0.1);
    color: #0e1419;
    background-color: #40ff40;
}

body[data-theme="c64"] .menu-link.active {
    background-color: #40ff40;
    color: #0e1419;
    text-shadow: none;
}

body[data-theme="c64"] .menu-link.active::before {
    content: '';
}

body[data-theme="c64"] .menu-link.active::after {
    content: '';
}

/* Hide menu icons in C64 theme */
body[data-theme="c64"] .menu-icon {
    display: none;
}

body[data-theme="c64"] .menu-text {
    display: block;
    font-size: 12px;
}

/* C64 style content items */
body[data-theme="c64"] .item {
    background: transparent;
    border: 1px solid #40ff40;
    border-radius: 0;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    padding: 16px;
    margin: 16px 0;
}

body[data-theme="c64"] .item:hover {
    background: rgba(64, 255, 64, 0.05);
    border-color: #40ff40;
    box-shadow: 0 0 10px rgba(64, 255, 64, 0.3);
}

body[data-theme="c64"] .item-title {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #40ff40;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body[data-theme="c64"] .item-title::before {
    content: '>> ';
}

body[data-theme="c64"] .item-subtitle {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #40ff40;
    font-weight: normal;
}

body[data-theme="c64"] .item-subtitle::before {
    content: '   ';
}

body[data-theme="c64"] .item-location {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #40ff40;
}

body[data-theme="c64"] .item-duration {
    background: transparent;
    border: 1px solid #40ff40;
    color: #40ff40;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0;
    text-transform: uppercase;
}

body[data-theme="c64"] .item-duration::before {
    content: '[';
}

body[data-theme="c64"] .item-duration::after {
    content: ']';
}

body[data-theme="c64"] .item-description {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #40ff40;
    line-height: 1.4;
    text-align: left;
    margin-top: 8px;
}

body[data-theme="c64"] .item-details {
    border-top: 1px solid #40ff40;
    margin-top: 12px;
    padding-top: 12px;
}

body[data-theme="c64"] .item-details li {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #40ff40;
    padding-left: 0;
}

body[data-theme="c64"] .item-details li::before {
    content: '  * ';
    color: #40ff40;
    position: static;
}

body[data-theme="c64"] .tag {
    background: transparent;
    border: 1px solid #40ff40;
    color: #40ff40;
    border-radius: 0;
    font-weight: normal;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body[data-theme="c64"] .tag::before {
    content: '[';
}

body[data-theme="c64"] .tag::after {
    content: ']';
}

body[data-theme="c64"] .tag:hover {
    background: #40ff40;
    color: #0e1419;
}

/* C64 style theme switcher */
body[data-theme="c64"] .theme-switcher {
    background: #0e1419;
    border: 1px solid #40ff40;
    border-top: none;
    border-radius: 0;
    padding: 2px;
    box-shadow: none;
    backdrop-filter: none;
}

body[data-theme="c64"] .theme-button {
    background: transparent;
    border: none;
    color: #40ff40;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    font-weight: normal;
    padding: 4px 8px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body[data-theme="c64"] .theme-button::before {
    content: '[';
}

body[data-theme="c64"] .theme-button::after {
    content: ']';
}

body[data-theme="c64"] .theme-button:hover {
    background: #40ff40;
    color: #0e1419;
    transform: none;
}

body[data-theme="c64"] .theme-button.active {
    background: #40ff40;
    color: #0e1419;
    box-shadow: none;
}

/* C64 style contact links */
body[data-theme="c64"] .contact-link {
    background: #40ff40;
    border: 1px solid #40ff40;
    color: #40ff40;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    border-radius: 0;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body[data-theme="c64"] .contact-link::before {
    content: '[';
}

body[data-theme="c64"] .contact-link::after {
    content: ']';
}

body[data-theme="c64"] .contact-link:hover {
    background: #40ff40;
    color: #0e1419;
    transform: none;
    box-shadow: none;
}

body[data-theme="c64"] .contact-list {
    background: transparent;
    border: 1px solid #40ff40;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* Make contact icons clickable text in C64 theme */
body[data-theme="c64"] .contact-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: rgb(179, 255, 28);
}

body[data-theme="c64"] .contact-list li {
    width: auto;
    height: auto;
    position: relative;
}

body[data-theme="c64"] .contact-list img {
    display: none !important;
    background: rgb(179, 255, 28);
}

body[data-theme="c64"] .contact-list a {
    display: inline-block;
    text-decoration: none;
}

body[data-theme="c64"] .contact-list li:nth-child(1) a::after {
    content: '[GITHUB]';
    background: transparent;
    border: 1px solid #40ff40;
    color: #40ff40;
    border-radius: 0;
    font-weight: normal;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

body[data-theme="c64"] .contact-list li:nth-child(2) a::after {
    content: '[LINKEDIN]';
    background: transparent;
    border: 1px solid #40ff40;
    color: #40ff40;
    border-radius: 0;
    font-weight: normal;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

body[data-theme="c64"] .contact-list li:nth-child(3) a::after {
    content: '[X]';
    background: transparent;
    border: 1px solid #40ff40;
    color: #40ff40;
    border-radius: 0;
    font-weight: normal;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

body[data-theme="c64"] .contact-list li:nth-child(4) a::after {
    content: '[MAIL]';
    background: transparent;
    border: 1px solid #40ff40;
    color: #40ff40;
    border-radius: 0;
    font-weight: normal;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

body[data-theme="c64"] .contact-list li a:hover::after {
    background: #40ff40;
    color: #0e1419;
}

/* Section titles */
body[data-theme="c64"] .section-title {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #40ff40;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
}

body[data-theme="c64"] .section-title::before {
    content: '=== ';
    color: #40ff40;
}

body[data-theme="c64"] .section-title::after {
    content: ' ===';
    color: #40ff40;
    position: static;
    width: auto;
    height: auto;
    background: none;
    bottom: auto;
    left: auto;
    transform: none;
    border-radius: 0;
}

/* Hide floating shapes in C64 theme */
body[data-theme="c64"] .floating-shape {
    display: none;
}

/* Hide scroll indicator in C64 theme */
body[data-theme="c64"] .scroll-indicator {
    display: none;
}

/* Terminal cursor effect */
body[data-theme="c64"] .name::after {
    content: '_';
    animation: blink 1s infinite;
    color: #40ff40;
}

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

/* Dark Theme */
body[data-theme="dark"] {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ffff;
    font-family: 'Fira Code', monospace;
    position: relative;
    overflow-x: hidden;
}

body[data-theme="dark"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 100, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body[data-theme="dark"] .container {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 100, 255, 0.1);
    border-radius: 1rem;
}

body[data-theme="dark"] .bio {
    color: #0099ff;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.6);
    animation: bioGlow 3s ease-in-out infinite alternate;
}

@keyframes bioGlow {
    from { 
        color: #0099ff;
        text-shadow: 0 0 10px rgba(0, 153, 255, 0.6);
    }
    to { 
        color: #00ccff;
        text-shadow: 0 0 15px rgba(0, 204, 255, 0.8), 0 0 25px rgba(0, 153, 255, 0.4);
    }
}

body[data-theme="dark"] .name {
    background: linear-gradient(45deg, #00ffff, #0066ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    to { text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.3); }
}

body[data-theme="dark"] .floating-menu {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

body[data-theme="dark"] .menu-link {
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.05);
}

body[data-theme="dark"] .menu-link:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

body[data-theme="dark"] .menu-link.active {
    background: rgba(0, 100, 255, 0.3);
    border-color: #0066ff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 100, 255, 0.5);
}

body[data-theme="dark"] .item {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.1);
}

body[data-theme="dark"] .item:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.05);
}

body[data-theme="dark"] .item-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

body[data-theme="dark"] .item-subtitle {
    color: #ffffff;
    opacity: 0.9;
}

body[data-theme="dark"] .item-description {
    color: #ffffff;
    opacity: 0.8;
}

body[data-theme="dark"] .item-location {
    color: #ffffff;
    opacity: 0.7;
}

body[data-theme="dark"] .item-details li {
    color: #ffffff;
    opacity: 0.8;
}

body[data-theme="dark"] .section-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

body[data-theme="dark"] .tag {
    background: rgba(0, 100, 255, 0.2);
    border: 1px solid rgba(0, 100, 255, 0.4);
    color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 100, 255, 0.2);
}

body[data-theme="dark"] .tag:hover {
    background: rgba(0, 100, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.4);
}

body[data-theme="dark"] .theme-switcher {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

body[data-theme="dark"] .theme-button {
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

body[data-theme="dark"] .theme-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

body[data-theme="dark"] .theme-switcher {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-top: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 0 0 0.5rem 0.5rem;
}

body[data-theme="dark"] .theme-button {
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

body[data-theme="dark"] .theme-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

body[data-theme="dark"] .theme-button.active {
    background: rgba(0, 100, 255, 0.3);
    color: #ffffff;
    border-color: #0066ff;
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.4);
}

/* Futuristic contact icons */
body[data-theme="dark"] .contact-list {
    background-color: deepskyblue;
    border: 1px solid rgba(0, 153, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.4);
    backdrop-filter: blur(20px);
}

body[data-theme="dark"] .contact-list img {
    filter: invert(1) brightness(0.5) sepia(1) hue-rotate(180deg) saturate(5);
    animation: iconPulse 2s ease-in-out infinite alternate;
    border: 1px solid #0099ff;
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

@keyframes iconPulse {
    from { 
        filter: invert(1) brightness(0.5) sepia(1) hue-rotate(180deg) saturate(5);
        box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
    }
    to { 
        filter: invert(1) brightness(0.8) sepia(1) hue-rotate(180deg) saturate(8);
        box-shadow: 0 0 20px rgba(0, 153, 255, 0.8);
    }
}

body[data-theme="dark"] .contact-list li:hover img {
    filter: invert(1) brightness(1) sepia(1) hue-rotate(180deg) saturate(10);
    box-shadow: 0 0 25px rgba(0, 153, 255, 1);
    border-color: #0099ff;
    transform: scale(1.1);
}


/* Utilities */
.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #4a90e2);
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@media (max-width: 1024px) {
    .scroll-indicator {
        bottom: 6rem;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.2; }
}

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

/* Mobile and Tablet Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 1rem; justify-content: flex-start; padding-top: 2rem; padding-bottom: 6rem; }
    .profile-image { width: 120px; height: 150px; border-width: 3px; margin-bottom: 1.5rem; }
    .name { font-size: clamp(2rem, 8vw, 2.5rem); margin-bottom: 0.8rem; }
    .title { font-size: 1rem; margin-bottom: 1rem; }
    header { margin-bottom: 1rem; }
    .bio { font-size: 1rem; line-height: 1.6; margin-bottom: 2rem; text-align: justify; }
    .section { margin: 2rem 0; }
    .section-title { font-size: 1.4rem; margin-bottom: 1.5rem; }
    .item { padding: 1.2rem; margin-bottom: 1.5rem; border-radius: 0.8rem; }
    .item-header { flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-bottom: 0.8rem; }
    .item-title { font-size: 1.1rem; line-height: 1.3; }
    .item-subtitle { font-size: 0.9rem; margin-top: 0.2rem; }
    .item-location { font-size: 0.8rem; margin-top: 0.1rem; }
    .item-duration { font-size: 0.8rem; padding: 0.2rem 0.6rem; margin-top: 0.5rem; align-self: flex-start; }
    .item-description { font-size: 0.9rem; line-height: 1.5; text-align: justify; margin-top: 0.5rem; }
    .item-details { margin-top: 0.8rem; padding-top: 0.8rem; }
    .item-details li { font-size: 0.85rem; line-height: 1.4; margin-bottom: 0.4rem; padding-left: 1.2rem; text-align: justify; }
    .item-tags { gap: 0.4rem; margin-top: 0.8rem; }
    .tag { padding: 0.25rem 0.6rem; font-size: 0.75rem; border-radius: 0.8rem; min-height: 32px; display: inline-flex; align-items: center; }
    .tags .tag { padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 400; }
    .tags .section-content { gap: 0.6rem; margin-bottom: 2rem; justify-content: flex-start; }
    .contact-links { gap: 0.8rem; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; }
    .contact-link { padding: 0.8rem 1.5rem; font-size: 0.9rem; width: auto; max-width: none; justify-content: center; border-radius: 1.5rem; }
    .floating-shape { display: none; }
    .cursor-dot { display: none; }
    
}

@media (max-width: 480px) {
    .container { padding: 0 0.8rem; padding-top: 1.5rem; padding-bottom: 6rem; }
    .profile-image { width: 100px; height: 100px; }
    .name { font-size: clamp(1.8rem, 10vw, 2.2rem); }
    .bio { font-size: 0.95rem; }
    .item { padding: 1rem; }
    .contact-link { max-width: 240px; padding: 0.7rem 1.2rem; font-size: 0.85rem; }
}