/* Theme Variables */
:root {
    --bg-color: whitesmoke;
    --text-color: #333;
    --card-bg: white;
    --card-shadow: rgba(0,0,0,0.05);
    --card-shadow-hover: rgba(0,0,0,0.1);
    --primary-color: #2196F3;
    --primary-light: #e3f2fd;
    --secondary-color: #666;
    --border-color: #e0e0e0;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0,0,0,0.2);
    --card-shadow-hover: rgba(0,0,0,0.4);
    --primary-color: #64b5f6;
    --primary-light: rgba(33, 150, 243, 0.1);
    --secondary-color: #b0b0b0;
    --border-color: #404040;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--card-shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px var(--card-shadow-hover);
}

/* Apply theme colors to existing elements */
body {
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.content {
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px var(--card-shadow);
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.avatar:active {
    transform: scale(0.95);
}

.avatar:hover {
    transform: scale(1.05);
}

#typewriter {
    line-height: 1.6;
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.Typewriter__cursor {
    font-weight: bold;
}

.highlight {
    background-image: linear-gradient(90deg, #00C6FF, #0072FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
    position: relative;
    background-size: 100%;
    background-repeat: no-repeat;
    transition: all 0.4s ease-in-out;
}

.highlight:hover {
    background-image: linear-gradient(90deg, #FF6B6B, #FF3366);
    animation: gradientFlow 2s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        background-image: linear-gradient(90deg, #FF6B6B, #FF3366);
    }
    50% {
        background-position: 100% 50%;
        background-image: linear-gradient(90deg, #FF3366, #FF6B6B);
    }
    100% {
        background-position: 0% 50%;
        background-image: linear-gradient(90deg, #FF6B6B, #FF3366);
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.social-links.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.sections {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: left;
    margin-top: 2rem;
    width: 100%;
}

.sections.visible {
    opacity: 1;
    transform: translateY(0);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--secondary-color);
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

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

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

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

.item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--card-shadow-hover);
}

.item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    word-wrap: break-word;
}

.item p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    word-wrap: break-word;
}

.item a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    white-space: nowrap;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content {
        padding: 1rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    #typewriter {
        font-size: 1rem;
    }

    .tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .item {
        padding: 1rem;
    }

    .item h3 {
        font-size: 1rem;
    }

    .item p {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem;
    }
}

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

    .social-links {
        margin-bottom: 2rem;
    }

    .tabs {
        gap: 0.25rem;
    }

    .tab {
        padding: 0.5rem;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInAnimation 0.8s ease forwards;
}

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