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

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #000000;
    --accent: #ffffff;
    --accent-dark: #000000;
    --border-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    overflow: hidden;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body.light-mode {
    background-color: var(--bg-light);
    color: #111;
    --accent: #000000;
    --border-color: #ddd;
}

body.light-mode .link-line,
body.light-mode .role,
body.light-mode .tagline,
body.light-mode .dev-title {
    color: #222;
}

body.light-mode .link-line a,
body.light-mode .link-tech-students {
    color: #000;
}

.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    animation: flash 0.3s ease-out forwards;
}

body.dark-mode .screen-flash {
    background-color: #fff;
}

body.light-mode .screen-flash {
    background-color: #000;
}

@keyframes flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.fun-link {
    position: fixed;
    top: 20px;
    right: 20px;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.fun-link:hover {
    opacity: 1;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero {
    margin-bottom: 50px;
}

.greeting {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.highlight {
    color: #888;
}

.highlight.name {
    font-size: clamp(2rem, 6vw, 3rem);
    display: block;
}

body.light-mode .highlight {
    color: #555;
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0.9;
}

.role {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    margin-top: 20px;
    opacity: 0.8;
}

.role p {
    font-weight: 400;
}

.link-tech-students {
    color: inherit;
    text-decoration: none;
    position: relative;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid currentColor;
    transition: opacity 0.3s ease;
}

.link-tech-students:hover {
    opacity: 0.7;
}

.links {
    margin-bottom: 40px;
}

.link-line {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    margin-bottom: 8px;
    opacity: 0.85;
}

.link-line a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.link-line a:hover {
    opacity: 0.6;
}

.dev-life {
    margin-top: 30px;
}

.dev-title {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.85;
}

.snowflake {
    position: fixed;
    color: #fff;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    z-index: 1000;
    pointer-events: none;
}

.snowflake.falling {
    top: -20px;
    animation: snowfall linear forwards;
}

.snowflake.accumulated {
    animation: none;
}

body.light-mode .snowflake {
    color: #444;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.snow-fill-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: height 0.05s linear;
}

body.dark-mode .snow-fill-overlay {
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.7) 100%);
}

body.light-mode .snow-fill-overlay {
    background: linear-gradient(to top, 
        rgba(30, 30, 30, 0.95) 0%, 
        rgba(30, 30, 30, 0.85) 50%,
        rgba(30, 30, 30, 0.7) 100%);
}

@keyframes snowfall {
    to {
        transform: translateY(calc(var(--stop-at) + 20px)) translateX(var(--tx));
    }
}

.snowflake-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 40px 16px;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .hero {
        margin-bottom: 40px;
    }

    .greeting {
        margin-bottom: 15px;
    }

    .tagline {
        margin-bottom: 20px;
    }

    .links {
        margin-bottom: 30px;
    }
    
    .fun-link {
        top: 15px;
        right: 15px;
    }
}
