:root {
    --bg-light: #f9fafb;
    --text-light: #111827;
    --bg-dark: #111827;
    --text-dark: rgba(255, 255, 255, 0.9);
    --blob1-light: #fbe2e3;
    --blob2-light: #dbd7fb;
    --blob1-dark: #5b3b3c;
    --blob2-dark: #433f68;
    --card-bg-light: rgba(255, 255, 255, 0.4);
    --card-border-light: rgba(255, 255, 255, 0.4);
    --card-shadow-light: rgba(0, 0, 0, 0.03);
    --card-bg-dark: rgba(17, 24, 39, 0.75);
    --card-border-dark: rgba(0, 0, 0, 0.4);
}

/* Light theme (default) */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    margin: 0;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* Dark theme */
body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Background blobs */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.bg-blob1 {
    position: absolute;
    top: -6rem;
    right: 5rem;
    height: 31.25rem;
    width: 31.25rem;
    background-color: var(--blob1-light);
    border-radius: 50%;
    filter: blur(8rem);
    z-index: -10;
    transition: background-color 0.3s;
    opacity: 0.8;
}

.bg-blob2 {
    position: absolute;
    top: -1rem;
    left: -20rem;
    height: 31.25rem;
    width: 50rem;
    background-color: var(--blob2-light);
    border-radius: 50%;
    filter: blur(8rem);
    z-index: -10;
    transition: background-color 0.3s;
    opacity: 0.8;
}

.dark-theme .bg-blob1 {
    background-color: var(--blob1-dark);
}

.dark-theme .bg-blob2 {
    background-color: var(--blob2-dark);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .bg-blob1 {
        top: -3rem;
        right: -5rem;
        height: 25rem;
        width: 25rem;
        filter: blur(6rem);
        opacity: 0.9;
    }
    
    .bg-blob2 {
        top: 10rem;
        left: -10rem;
        height: 25rem;
        width: 30rem;
        filter: blur(6rem);
        opacity: 0.9;
    }
    
    :root {
        --blob1-light: #ffc2c4;
        --blob2-light: #c7c2ff;
        --blob1-dark: #6b4344;
        --blob2-dark: #4c4776;
    }
}

/* Main content */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    overflow-x: hidden;
}

/* Intro section */
#intro {
    margin-bottom: 2.5rem;
    max-width: 50rem;
    text-align: center;
    padding-top: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile image */
.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-wrapper {
    position: relative;
}

.profile-image {
    height: 7rem;
    width: 7rem;
    border-radius: 50%;
    object-fit: cover;
    border: 0.35rem solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: scale(0);
    animation: fadeInScale 0.2s ease-in-out forwards;
}

.wave-emoji {
    position: absolute;
    font-size: 2.25rem;
    bottom: 0;
    right: 0;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    animation: fadeInScale 0.7s ease-in-out 0.1s forwards;
    transition: transform 0.3s;
}

.wave-emoji:hover {
    transform: scale(1.25) rotate(15deg);
}

/* Intro text */
.intro-text {
    margin-bottom: 2.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(100px);
    animation: fadeInUp 0.5s ease-in-out forwards;
}

.hello-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.name-container {
    opacity: 0;
    transform: scale(0.5);
    animation: fadeInScale 0.5s ease-in-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.name-text {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

/* Job title container styling */
.job-title-container {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    height: 3rem;
    display: flex;
}

.job-prefix {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3.5rem;
    text-align: center;
    z-index: 10;
}

.job-title {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    position: relative;
    min-height: 2rem;
}

.job-title::after {
    content: '|';
    display: inline-block;
    opacity: 1;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

.highlight {
    font-style: italic;
    font-weight: 700;
}

/* Social links */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100px);
    animation: fadeInUp 0.5s ease-in-out 0.1s forwards;
}

@media (min-width: 640px) {
    .social-links {
        flex-direction: row;
    }
    
    .name-text {
        font-size: 3rem;
    }
    
    .job-title {
        font-size: 2.25rem;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white;
    padding: 0.75rem;
    border-radius: 9999px;
    color: #4b5563;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s, background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark-theme .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.social-link:hover {
    transform: scale(1.15);
    color: #111827;
}

.dark-theme .social-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.social-link:active {
    transform: scale(1.05);
}

.github-link {
    font-size: 1.35rem;
}

.qq-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
    color: #6b7280;
    background-color: var(--bg-light);
    z-index: 10;
}

.dark-theme footer {
    background-color: var(--bg-dark);
}

footer small {
    display: block;
    font-size: 0.75rem;
}

footer p {
    font-size: 0.75rem;
}

.bold {
    font-weight: 600;
}

/* Widget wrapper */
.widget-wrapper {
    position: fixed;
    bottom: 2.5rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.widget-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: white;
    color: #4b5563;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.dark-theme .widget-btn {
    background-color: #1f2937;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-btn:hover {
    transform: scale(1.1);
}

.theme-switch .light-icon {
    display: none;
}

.theme-switch .dark-icon {
    display: block;
}

.dark-theme .theme-switch .light-icon {
    display: block;
}

.dark-theme .theme-switch .dark-icon {
    display: none;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
} 